diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index c42d9e9..82c7512 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -29,7 +29,7 @@ jobs: rm -rf content static # Create real folders for the build - mkdir -p content static + mkdir -p content static config/_default # Copy the new content from the docs repository cp -r $DOCS_DIR/* content/ @@ -40,6 +40,12 @@ jobs: rm -rf content/static fi + # Move dynamic config overrides (e.g. menus.en.toml, params.toml) if they exist + if [ -d "content/config/_default" ]; then + cp -r content/config/_default/* config/_default/ + rm -rf content/config + fi + # Clean git metadata rm -rf content/.git content/.gitea diff --git a/config/_default/menus.en.toml b/config/_default/menus.en.toml new file mode 100644 index 0000000..951f1fa --- /dev/null +++ b/config/_default/menus.en.toml @@ -0,0 +1,16 @@ +# This overrides the framework's default menu for the public site. + +[[main]] + name = "Projects" + pageRef = "/projects" + weight = 10 + +[[main]] + name = "Posts" + pageRef = "/posts" + weight = 20 + +[[main]] + name = "Stream" + pageRef = "/stream" + weight = 30 \ No newline at end of file diff --git a/config/_default/params.toml b/config/_default/params.toml new file mode 100644 index 0000000..0c8ac4b --- /dev/null +++ b/config/_default/params.toml @@ -0,0 +1,6 @@ +# This dynamically overrides the framework's article settings for the public site. +[article] + showEdit = true + showEditURL = true + editURL = "https://git.wompmacho.com/wompmacho/docs-public/src/branch/main" + editAppendPath = true \ No newline at end of file