diff options
author | Robert Kaussow <mail@thegeeklab.de> | 2022-10-14 13:21:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 13:21:12 +0300 |
commit | c1d8443eedcd810678f4240266a3a35c87f3554d (patch) | |
tree | 80fcc25ab9516eee99a1d587706168d0ae2acaed | |
parent | 3a651840a90e1dcfc4d48ebe5f2faa9ee4d2331c (diff) |
chore: bump hugo in ci to 0.104.3 (#518)
-rw-r--r-- | .drone.yml | 6 | ||||
-rw-r--r-- | exampleSite/content/en/shortcodes/katex.md | 18 | ||||
-rw-r--r-- | exampleSite/content/en/shortcodes/mermaid.md | 10 | ||||
-rw-r--r-- | layouts/_default/_markup/render-codeblock-mermaid.html | 2 |
4 files changed, 6 insertions, 30 deletions
@@ -26,7 +26,7 @@ steps: NPM_CONFIG_LOGLEVEL: error - name: testbuild - image: thegeeklab/hugo:0.97.3 + image: thegeeklab/hugo:0.104.3 commands: - mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc - hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/ @@ -206,7 +206,7 @@ steps: - refs/pull/** - name: build - image: thegeeklab/hugo:0.97.3 + image: thegeeklab/hugo:0.104.3 commands: - hugo --panicOnWarning -s exampleSite/ @@ -286,6 +286,6 @@ depends_on: --- kind: signature -hmac: e0710630d0e540bb93561e760d0c4cfa4a67d2ee715993e7bb29e03d79f83d53 +hmac: 8a857bba8126ebb40acc7dfb24a86f1539d447df4ca3e4b3bdc8f78d21e2b51b ... diff --git a/exampleSite/content/en/shortcodes/katex.md b/exampleSite/content/en/shortcodes/katex.md index 0fd8458..4306c63 100644 --- a/exampleSite/content/en/shortcodes/katex.md +++ b/exampleSite/content/en/shortcodes/katex.md @@ -6,28 +6,12 @@ title: KaTeX ## Example -{{< columns >}} - ```latex {{</* katex [display] [class="text-center"] */>}} f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {{</* /katex */>}} ``` -<---> - -<!-- spellchecker-disable --> -<!-- prettier-ignore --> -{{< katex display >}} -f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi -{{< /katex >}} - -<!-- spellchecker-enable --> - -{{< /columns >}} - -KaTeX can also be used inline, for example {{< katex >}}\pi(x){{< /katex >}} or used with the `display` parameter (e.g. `display: block`): - <!-- spellchecker-disable --> <!-- prettier-ignore --> {{< katex display >}} @@ -36,4 +20,4 @@ f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi <!-- spellchecker-enable --> -Text continues here. +KaTeX can be used inline, for example {{< katex >}}\pi(x){{< /katex >}} or used with the `display` parameter (see above). diff --git a/exampleSite/content/en/shortcodes/mermaid.md b/exampleSite/content/en/shortcodes/mermaid.md index ac98087..6a644b8 100644 --- a/exampleSite/content/en/shortcodes/mermaid.md +++ b/exampleSite/content/en/shortcodes/mermaid.md @@ -6,11 +6,9 @@ title: Mermaid ## Example -{{< columns >}} - <!-- prettier-ignore --> ```tpl -{{</* mermaid class="text-center"*/>}} +{{</* mermaid class="text-center" */>}} sequenceDiagram Alice->>Bob: Hello Bob, how are you? alt is sick @@ -24,8 +22,6 @@ sequenceDiagram {{</* /mermaid */>}} ``` -<---> - <!-- spellchecker-disable --> <!-- prettier-ignore --> {{< mermaid class="text-center" >}} @@ -43,8 +39,6 @@ sequenceDiagram <!-- spellchecker-enable --> -{{< /columns >}} - As an alternative to shortcodes, code blocks can be used for markdown as well. {{< columns >}} @@ -53,7 +47,6 @@ As an alternative to shortcodes, code blocks can be used for markdown as well. ````tpl ```mermaid flowchart LR - A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] @@ -67,7 +60,6 @@ C -->|Two| E[Result 2] <!-- prettier-ignore --> ```mermaid flowchart LR - A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html index d3545db..ee40ce9 100644 --- a/layouts/_default/_markup/render-codeblock-mermaid.html +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -6,6 +6,6 @@ {{ end }} <!-- prettier-ignore-end --> -<pre class="gdoc-mermaid mermaid"> +<pre class="gdoc-mermaid mermaid text-center"> {{- .Inner -}} </pre> |