diff --git a/.drone.yml b/.drone.yml
index dc82570..0cae3c2 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -26,7 +26,7 @@ steps:
NPM_CONFIG_LOGLEVEL: error
- name: testbuild
- image: thegeeklab/hugo:0.105.0
+ image: thegeeklab/hugo:0.115.2
commands:
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc
- hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/
@@ -51,40 +51,6 @@ steps:
environment:
LHCI_SERVER_URL: https://drone-artifact.rknet.org/${DRONE_REPO_NAME}/
- - name: page-validation-upload
- image: thegeeklab/drone-s3-sync:2
- settings:
- access_key:
- from_secret: s3_access_key
- bucket: drone-artifact
- endpoint: https://sp.rknet.org
- path_style: true
- secret_key:
- from_secret: s3_secret_access_key
- source: lhci_reports/dist/
- strip_prefix: lhci_reports/dist/
- target: /${DRONE_REPO_NAME}
- when:
- status:
- - failure
- - success
-
- - name: page-validation-link
- image: thegeeklab/drone-github-comment
- settings:
- api_key:
- from_secret: github_token
- key: pr-${DRONE_PULL_REQUEST}
- message: lhci_reports/dist/summary.md
- skip_missing: true
- update: true
- when:
- ref:
- - refs/pull/**
- status:
- - failure
- - success
-
trigger:
ref:
- refs/heads/main
@@ -207,7 +173,7 @@ steps:
- refs/pull/**
- name: build
- image: thegeeklab/hugo:0.105.0
+ image: thegeeklab/hugo:0.115.2
commands:
- hugo --panicOnWarning -s exampleSite/
@@ -284,9 +250,3 @@ depends_on:
- test
- build
- docs
-
----
-kind: signature
-hmac: da9896c5892fff7425a4594cea8576d065aeacae177ffa2d411782721e61a1fb
-
-...
diff --git a/.prettierignore b/.prettierignore
index 3c85f36..00a65d8 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -6,3 +6,4 @@ list.json.json
/static/js/
/src/favicon/
LICENSE
+**/*.html
diff --git a/.prettierrc b/.prettierrc
index 7d0f2d4..bfb86bb 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -2,13 +2,5 @@
"printWidth": 99,
"singleQuote": false,
"semi": false,
- "trailingComma": "none",
- "overrides": [
- {
- "files": ["*.html"],
- "options": {
- "parser": "go-template"
- }
- }
- ]
+ "trailingComma": "none"
}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index c471f59..72264c4 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -3,7 +3,7 @@
## Security
If you think you have found a **security issue**, please do not mention it in this repository.
-Instead, send an email to security@thegeeklab.de with as many details as possible so it can be handled confidential.
+Instead, send an email to `security@thegeeklab.de` with as many details as possible so it can be handled confidential.
## Bug Reports and Feature Requests
diff --git a/README.md b/README.md
index 8ab84a8..3c0ca6a 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# Geekdoc
[![Build Status](https://img.shields.io/drone/build/thegeeklab/hugo-geekdoc?logo=drone&server=https%3A%2F%2Fdrone.thegeeklab.de)](https://drone.thegeeklab.de/thegeeklab/hugo-geekdoc)
-[![Hugo Version](https://img.shields.io/badge/hugo-0.93-blue.svg)](https://gohugo.io)
+[![Hugo Version](https://img.shields.io/badge/hugo-0.112-blue.svg)](https://gohugo.io)
[![GitHub release](https://img.shields.io/github/v/release/thegeeklab/hugo-geekdoc)](https://github.com/thegeeklab/hugo-geekdoc/releases/latest)
[![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/hugo-geekdoc)](https://github.com/thegeeklab/hugo-geekdoc/graphs/contributors)
[![License: MIT](https://img.shields.io/github/license/thegeeklab/hugo-geekdoc)](https://github.com/thegeeklab/hugo-geekdoc/blob/main/LICENSE)
@@ -16,7 +16,7 @@ This theme is subject to a CI driven build and release process common for softwa
Due to the fact that `webpack` and `npm scripts` are used as pre-processors, the theme cannot be used from the main branch by default. If you want to use the theme from a cloned branch instead of a release tarball you'll need to install `webpack` locally and run the build script once to create all required assets.
-```Shell
+```shell
# install required packages from package.json
npm install
diff --git a/assets/search/config.json b/assets/search/config.json
index 831c8d1..1a5582a 100644
--- a/assets/search/config.json
+++ b/assets/search/config.json
@@ -2,7 +2,7 @@
{{- $searchData := resources.Get "search/data.json" | resources.ExecuteAsTemplate $searchDataFile . | resources.Minify -}}
{
"dataFile": {{ $searchData.RelPermalink | jsonify }},
- "indexConfig": {{ .Site.Params.GeekdocSearchConfig | jsonify }},
- "showParent": {{ if .Site.Params.GeekdocSearchShowParent }}true{{ else }}false{{ end }},
- "showDescription": {{ if .Site.Params.GeekdocSearchshowDescription }}true{{ else }}false{{ end }}
+ "indexConfig": {{ .Site.Params.geekdocSearchConfig | jsonify }},
+ "showParent": {{ if .Site.Params.geekdocSearchShowParent }}true{{ else }}false{{ end }},
+ "showDescription": {{ if .Site.Params.geekdocSearchshowDescription }}true{{ else }}false{{ end }}
}
diff --git a/assets/search/data.json b/assets/search/data.json
index eeebaa6..f1c0e80 100644
--- a/assets/search/data.json
+++ b/assets/search/data.json
@@ -1,5 +1,5 @@
[
- {{ range $index, $page := (where .Site.Pages "Params.GeekdocProtected" "ne" true) }}
+ {{ range $index, $page := (where .Site.Pages "Params.geekdocProtected" "ne" true) }}
{{ if ne $index 0 }},{{ end }}
{
"id": {{ $index }},
diff --git a/exampleSite/content/en/_includes/_index.md b/exampleSite/content/en/_includes/_index.md
index 9b76178..9676d05 100644
--- a/exampleSite/content/en/_includes/_index.md
+++ b/exampleSite/content/en/_includes/_index.md
@@ -1,3 +1,3 @@
---
-GeekdocHidden: true
+geekdocHidden: true
---
diff --git a/exampleSite/content/en/_index.md b/exampleSite/content/en/_index.md
index 36934df..febb5db 100644
--- a/exampleSite/content/en/_index.md
+++ b/exampleSite/content/en/_index.md
@@ -9,7 +9,7 @@ geekdocAnchor: false
[![Build Status](https://img.shields.io/drone/build/thegeeklab/hugo-geekdoc?logo=drone&server=https%3A%2F%2Fdrone.thegeeklab.de)](https://drone.thegeeklab.de/thegeeklab/hugo-geekdoc)
-[![Hugo Version](https://img.shields.io/badge/hugo-0.93-blue.svg)](https://gohugo.io)
+[![Hugo Version](https://img.shields.io/badge/hugo-0.112-blue.svg)](https://gohugo.io)
[![GitHub release](https://img.shields.io/github/v/release/thegeeklab/hugo-geekdoc)](https://github.com/thegeeklab/hugo-geekdoc/releases/latest)
[![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/hugo-geekdoc)](https://github.com/thegeeklab/hugo-geekdoc/graphs/contributors)
[![License: MIT](https://img.shields.io/github/license/thegeeklab/hugo-geekdoc)](https://github.com/thegeeklab/hugo-geekdoc/blob/main/LICENSE)
diff --git a/exampleSite/content/en/features/code-blocks.md b/exampleSite/content/en/features/code-blocks.md
index 5964122..63595d7 100644
--- a/exampleSite/content/en/features/code-blocks.md
+++ b/exampleSite/content/en/features/code-blocks.md
@@ -21,21 +21,21 @@ To display an inline shortcode use single quotes:
Code blocks can be uses without language specification:
````markdown
-```Plain
+```plain
some code
```
````
**Example:**
-```Plain
+```plain
some code
```
... or if you need language specific syntax highlighting:
````markdown
-```Shell
+```shell
# some code
echo "Hello world"
```
@@ -43,7 +43,7 @@ echo "Hello world"
**Example:**
-```Shell
+```shell
# some code
echo "Hello World"
```
@@ -55,7 +55,7 @@ Hugo has a build-in shortcode for syntax highlighting. To work properly with thi
{{< tabs "uniqueid" >}}
{{< tab "TOML" >}}
-```TOML
+```toml
pygmentsUseClasses=true
pygmentsCodeFences=true
```
@@ -63,7 +63,7 @@ pygmentsCodeFences=true
{{< /tab >}}
{{< tab "YAML" >}}
-```YAML
+```yaml
pygmentsUseClasses: true
pygmentsCodeFences: true
```
diff --git a/exampleSite/content/en/features/icon-sets.md b/exampleSite/content/en/features/icon-sets.md
index 6f84b74..7d3441e 100644
--- a/exampleSite/content/en/features/icon-sets.md
+++ b/exampleSite/content/en/features/icon-sets.md
@@ -16,7 +16,7 @@ Regardless of which tool (or existing sprite) you choose, there are a few requir
The result of a valid minimal SVG sprite file could look like this:
-```XML
+```xml