Skip to content

Commit

Permalink
docs: comprehensivly document config.toml #721
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Nov 15, 2023
1 parent b91fb6e commit 2e07b80
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 122 deletions.
40 changes: 9 additions & 31 deletions exampleSite/config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ title = "Hugo Relearn Theme"
[[module.mounts]]
source = 'i18n'
target = 'i18n'
# just for this documentation to expose the GitHub hero image in the docs
[[module.mounts]]
source = '../images'
target = 'static/images'
Expand All @@ -203,36 +204,13 @@ title = "Hugo Relearn Theme"
[[module.mounts]]
source = 'static'
target = 'static'
# just for this documentation to expose our config in the docs
[[module.mounts]]
source = 'config'
target = 'static/config'

# settings specific to this theme's features; choose to your likings and
# consult this documentation for explaination
[params]
images = ["images/hero.png"]
editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/"
description = "Documentation for Hugo Relearn Theme"
author.name = "Sören Weber"
showVisitedLinks = true
collapsibleMenu = true
disableBreadcrumb = false
disableRootBreadcrumb = true
disableInlineCopyToClipBoard = true
disableNextPrev = false
disableLandingPageButton = true
breadcrumbSeparator = ">"
titleSeparator = "::"
themeVariant = [ "auto", "relearn-bright", "relearn-light", "relearn-dark", "zen-light", "zen-dark", "neon", "learn", "blue", "green", "red" ]
themeVariantAuto = [ "relearn-light", "relearn-dark" ]
disableSeoHiddenPages = true
# this is to index search for your native language in other languages, too (eg.
# pir in this showcase)
additionalContentLanguage = [ "en" ]
# this is for the stylesheet generator to allow for interactivity in Mermaid
# graphs; you usually will not need it and you should remove this for
# security reasons
mermaidInitialize = "{ \"securityLevel\": \"loose\" }"
mermaidZoom = true
[params.siteparam.test]
text = "A **nested** parameter <b>with</b> formatting"
[params.imageEffects]
bg-white = true # extension, not supported by the theme
border = true
# Demo setting for displaying the siteparam shortcode the docs.
siteparam.test.text = "A **nested** option <b>with</b> formatting"
# Extension to the image effects only for the docs.
imageEffects.bg-white = true
Loading

0 comments on commit 2e07b80

Please sign in to comment.