Files
agent0_homepage/mkdocs.sh
T
mwandGitHub ee8eba8549 Refactor MkDocs blog structure, enhance SCSS watcher, and improve plugin configuration (#103)
- Adjusted `mkdocs.sh` to expand SCSS watcher to include `docs` and `mkdocs.yml`.
- Simplified blog template by extracting post logic to `partials/post.html`.
- Updated `mkdocs.yml` with refined plugins including RSS, meta, and enhanced blog options.
- Improved blog Markdown files with structural changes and better TOC handling.
- Removed unused styles and deprecated logic in blog posts for cleaner maintenance.
2025-06-02 16:01:40 +02:00

18 lines
820 B
Bash
Executable File

#!/bin/bash
rm -r .cache
# Dirty google does no like us anymore fix
#mkdir -p .cache/plugin/social/
#cp ./docs/assets/webfonts/Roboto/*.ttf .cache/plugin/social/
# Add needed Plugins
docker build -t squidfunk/mkdocs-material ${PWD}/docker/mkdocs-material
docker run --rm -it --user $(id -u):$(id -g) -p 8000:8000 -v ${PWD}:/docs --entrypoint sh squidfunk/mkdocs-material-custom -c " \
echo 'Performing initial SCSS compilation...' && \
pysassc overrides/assets/css/custom.scss docs/assets/css/custom.css && \
echo 'Initial SCSS compilation complete. Starting watcher...' && \
python /docs/scss_watcher.py & \
echo 'SCSS watcher started. Starting MkDocs server...' && \
mkdocs serve --dev-addr=0.0.0.0:8000 --watch overrides --watch docs --watch mkdocs.yml"