From 3959b13cd80a9658556ded466a603d9d6b19d49e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 31 May 2020 18:17:32 +0200 Subject: [PATCH] fix spelling and pass spellchecking --- exampleSite/content/_index.md | 4 +-- exampleSite/content/posts/hello_geekdoc.md | 4 ++- exampleSite/content/posts/initial_release.md | 2 +- exampleSite/content/shortcodes/columns.md | 33 ++++++++++--------- exampleSite/content/shortcodes/expand.md | 21 +++++++----- exampleSite/content/shortcodes/hints.md | 16 ++++----- exampleSite/content/shortcodes/includes.md | 16 ++++----- exampleSite/content/shortcodes/mermaid.md | 3 +- exampleSite/content/shortcodes/tabs.md | 32 +++++++++--------- exampleSite/content/shortcodes/toc-tree.md | 2 +- exampleSite/content/shortcodes/toc.md | 16 ++++----- exampleSite/content/usage/code_blocks.md | 6 ++-- exampleSite/content/usage/color_schemes.md | 6 ++-- exampleSite/static/includes/example.html.part | 6 ++++ exampleSite/static/includes/table.md.part | 5 +++ 15 files changed, 97 insertions(+), 75 deletions(-) create mode 100644 exampleSite/static/includes/example.html.part create mode 100644 exampleSite/static/includes/table.md.part diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 6c7862b..0948285 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -11,8 +11,8 @@ Geekdoc is a simple Hugo theme for documentations. This work is inspired and par ## Features -- Clean simple design +- Clean and simple design - Light and mobile-friendly -- Customisable +- Easy customization - Zero initial configuration - Handy shortcodes diff --git a/exampleSite/content/posts/hello_geekdoc.md b/exampleSite/content/posts/hello_geekdoc.md index 6c66239..8e389f3 100644 --- a/exampleSite/content/posts/hello_geekdoc.md +++ b/exampleSite/content/posts/hello_geekdoc.md @@ -6,4 +6,6 @@ date: 2020-01-06 This is the first release of the Geekdoc theme. -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo. + +Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram. Que no rota alters, ad sea sues exercise main rum, cu diam mas facility sea. diff --git a/exampleSite/content/posts/initial_release.md b/exampleSite/content/posts/initial_release.md index b502808..99357fc 100644 --- a/exampleSite/content/posts/initial_release.md +++ b/exampleSite/content/posts/initial_release.md @@ -6,4 +6,4 @@ date: 2020-01-08 This is the first release of the Geekdoc theme. -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo. diff --git a/exampleSite/content/shortcodes/columns.md b/exampleSite/content/shortcodes/columns.md index 3935030..98852f9 100644 --- a/exampleSite/content/shortcodes/columns.md +++ b/exampleSite/content/shortcodes/columns.md @@ -1,43 +1,46 @@ Columns help organize shorter pieces of content horizontally for readability. - ```html {{}} # Left Content -Lorem markdownum insigne... +Dolor sit, sumo unique argument um no ... <---> # Mid Content -Lorem markdownum insigne... +Dolor sit, sumo unique argument um no ... <---> # Right Content -Lorem markdownum insigne... +Dolor sit, sumo unique argument um no ... {{}} ``` ## Example {{< columns >}} -## Left Content -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. + +## Left + +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo. <---> ## Mid Content -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! + +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. <---> ## Right Content -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. + +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo. {{< /columns >}} diff --git a/exampleSite/content/shortcodes/expand.md b/exampleSite/content/shortcodes/expand.md index 699d582..8945037 100644 --- a/exampleSite/content/shortcodes/expand.md +++ b/exampleSite/content/shortcodes/expand.md @@ -1,18 +1,21 @@ Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it. ## Example + ### Default ```tpl {{}} ## Markdown content -Lorem markdownum insigne... +Dolor sit, sumo unique ... {{}} ``` {{< expand >}} + ## Markdown content -Lorem markdownum insigne... + +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. {{< /expand >}} ### With Custom Label @@ -20,14 +23,16 @@ Lorem markdownum insigne... ```tpl {{}} ## Markdown content -Lorem markdownum insigne... +Dolor sit, sumo unique ... {{}} ``` {{< expand "Custom Label" "..." >}} -## Markdown content -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. + +## More markdown + +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo. {{< /expand >}} diff --git a/exampleSite/content/shortcodes/hints.md b/exampleSite/content/shortcodes/hints.md index 25e9f39..8ba24df 100644 --- a/exampleSite/content/shortcodes/hints.md +++ b/exampleSite/content/shortcodes/hints.md @@ -4,8 +4,8 @@ There are 3 colors to choose: `info`, `warning` and `danger`. ```tpl {{}} **Markdown content**\ -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. + Ornateness bland it ex enc, est yeti am bongo detract re. {{}} ``` @@ -13,18 +13,18 @@ stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa {{< hint info >}} **Markdown content**\ -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. + Ornateness bland it ex enc, est yeti am bongo detract re. {{< /hint >}} {{< hint warning >}} **Markdown content**\ -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. + Ornateness bland it ex enc, est yeti am bongo detract re. {{< /hint >}} {{< hint danger >}} **Markdown content**\ -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. + Ornateness bland it ex enc, est yeti am bongo detract re. {{< /hint >}} diff --git a/exampleSite/content/shortcodes/includes.md b/exampleSite/content/shortcodes/includes.md index 3940503..8066eaa 100644 --- a/exampleSite/content/shortcodes/includes.md +++ b/exampleSite/content/shortcodes/includes.md @@ -1,4 +1,4 @@ -Include Shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting. +Include shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting. ## Shortcode @@ -15,7 +15,7 @@ Attributes: | markdown | included file is markdown | false | | options | highlighting [options](https://gohugo.io/content-management/syntax-highlighting/#highlight-shortcode) | linenos=table | -\* if not set, the content will be rendered as plain html +\* if not set, the content will be rendered as plain HTML ### Include *.yml file with options @@ -31,21 +31,21 @@ Included markdown files will be rendered using the `markdownify` filter. {{< hint warning >}} **Location of markdown files**\ -If you include markdown files that should not get a menu entry, place them outside the content folder or exlude them otherwise. +If you include markdown files that should not get a menu entry, place them outside the content folder or exclude them otherwise. {{< /hint >}} ```tpl -{{}} +{{}} ``` -{{< include file="static/table.md" markdown="true" >}} +{{< include file="static/includes/table.md.part" markdown="true" >}} ### Include *.html file -Html content will be filtered by the `safeHTML` filter and added to the rendered page output. +HTML content will be filtered by the `safeHTML` filter and added to the rendered page output. ```tpl -{{}} +{{}} ``` -{{< include file="static/example.html" >}} +{{< include file="static/includes/example.html.part" >}} diff --git a/exampleSite/content/shortcodes/mermaid.md b/exampleSite/content/shortcodes/mermaid.md index 214d1a0..cf8a45c 100644 --- a/exampleSite/content/shortcodes/mermaid.md +++ b/exampleSite/content/shortcodes/mermaid.md @@ -1,8 +1,9 @@ -[Mermaid](https://mermaidjs.github.io/) is library for generating svg charts and diagrams from text. +[Mermaid](https://mermaidjs.github.io/) is library for generating SVG charts and diagrams from text. ## Example {{< columns >}} + ```tpl {{}} sequenceDiagram diff --git a/exampleSite/content/shortcodes/tabs.md b/exampleSite/content/shortcodes/tabs.md index 4b945df..1a5040f 100644 --- a/exampleSite/content/shortcodes/tabs.md +++ b/exampleSite/content/shortcodes/tabs.md @@ -2,7 +2,7 @@ Tabs let you organize content by context, for example installation instructions ```tpl {{}} -{{}} # MacOS Content {{}} +{{}} # macOS Content {{}} {{}} # Linux Content {{}} {{}} # Windows Content {{}} {{}} @@ -11,15 +11,16 @@ Tabs let you organize content by context, for example installation instructions ## Example {{< tabs "uniqueid" >}} -{{< tab "MacOS" >}} -# MacOS +{{< tab "macOS" >}} -This is tab **MacOS** content. +# macOS -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. +This is tab **macOS** content. + +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad +prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim +fastidious copious quo ad. Stet probates in duo. {{< /tab >}} {{< tab "Linux" >}} @@ -28,10 +29,10 @@ Miseratus fonte Ditis conubia. This is tab **Linux** content. -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. __Ornateness__ bland it ex enc, est yeti am bongo detract re. Pro ad +prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim +fastidious copious quo ad. Stet probates in duo. {{< /tab >}} {{< tab "Windows" >}} @@ -40,9 +41,8 @@ Miseratus fonte Ditis conubia. This is tab **Windows** content. -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad +prompts feud gait, quid exercise emeritus bis e. In pro quints consequent. {{< /tab >}} {{< /tabs >}} diff --git a/exampleSite/content/shortcodes/toc-tree.md b/exampleSite/content/shortcodes/toc-tree.md index 873dae1..9d01f68 100644 --- a/exampleSite/content/shortcodes/toc-tree.md +++ b/exampleSite/content/shortcodes/toc-tree.md @@ -1,4 +1,4 @@ -The toc-tree shortcode will generate a Table of Content from a section filetree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode. +The toc-tree shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode. ```tpl {{}} diff --git a/exampleSite/content/shortcodes/toc.md b/exampleSite/content/shortcodes/toc.md index c7d06d0..4911001 100644 --- a/exampleSite/content/shortcodes/toc.md +++ b/exampleSite/content/shortcodes/toc.md @@ -8,30 +8,30 @@ Simple wrapper to generate a page Table of Content from a shortcode. ## Level 1 -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo. ## Level 2 -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat. +Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram. ### Level 2.1 -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren. +Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram. #### Level 2.1.1 -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat. +Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. ##### Level 2.1.1.1 -Lorem ipsum dolor sit amet, consetetur sadipscing elitr. +In pro quints consequent, denim fastidious copious quo ad. ###### Level 2.1.1.1.1 -Lorem ipsum dolor sit amet, consetetur sadipscing elitr. +In pro quints consequent, denim fastidious copious quo ad. ### Level 2.2 -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren. +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. -no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. +Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram. diff --git a/exampleSite/content/usage/code_blocks.md b/exampleSite/content/usage/code_blocks.md index 1eeb6a1..eb5bc3d 100644 --- a/exampleSite/content/usage/code_blocks.md +++ b/exampleSite/content/usage/code_blocks.md @@ -1,4 +1,4 @@ -There are multiple ways to add code blocks. Most of them works out of the box only the hugo shortcode `` need some configuration to work properly. +There are multiple ways to add code blocks. Most of them works out of the box only the Hugo shortcode `` need some configuration to work properly. ## Inline code To display an inline shortcode use single quotes: @@ -9,7 +9,7 @@ To display an inline shortcode use single quotes: **Example:** `some code` ## Code blocks -Codeblocks can be uses without language specification: +Code blocks can be uses without language specification: ```` ``` @@ -41,7 +41,7 @@ echo "Hello World" ## Highlight shortcode -Hugo has a build-in shortcode for syntax highlighting. To work properly with this theme, you have to set following options in your sites config: +Hugo has a build-in shortcode for syntax highlighting. To work properly with this theme, you have to set following options in your site configuration: {{< tabs "uniqueid" >}} {{< tab "TOML" >}} diff --git a/exampleSite/content/usage/color_schemes.md b/exampleSite/content/usage/color_schemes.md index 7a06637..c8e4317 100644 --- a/exampleSite/content/usage/color_schemes.md +++ b/exampleSite/content/usage/color_schemes.md @@ -1,9 +1,9 @@ If you want to customize the color scheme of the theme to give it your individual touch you are just a few lines CSS away. In general, you have to override the defaults, the easiest way to do so is to create a `static/custom.css` file right in your site root. -All necessary class names are listed below. If you miss some classes for theming you are very welcome to fill an [Issue](https://github.com/xoxys/hugo-geekdoc/issues). For some inspiration you can have a look at [https://www.color-hex.com/color-palettes/](https://www.color-hex.com/). The following listing use the _HC-primary_ color palette as an example: +All necessary class names are listed below. If you miss some classes required for a color scheme you are very welcome to create an [Issue](https://github.com/xoxys/hugo-geekdoc/issues) or Pull Request. For some inspiration you can have a look at [https://www.color-hex.com/color-palettes/](https://www.color-hex.com/). The following listing use the _HC-primary_ color palette as an example: {{< highlight CSS "linenos=table" >}} -/* defaut link color */ +/* default link color */ a { color: #1c388e; } a:visited { color: #73bfb8 } @@ -31,6 +31,6 @@ a:visited { color: #73bfb8 } .gdoc-hint.danger { background: #fae1db; border-color: #cf5f46; color: black; } {{< /highlight >}} -And that is how the result will looks like. Happy theming! +And that is how the result will looks like. Happy customizing! [![HC-primary Color Scheme](/media/color_scheme_example.png)](/media/color_scheme_example.png) diff --git a/exampleSite/static/includes/example.html.part b/exampleSite/static/includes/example.html.part new file mode 100644 index 0000000..9d26592 --- /dev/null +++ b/exampleSite/static/includes/example.html.part @@ -0,0 +1,6 @@ +

This is heading 1

+

This is heading 2

+

This is heading 3

+

This is heading 4

+
This is heading 5
+
This is heading 6
diff --git a/exampleSite/static/includes/table.md.part b/exampleSite/static/includes/table.md.part new file mode 100644 index 0000000..4bf79a3 --- /dev/null +++ b/exampleSite/static/includes/table.md.part @@ -0,0 +1,5 @@ +#### Test Table + +| Head 1 | Head 2 | Head 3 | +|---|---|---| +| 1 | 2 | 3 | \ No newline at end of file