feat: add versioning setup

This commit is contained in:
Henk Verlinde
2021-09-28 16:26:15 +02:00
parent 94bacd3492
commit b290c57d3d
14 changed files with 127 additions and 17 deletions

View File

@ -62,6 +62,7 @@ rel = "sitemap"
[permalinks]
blog = "/blog/:title/"
docs = "/docs/1.0/:sections[1:]/:title/"
[minify.tdewolff.html]
keepWhitespace = false

View File

@ -12,7 +12,8 @@
[[main]]
name = "Docs"
url = "/docs/prologue/introduction/"
# url = "/docs/prologue/introduction/"
url = "/docs/1.0/prologue/introduction/"
weight = 10
[[main]]

View File

@ -6,6 +6,9 @@ titleSeparator = "-"
titleAddition = "Modern Documentation Theme"
description = "Doks is a Hugo theme helping you build modern documentation websites that are secure, fast, and SEO-ready — by default."
## Documentation
docsVersion = "1.0"
## Open Graph
images = ["doks.png"]
ogLocale = "en_US"
@ -79,4 +82,4 @@ editPage = false
kaTex = false
collapsibleSidebar = true
multilingualMode = false
docsVersioning = false # Not yet functional
docsVersioning = true