From 5679ac9090d194fb3f50aa69496d4aecbc66d46d Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Date: Wed, 15 Apr 2026 09:10:04 +0000
Subject: [PATCH] fix: update documentation site setup and config

---
 /dev/null                           |   38 -------------------
 .gitignore                          |    4 +
 config/documentation/hugo.toml      |    6 +++
 config/documentation/markup.toml    |    2 +
 config/documentation/module.toml    |   17 ++++++++
 theme.toml                          |    2 
 package.json                        |    4 +-
 config/documentation/params.toml    |    0 
 config/documentation/languages.toml |    4 ++
 9 files changed, 35 insertions(+), 42 deletions(-)

diff --git a/.frontmatter/database/taxonomyDb.json b/.frontmatter/database/taxonomyDb.json
deleted file mode 100644
index 9e26dfe..0000000
--- a/.frontmatter/database/taxonomyDb.json
+++ /dev/null
@@ -1 +0,0 @@
-{}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index d2706c9..1b2dab7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
 node_modules
 public
-.wireit
\ No newline at end of file
+.wireit
+.hugo_build.lock
+resources/_gen
\ No newline at end of file
diff --git a/config/documentation/hugo.toml b/config/documentation/hugo.toml
new file mode 100644
index 0000000..3967692
--- /dev/null
+++ b/config/documentation/hugo.toml
@@ -0,0 +1,6 @@
+baseURL = "http://localhost/"
+languageCode = "en-us"
+title = "Ananke Documentation"
+contentDir = "../docs"
+enableRobotsTXT = true
+
diff --git a/config/documentation/languages.toml b/config/documentation/languages.toml
new file mode 100644
index 0000000..063b091
--- /dev/null
+++ b/config/documentation/languages.toml
@@ -0,0 +1,4 @@
+[en]
+contentDir = 'docs/en'
+label = 'English'
+weight = 10
\ No newline at end of file
diff --git a/config/documentation/markup.toml b/config/documentation/markup.toml
new file mode 100644
index 0000000..be95fd1
--- /dev/null
+++ b/config/documentation/markup.toml
@@ -0,0 +1,2 @@
+[highlight]
+style = 'tokyonight-day'
diff --git a/config/documentation/module.toml b/config/documentation/module.toml
new file mode 100644
index 0000000..22e8883
--- /dev/null
+++ b/config/documentation/module.toml
@@ -0,0 +1,17 @@
+[hugoVersion]
+min = "0.160.0"
+# see below
+replacements = ["github.com/theNewDynamic/gohugo-theme-ananke/v2 -> ../../"]
+
+[[mounts]]
+source = 'node_modules'
+target = 'assets'
+
+[[mounts]]
+source = 'assets'
+target = 'assets'
+
+[[imports]]
+# @todo I have the feeling that this is not required when we run the site inside 
+# of the theme itself. Test and remove if not required.
+path = "github.com/theNewDynamic/gohugo-theme-ananke/v2"
diff --git a/site/config/_default/params.toml b/config/documentation/params.toml
similarity index 100%
rename from site/config/_default/params.toml
rename to config/documentation/params.toml
diff --git a/package.json b/package.json
index af8200d..984a74a 100644
--- a/package.json
+++ b/package.json
@@ -60,7 +60,7 @@
       "command": "commit-and-tag-version --sign -a -t \"v\" --releaseCommitMessageFormat \"chore(release): v{{currentTag}}\" --prerelease prerelease -- --no-verify"
     },
     "server": {
-      "command": "cd site && hugo server"
+      "command": "hugo server --environment documentation"
     }
   },
   "cspell": {
@@ -72,4 +72,4 @@
       "node_modules"
     ]
   }
-}
+}
\ No newline at end of file
diff --git a/site/.frontmatter/database/pinnedItemsDb.json b/site/.frontmatter/database/pinnedItemsDb.json
deleted file mode 100644
index 9e26dfe..0000000
--- a/site/.frontmatter/database/pinnedItemsDb.json
+++ /dev/null
@@ -1 +0,0 @@
-{}
\ No newline at end of file
diff --git a/site/.frontmatter/database/taxonomyDb.json b/site/.frontmatter/database/taxonomyDb.json
deleted file mode 100644
index daaef03..0000000
--- a/site/.frontmatter/database/taxonomyDb.json
+++ /dev/null
@@ -1 +0,0 @@
-{"taxonomy":{"tags":[],"categories":[]}}
\ No newline at end of file
diff --git a/site/.gitignore b/site/.gitignore
deleted file mode 100644
index 544890a..0000000
--- a/site/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-.hugo_build.lock
-public
-resources
diff --git a/site/README.md b/site/README.md
deleted file mode 100644
index 1a996d8..0000000
--- a/site/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# Documentation Site
-
-This directory contains the Hugo project used to render Ananke's documentation site.
-
-## Where docs content lives
-
-Documentation pages are authored in the repository root under [`/docs`](../docs).
-
-## Run locally
-
-From repository root:
-
-```bash
-npm run server
-```
-
-This runs `hugo server` in `site/` using the local docs content.
diff --git a/site/assets/ananke/css/fixes.css b/site/assets/ananke/css/fixes.css
deleted file mode 100644
index ee49933..0000000
--- a/site/assets/ananke/css/fixes.css
+++ /dev/null
@@ -1,4 +0,0 @@
-pre,
-.pre {
-  overflow: auto;
-}
\ No newline at end of file
diff --git a/site/assets/ananke/css/highlighting.css b/site/assets/ananke/css/highlighting.css
deleted file mode 100644
index 7533c0c..0000000
--- a/site/assets/ananke/css/highlighting.css
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Generated using: hugo gen chromastyles --style=tokyonight-day */
-
-/* Background */ .bg { color:#3760bf;background-color:#e1e2e7; }
-/* PreWrapper */ .chroma { color:#3760bf;background-color:#e1e2e7; }
-/* Error */ .chroma .err { color:#c64343 }
-/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
-/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
-/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
-/* LineHighlight */ .chroma .hl { background-color:#a1a6c5 }
-/* LineNumbersTable */ .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#6172b0 }
-/* LineNumbers */ .chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#6172b0 }
-/* Line */ .chroma .line { display:flex; }
-/* Keyword */ .chroma .k { color:#9854f1 }
-/* KeywordConstant */ .chroma .kc { color:#8c6c3e }
-/* KeywordDeclaration */ .chroma .kd { color:#9d7cd8 }
-/* KeywordNamespace */ .chroma .kn { color:#007197 }
-/* KeywordPseudo */ .chroma .kp { color:#9854f1 }
-/* KeywordReserved */ .chroma .kr { color:#9854f1 }
-/* KeywordType */ .chroma .kt { color:#0db9d7 }
-/* NameAttribute */ .chroma .na { color:#2e7de9 }
-/* NameClass */ .chroma .nc { color:#b15c00 }
-/* NameConstant */ .chroma .no { color:#b15c00 }
-/* NameDecorator */ .chroma .nd { color:#2e7de9;font-weight:bold }
-/* NameEntity */ .chroma .ni { color:#007197 }
-/* NameException */ .chroma .ne { color:#8c6c3e }
-/* NameLabel */ .chroma .nl { color:#587539 }
-/* NameNamespace */ .chroma .nn { color:#8c6c3e }
-/* NameProperty */ .chroma .py { color:#8c6c3e }
-/* NameTag */ .chroma .nt { color:#9854f1 }
-/* NameBuiltin */ .chroma .nb { color:#587539 }
-/* NameBuiltinPseudo */ .chroma .bp { color:#587539 }
-/* NameFunction */ .chroma .nf { color:#2e7de9 }
-/* NameFunctionMagic */ .chroma .fm { color:#2e7de9 }
-/* LiteralString */ .chroma .s { color:#587539 }
-/* LiteralStringAffix */ .chroma .sa { color:#9d7cd8 }
-/* LiteralStringBacktick */ .chroma .sb { color:#587539 }
-/* LiteralStringChar */ .chroma .sc { color:#587539 }
-/* LiteralStringDelimiter */ .chroma .dl { color:#2e7de9 }
-/* LiteralStringDoc */ .chroma .sd { color:#a1a6c5 }
-/* LiteralStringDouble */ .chroma .s2 { color:#587539 }
-/* LiteralStringEscape */ .chroma .se { color:#2e7de9 }
-/* LiteralStringHeredoc */ .chroma .sh { color:#a1a6c5 }
-/* LiteralStringInterpol */ .chroma .si { color:#587539 }
-/* LiteralStringOther */ .chroma .sx { color:#587539 }
-/* LiteralStringRegex */ .chroma .sr { color:#007197 }
-/* LiteralStringSingle */ .chroma .s1 { color:#587539 }
-/* LiteralStringSymbol */ .chroma .ss { color:#587539 }
-/* LiteralNumber */ .chroma .m { color:#8c6c3e }
-/* LiteralNumberBin */ .chroma .mb { color:#8c6c3e }
-/* LiteralNumberFloat */ .chroma .mf { color:#8c6c3e }
-/* LiteralNumberHex */ .chroma .mh { color:#8c6c3e }
-/* LiteralNumberInteger */ .chroma .mi { color:#8c6c3e }
-/* LiteralNumberIntegerLong */ .chroma .il { color:#8c6c3e }
-/* LiteralNumberOct */ .chroma .mo { color:#8c6c3e }
-/* Operator */ .chroma .o { color:#587539;font-weight:bold }
-/* OperatorWord */ .chroma .ow { color:#587539;font-weight:bold }
-/* Comment */ .chroma .c { color:#a1a6c5;font-style:italic }
-/* CommentHashbang */ .chroma .ch { color:#a1a6c5;font-style:italic }
-/* CommentMultiline */ .chroma .cm { color:#a1a6c5;font-style:italic }
-/* CommentSingle */ .chroma .c1 { color:#a1a6c5;font-style:italic }
-/* CommentSpecial */ .chroma .cs { color:#a1a6c5;font-style:italic }
-/* CommentPreproc */ .chroma .cp { color:#a1a6c5;font-style:italic }
-/* CommentPreprocFile */ .chroma .cpf { color:#a1a6c5;font-weight:bold;font-style:italic }
-/* GenericDeleted */ .chroma .gd { color:#c64343;background-color:#e9e9ed }
-/* GenericEmph */ .chroma .ge { font-style:italic }
-/* GenericError */ .chroma .gr { color:#c64343 }
-/* GenericHeading */ .chroma .gh { color:#8c6c3e;font-weight:bold }
-/* GenericInserted */ .chroma .gi { color:#587539;background-color:#e9e9ed }
-/* GenericStrong */ .chroma .gs { font-weight:bold }
-/* GenericSubheading */ .chroma .gu { color:#8c6c3e;font-weight:bold }
-/* GenericTraceback */ .chroma .gt { color:#c64343 }
-/* GenericUnderline */ .chroma .gl { text-decoration:underline }
diff --git a/site/config/_default/hugo.toml b/site/config/_default/hugo.toml
deleted file mode 100644
index a2fbbc3..0000000
--- a/site/config/_default/hugo.toml
+++ /dev/null
@@ -1,15 +0,0 @@
-baseURL = "http://localhost/"
-locale = "en-us"
-title = "Ananke Documentation"
-contentDir = "../docs"
-enableRobotsTXT = true
-
-[markup]
-[markup.highlight]
-style = 'tokyonight-day'
-
-[module]
-replacements = ["github.com/theNewDynamic/gohugo-theme-ananke/v2 -> ../../"]
-
-[[module.imports]]
-path = "github.com/theNewDynamic/gohugo-theme-ananke/v2"
diff --git a/site/frontmatter.json b/site/frontmatter.json
deleted file mode 100644
index 4e53ccc..0000000
--- a/site/frontmatter.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
-  "$schema": "https://frontmatter.codes/frontmatter.schema.json",
-  "frontMatter.framework.id": "hugo",
-  "frontMatter.content.publicFolder": "static",
-  "frontMatter.preview.host": "http://localhost:1313",
-  "frontMatter.content.pageFolders": [
-    {
-      "title": "docs",
-      "path": "[[workspace]]/docs"
-    }
-  ]
-}
\ No newline at end of file
diff --git a/site/go.mod b/site/go.mod
deleted file mode 100644
index eb4feb9..0000000
--- a/site/go.mod
+++ /dev/null
@@ -1,5 +0,0 @@
-module github.com/davidsneighbour/gohugo-theme-ananke
-
-go 1.21
-
-require github.com/theNewDynamic/gohugo-theme-ananke/v2 v2.12.1 // indirect
diff --git a/site/go.sum b/site/go.sum
deleted file mode 100644
index 9e84f2d..0000000
--- a/site/go.sum
+++ /dev/null
@@ -1,2 +0,0 @@
-github.com/theNewDynamic/gohugo-theme-ananke/v2 v2.12.1 h1:SxVd2+ADMcMiNSsCnAdBnoMMZAUfwHDCvDExZ5fRseo=
-github.com/theNewDynamic/gohugo-theme-ananke/v2 v2.12.1/go.mod h1:+a6uqEsCq0+rqHWY5W5QA3P9DNnxcbyCw+CVEB+Uveg=
diff --git a/site/layouts/_shortcodes/page-index.html b/site/layouts/_shortcodes/page-index.html
deleted file mode 100644
index b96558c..0000000
--- a/site/layouts/_shortcodes/page-index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{{ $pagesBySection := site.RegularPages.GroupBy "Section" }}
-{{ $sortedSections := slice }}
-
-{{ range $pagesBySection }}
-  {{ $sectionPage := page.GetPage .Key }}
-  {{ $sortedSections = $sortedSections | append (dict "sectionPage" $sectionPage "pages" .Pages) }}
-{{ end }}
-
-{{ range sort $sortedSections "sectionPage.Weight" }}
-  <h3>{{ .sectionPage.Title }}</h3>
-
-  <ul>
-      {{ range .pages }}
-      <li>
-        <a href="{{ .Permalink }}">{{ .Title }}</a>
-      </li>
-      {{ end }}
-  </ul>
-{{ end }}
diff --git a/site/partials/site-scripts.html b/site/partials/site-scripts.html
deleted file mode 100644
index 638c31e..0000000
--- a/site/partials/site-scripts.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
diff --git a/site/static/assets/styles.css b/site/static/assets/styles.css
deleted file mode 100644
index 79a5cb5..0000000
--- a/site/static/assets/styles.css
+++ /dev/null
@@ -1,38 +0,0 @@
-.roboto {
-	font-family: "Roboto", sans-serif;
-	font-optical-sizing: auto;
-	font-weight: 400;
-	font-style: normal;
-	font-variation-settings:
-		"wdth" 100;
-}
-
-.roboto-condensed {
-	font-family: "Roboto Condensed", sans-serif;
-	font-optical-sizing: auto;
-	font-weight: 600;
-	font-style: normal;
-	text-transform: uppercase;
-}
-
-body {
-	font-family: "Roboto", sans-serif;
-	font-optical-sizing: auto;
-	font-weight: 400;
-	font-style: normal;
-	font-variation-settings:
-		"wdth" 100;
-}
-
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
-	font-family: "Roboto Condensed", sans-serif;
-	font-optical-sizing: auto;
-	font-weight: 600;
-	font-style: normal;
-	text-transform: uppercase;
-}
diff --git a/theme.toml b/theme.toml
index 4e835c9..c963d9c 100644
--- a/theme.toml
+++ b/theme.toml
@@ -6,7 +6,7 @@
 demosite = "https://ananke-theme.netlify.app/"
 tags = ["website", "starter", "responsive", "Disqus", "blog", "Tachyons", "Multilingual"]
 features = ["posts", "shortcodes", "related content", "comments"]
-min_version = "0.128.0"
+min_version = "0.160.0"
 
 authors = [
   {name = "Patrick Kollitsch", homepage = "https://github.com/davidsneighbour"},

--
Gitblit v1.10.0