hugo.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. baseURL: http://0.0.0.0:1313/
  2. title: Documentation
  3. theme: hugo-book
  4. copyright: "This is a copyright placeholder"
  5. # Book configuration
  6. disablePathToLower: true
  7. enableGitInfo: true
  8. # Needed for mermaid/katex shortcodes
  9. markup:
  10. goldmark:
  11. renderer:
  12. unsafe: true
  13. tableOfContents:
  14. startLevel: 1
  15. highlight:
  16. style: base16-snazzy
  17. # Multi-lingual mode config
  18. # There are different options to translate files
  19. # See https://gohugo.io/content-management/multilingual/#translation-by-filename
  20. # And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
  21. # languages:
  22. # en:
  23. # languageName: English
  24. # contentDir: content
  25. # weight: 1
  26. # zh:
  27. # languageName: Chinese
  28. # contentDir: content.zh
  29. # weight: 2
  30. # he:
  31. # languageName: Hebrew
  32. # contentDir: content.he
  33. # languageDirection: rtl
  34. # weight: 3
  35. menu:
  36. home:
  37. - name: "Documentation"
  38. pageRef: "/docs/"
  39. weight: 10
  40. - name: "Github"
  41. url: "https://github.com/alex-shpak/hugo-book/"
  42. weight: 20
  43. # before: []
  44. after:
  45. - name: "Github"
  46. url: "https://github.com/alex-shpak/hugo-book"
  47. weight: 10
  48. taxonomies:
  49. tag: tags
  50. params:
  51. # (Optional, default light) Sets color theme: light, dark or auto.
  52. # Theme 'auto' switches between dark and light modes based on browser/os preferences
  53. BookTheme: "light"
  54. # (Optional, default none) Controls table of contents visibility on right side of pages.
  55. # Start and end levels can be controlled with markup.tableOfContents setting.
  56. # You can also specify this parameter per page in front matter.
  57. # BookToC: true
  58. # (Optional, default favicon.png) Set the path to a favicon file.
  59. # If the favicon is /static/favicon.png then the path would be favicon.png
  60. # BookFavicon: "favicon.png"
  61. # (Optional, default none) Set the path to a logo for the book.
  62. # If the logo is /static/logo.png then the path would be logo.png
  63. # BookLogo: /logo.png
  64. # (Optional, default docs) Specify root page to render child pages as menu.
  65. # Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/
  66. # For backward compatibility you can set '*' to render all sections to menu. Acts same as '/'
  67. # BookSection: docs
  68. # (Optional, default none) Set template for commit link for the page. Requires enableGitInfo.
  69. # When set enabled 'Last Modified' and a link to the commit in the footer of the page.
  70. # Param is executed as template using .Site, .Page and .GitInfo as context.
  71. # BookLastChangeLink: 'https://github.com/alex-shpak/hugo-book/commit/{{ .GitInfo.Hash }}'
  72. # (Optional, default none) Set template for edit page link.
  73. # When set enabled 'Edit this page' link in the footer of the page.
  74. # Param is executed as template using .Site, .Page and .Path as context.
  75. # BookEditLink: 'https://github.com/alex-shpak/hugo-book/edit/main/exampleSite/{{ .Path }}'
  76. # (Optional, default 'January 2, 2006') Configure the date format used on the pages
  77. # - In git information
  78. # - In blog posts
  79. # https://gohugo.io/functions/time/format/
  80. # BookDateFormat: "January 2, 2006"
  81. # (Optional, default true) Enables search function with flexsearch,
  82. # Index is built on fly, therefore it might slowdown your website.
  83. # Configuration for indexing can be adjusted in i18n folder per language.
  84. BookSearch: true
  85. # (Optional, default true) Enables comments template on pages
  86. # By default partals/docs/comments.html includes Disqus template
  87. # See https://gohugo.io/content-management/comments/#configure-disqus
  88. # Can be overwritten by same param in page frontmatter
  89. BookComments: false
  90. # /!\ This is an experimental feature, might be removed or changed at any time
  91. # (Optional, experimental, default false) Enables portable links and link checks in markdown pages.
  92. # Portable links meant to work with text editors and let you write markdown without {{< relref >}} shortcode
  93. # Theme will print warning or error if page referenced in markdown does not exists.
  94. # Possible values are false | 'warning' | 'error'
  95. BookPortableLinks: 'warning'
  96. # /!\ This is an experimental feature, might be removed or changed at any time
  97. # (Optional, experimental, default false) Enables service worker that caches visited pages and resources for offline use.
  98. # can be false, true or 'precache', precache will try to download all content pages on install.
  99. BookServiceWorker: 'precache'
  100. # /!\ This is an experimental feature, might be removed or changed at any time
  101. # (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present.
  102. BookTranslatedOnly: false