Update Servers/Documentation/Zensical.md
This commit is contained in:
@@ -49,26 +49,48 @@ rm -rf /srv/zensical/docs/{*,.*}
|
|||||||
Now we want to set some sensible defaults for Zensical to style it to look as close to Material for MKDocs as possible.
|
Now we want to set some sensible defaults for Zensical to style it to look as close to Material for MKDocs as possible.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Scalar Keys
|
sudo tee /srv/zensical/zensical.toml > /dev/null <<'EOF'
|
||||||
sed -i -E 's/^[[:space:]]*site_name[[:space:]]*=[[:space:]]*".*"/site_name = "Bunny Lab"/' zensical.toml
|
[project]
|
||||||
sed -i -E 's/^[[:space:]]*site_description[[:space:]]*=[[:space:]]*".*"/site_description = "Homelab Knowledgebase"/' zensical.toml
|
site_name = "Bunny Lab"
|
||||||
sed -i -E 's/^[[:space:]]*site_author[[:space:]]*=[[:space:]]*".*"/site_author = "Nicole Rappe"/' zensical.toml
|
site_description = "Homelab Knowledgebase"
|
||||||
sed -i -E 's|^[[:space:]]*#?[[:space:]]*(site_url[[:space:]]*=[[:space:]]*)".*"|\1"https://kb.bunny-lab.io/"|' zensical.toml
|
site_author = "Nicole Rappe"
|
||||||
|
site_url = "https://kb.bunny-lab.io/"
|
||||||
|
|
||||||
# Text inside the copyright triple-quoted string
|
[project.theme]
|
||||||
sed -i -E 's/Copyright[[:space:]]*©[[:space:]]*2026[[:space:]]*The authors/Copyright \© 2026 Bunny Lab/g' zensical.toml
|
variant = "classic"
|
||||||
|
language = "en"
|
||||||
|
features = [
|
||||||
|
"announce.dismiss",
|
||||||
|
"content.action.edit",
|
||||||
|
"content.action.view",
|
||||||
|
"content.code.annotate",
|
||||||
|
"content.code.copy",
|
||||||
|
"content.code.select",
|
||||||
|
"content.footnote.tooltips",
|
||||||
|
"content.tabs.link",
|
||||||
|
"content.tooltips",
|
||||||
|
"navigation.indexes",
|
||||||
|
"navigation.instant",
|
||||||
|
"navigation.instant.prefetch",
|
||||||
|
"navigation.instant.progress",
|
||||||
|
"navigation.path",
|
||||||
|
"navigation.tabs",
|
||||||
|
"navigation.tabs.sticky",
|
||||||
|
"navigation.top",
|
||||||
|
"navigation.tracking",
|
||||||
|
"search.highlight",
|
||||||
|
]
|
||||||
|
|
||||||
# Theme
|
[[project.theme.palette]]
|
||||||
sed -i -E 's/^[[:space:]]*#?[[:space:]]*(variant[[:space:]]*=[[:space:]]*)"classic"/\1"classic"/' zensical.toml
|
scheme = "default"
|
||||||
|
toggle.icon = "lucide/sun"
|
||||||
|
toggle.name = "Switch to dark mode"
|
||||||
|
|
||||||
# Feature Toggles
|
[[project.theme.palette]]
|
||||||
sed -i -E 's/^[[:space:]]*#([[:space:]]*"content\.action\.edit",[[:space:]]*)/\1/' zensical.toml
|
scheme = "slate"
|
||||||
sed -i -E 's/^[[:space:]]*#([[:space:]]*"content\.action\.view",[[:space:]]*)/\1/' zensical.toml
|
toggle.icon = "lucide/moon"
|
||||||
sed -i -E 's/^([[:space:]]*)"navigation\.footer",[[:space:]]*$/#\1"navigation.footer",/' zensical.toml
|
toggle.name = "Switch to light mode"
|
||||||
sed -i -E 's/^[[:space:]]*#[[:space:]]*("navigation\.instant\.progress",[[:space:]]*)/\1/' zensical.toml
|
EOF
|
||||||
sed -i -E 's/^([[:space:]]*)"navigation\.sections",[[:space:]]*$/#\1"navigation.sections",/' zensical.toml
|
|
||||||
sed -i -E 's/^[[:space:]]*#([[:space:]]*"navigation\.tabs",[[:space:]]*)/\1/' zensical.toml
|
|
||||||
sed -i -E 's/^[[:space:]]*#([[:space:]]*"navigation\.tabs\.sticky",[[:space:]]*)/\1/' zensical.toml
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create Watchdog Service
|
### Create Watchdog Service
|
||||||
|
|||||||
Reference in New Issue
Block a user