mirror of
https://github.com/pi-hole/docs.git
synced 2026-04-02 00:19:04 +01:00
Switch from mkdocs-material to zensical
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -10,6 +10,6 @@ RUN apk add --no-cache \
|
||||
ENV USER node
|
||||
USER ${USER}
|
||||
|
||||
# python packages (as mkdocs) are installed in the user's home directory
|
||||
# python packages (as zensical) are installed in the user's home directory
|
||||
# but we need them to be accessible from ${PATH}
|
||||
ENV PATH="${PATH}:/home/${USER}/.local/bin"
|
||||
|
||||
@@ -94,8 +94,6 @@ markdown_extensions:
|
||||
auto_append:
|
||||
- docs/abbreviations.md
|
||||
# Include files in other documents like {!some/dir/in/docs/filename.md!}
|
||||
- markdown_include.include:
|
||||
base_path: docs
|
||||
# Metadata support in pages
|
||||
# (https://squidfunk.github.io/mkdocs-material/extensions/metadata/)
|
||||
- meta
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[build]
|
||||
base = "/"
|
||||
publish = "site/"
|
||||
command = "mkdocs build --clean --strict"
|
||||
command = "zensical build --clean --strict"
|
||||
|
||||
[build.environment]
|
||||
PYTHON_VERSION = "3.14"
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
},
|
||||
"homepage": "https://docs.pi-hole.net/",
|
||||
"scripts": {
|
||||
"build": "mkdocs build --clean --strict",
|
||||
"build": "zensical build --clean --strict",
|
||||
"markdownlint": "markdownlint-cli2 \"**/*.md\" \"!**/node_modules/**\"",
|
||||
"linkinator": "linkinator site --recurse --silent --skip \"^(?!http://localhost)\"",
|
||||
"pretest": "npm run build",
|
||||
"test": "npm run markdownlint && npm run linkinator",
|
||||
"serve": "mkdocs serve --dev-addr 0.0.0.0:8000",
|
||||
"serve": "zensical serve --dev-addr 0.0.0.0:8000",
|
||||
"start": "npm run serve"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
mkdocs==1.6.1
|
||||
mkdocs-git-revision-date-localized-plugin==1.5.1
|
||||
mkdocs-material==9.7.6
|
||||
zensical==0.0.8
|
||||
mkdocs-git-revision-date-localized-plugin==1.5.0
|
||||
mkdocs-redirects==1.2.2
|
||||
markdown-include==0.8.1
|
||||
|
||||
Reference in New Issue
Block a user