- Python must be installed
git clone [email protected]:sibils/sibils-websitecd sibils.github.io- Start mkdocs:
- Linux and Mac:
./serve - Windows:
.\serve.bat
- Linux and Mac:
- Open http://127.0.0.1:8000/
- Change some files; the browser page is updated automatically.
git add .; git commit; git push- The website is going to update itself after a few minutes.
- On a web page, click on the pencil icon in the top right corner: the link goes to the GitHub page.
- Make the change on GitHub; check using the Preview tab.
- Confirm the change using the "Commit changes" at the bottom of the page (commit into the master branch).
- The website is going to update itself after a few minutes.
- git clone the project.
- make the change into the
navsection ofmkdocs.yml.
- markdown with Mkdocs
- markdown extensions provided by Material for Mkdocs:
- Admonitions (Tips, Warning boxes)
- Diagrams, see also mermaid documentation
- Content tabs
- Footnotes
- Images with captions
- Various list types
- Abbreviations
- Icons and emojis
- MkDocs for documentation generator
- Material for MkDocs for theme
- https://squidfunk.github.io/mkdocs-material/customization/
mkdocs.yml, sectiontheme.custom_diroverrides/partials/copyright.html: custom footer.
- https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#custom-color-schemes
mkdocs.yml, sectionextra_cssmkdocs.yml, sectiontheme.palette.schemedocs/assets/extra.css
- https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/#autoloading
- disable Google Font to complying with the General Data Protection Regulation (GDPR)
mkdocs.yml, sectiontheme.font
- https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-tabs
mkdocs.yml,theme.features.navigation.tabs
- https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages
mkdocs.yml,theme.features.navigation.indexes
- https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#hiding-the-sidebars
docs/index.mddocs/vocabularies.md
After each commit, the website is built and updated automaticaly using .github\workflows\publish.yml.
The mkdocs plugin social adds card when links from the website are shared (the preview link on Teams, Outlook, social media etc...).
This plugin requires dependencies that are complicated to install especially on Windows. An option ask to plugin not to build the cards, however the dependencies are still required.
The implemented solution uses two mkdocs configuration file:
mkdocs.ymlis the default configuration.mkdocs.publish.ymlinherits frommkdocs.ymland adds the social plugin. The GitHub workflow uses this configuration file.
To sum up:
- don't care about
mkdocs.publish.yml. - make change in
mkdocs.ymlas expected. - the scripts
serveandserve.batshould work everything (Windows, Mac, Linux).