Skip to content

Commit

Permalink
doc: upgrade hugo theme
Browse files Browse the repository at this point in the history
  • Loading branch information
creativeprojects committed Oct 7, 2024
1 parent 62c5c64 commit 62f3118
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ generate-config-reference: build
META_WEIGHT="6" \
LAYOUT_NO_HEADLINE="1" \
LAYOUT_HEADINGS_START="#" \
LAYOUT_NOTICE_START="{{% notice note %}}" \
LAYOUT_NOTICE_START='{{% notice style="note" %}}' \
LAYOUT_NOTICE_END="{{% /notice %}}" \
LAYOUT_HINT_START="{{% notice hint %}}" \
LAYOUT_HINT_START='{{% notice style="tip" %}}' \
LAYOUT_HINT_END="{{% /notice %}}" \
LAYOUT_UPLINK="[go to top](#reference)" \
$(abspath $(BINARY)) generate --config-reference --to $(CONFIG_REFERENCE_DIR)
Expand Down
2 changes: 1 addition & 1 deletion docs/content/configuration/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ default {
{{% /tab %}}
{{< /tabs >}}

{{% notice hint %}}
{{% notice style="tip" %}}
Set `base-dir` to an absolute path to resolve `files` and `local:backup` relative to it.
Set `source-base` if you need a separate base path for backup sources.
When you want to use relative source paths for backup, set the `source-relative` option. This will change the working directory of the `restic backup` command to `source-base` and will not expand `source` to an absolute path.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/configuration/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ The following functions can be used to encode data (e.g. when dealing with arbit
* `{{ "plain" | base64 }}` => `cGxhaW4=` - Base64 encoded input
* `{{ "plain" | hex }}` => `706c61696e` - Hexadecimal encoded input

{{% notice hint %}}
{{% notice style="tip" %}}
Encode with `js` when creating **strings** in *YAML*, *TOML* or *JSON* configuration files, e.g.: `"{{ .Env.MY_VAR | js }}"`.
This ensures the markup remains correct and can be parsed regardless of the input data.
{{% /notice %}}
Expand Down
2 changes: 1 addition & 1 deletion docs/themes/hugo-theme-relearn
Submodule hugo-theme-relearn updated 98 files
+1 −1 .grenrc.js
+349 −0 CHANGELOG.md
+24 −0 assets/css/swagger.css
+4 −0 assets/css/theme-neon.css
+8 −2 assets/css/variables.css
+32 −15 assets/css/variant.css
+30 −4 exampleSite/config/_default/params.toml
+20 −0 exampleSite/content/basics/customization/_index.en.md
+1 −1 exampleSite/content/basics/installation/_index.en.md
+46 −6 exampleSite/content/basics/migration/_index.en.md
+4 −4 exampleSite/content/cont/frontmatter/frontmatter.toml
+142 −62 exampleSite/content/cont/markdown.en.md
+1 −1 exampleSite/content/cont/taxonomy.en.md
+9 −13 exampleSite/content/dev/screenshots/_index.en.md
+2 −0 exampleSite/content/more/credits/_index.en.md
+1 −1 exampleSite/content/shortcodes/attachments/index.en.md
+17 −9 exampleSite/content/shortcodes/badge.en.md
+9 −1 exampleSite/content/shortcodes/button.en.md
+4 −4 exampleSite/content/shortcodes/children/_index.en.md
+3 −3 exampleSite/content/shortcodes/expand.en.md
+4 −4 exampleSite/content/shortcodes/highlight.en.md
+0 −0 exampleSite/content/shortcodes/include/index.en.md
+0 −0 exampleSite/content/shortcodes/include/index.pir.md
+7 −7 exampleSite/content/shortcodes/math.en.md
+87 −3 exampleSite/content/shortcodes/mermaid.en.md
+220 −150 exampleSite/content/shortcodes/notice.en.md
+17 −8 exampleSite/content/shortcodes/resources/index.en.md
+1 −1 exampleSite/content/shortcodes/tab.en.md
+1 −1 exampleSite/content/showcase/_index.en.md
+12 −6 i18n/ar.toml
+8 −2 i18n/art-x-pir.toml
+8 −2 i18n/cs.toml
+8 −2 i18n/de.toml
+8 −2 i18n/en.toml
+8 −2 i18n/es.toml
+8 −2 i18n/fi.toml
+8 −2 i18n/fr.toml
+8 −2 i18n/hi.toml
+8 −2 i18n/hu.toml
+8 −2 i18n/id.toml
+8 −2 i18n/it.toml
+8 −2 i18n/ja.toml
+9 −3 i18n/ko.toml
+8 −2 i18n/nl.toml
+8 −2 i18n/pl.toml
+8 −2 i18n/pt.toml
+8 −2 i18n/ro.toml
+8 −2 i18n/ru.toml
+8 −2 i18n/sw.toml
+8 −2 i18n/tr.toml
+8 −2 i18n/vi.toml
+8 −2 i18n/zh-CN.toml
+8 −2 i18n/zh-Hans.toml
+8 −2 i18n/zh-Hant.toml
+8 −2 i18n/zh-TW.toml
+8 −2 i18n/zh.toml
+ images/tn.png
+0 −43 layouts/404.html
+21 −0 layouts/_default/_markup/render-blockquote.html
+1 −1 layouts/_default/_markup/render-codeblock-math.html
+1 −1 layouts/_default/_markup/render-codeblock-mermaid.html
+3 −3 layouts/_default/index.search.js
+2 −2 layouts/_default/rss.xml
+1 −1 layouts/_default/term.html
+35 −0 layouts/partials/_relearn/boxStyle.gotmpl
+39 −6 layouts/partials/get-theme-variants.hugo
+1 −1 layouts/partials/indent.html
+1 −1 layouts/partials/meta.html
+1 −1 layouts/partials/opengraph.html
+1 −1 layouts/partials/schema.html
+4 −20 layouts/partials/shortcodes/attachments.html
+3 −16 layouts/partials/shortcodes/badge.html
+3 −16 layouts/partials/shortcodes/button.html
+39 −56 layouts/partials/shortcodes/children.html
+20 −11 layouts/partials/shortcodes/expand.html
+2 −0 layouts/partials/shortcodes/highlight.html
+1 −1 layouts/partials/shortcodes/math.html
+1 −1 layouts/partials/shortcodes/mermaid.html
+49 −22 layouts/partials/shortcodes/notice.html
+1 −1 layouts/partials/shortcodes/openapi.html
+51 −40 layouts/partials/shortcodes/resources.html
+29 −46 layouts/partials/shortcodes/tabs.html
+2 −0 layouts/partials/stylesheet.html
+1 −1 layouts/partials/toc-id.html
+1 −1 layouts/partials/topbar/button/toc.html
+1 −1 layouts/partials/twitter_cards.html
+1 −1 layouts/partials/version.txt
+1 −1 layouts/shortcodes/attachments.html
+6 −5 layouts/shortcodes/expand.html
+7 −6 layouts/shortcodes/notice.html
+9 −8 layouts/shortcodes/resources.html
+8 −0 static/css/swagger-dark.css
+86 −26 static/css/theme.css
+2,101 −1,945 static/js/mermaid.min.js
+54 −28 static/js/theme.js
+10 −0 static/js/variant.js
+67 −13 vscode-frontmatter/snippets.de.json
+67 −13 vscode-frontmatter/snippets.en.json
32 changes: 32 additions & 0 deletions examples/dynamic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# yaml-language-server: $schema=http://localhost:1313/resticprofile/jsonschema/config.json

# {{ $databases := .Env.databases | split " " }}

version: "2"

global:
initialize: true

groups:
mysql:
profiles:
# {{ range $db := $databases }}
- stdin-{{ $db }}
# {{ end }}

profiles:
base:
description: "Read from stdin"
repository: "/Volumes/RAMDisk/example"
password-file: key

# {{ range $db := $databases }}
stdin-{{ $db }}:
inherit: base
description: "Database {{ $db }}"
backup:
stdin-command: "mysqldump --complete-insert --routines --triggers --single-transaction --no-tablespaces --databases {{ $db }}"
stdin-filename: "{{ $db }}.gz"
tag:
- "{{ $db }}"
# {{ end }}

0 comments on commit 62f3118

Please sign in to comment.