Repository to collect my notes, build static HTML documentation using MkDocs-Material, and publish them on (GitHub for now) Pages.
Sources are plug and play as Git submodules in docs/.
-
trigger build from notes Markdown repo instead of schedule
-
transfer Markdown+YAML linters to stand-alone repo and use them for
pre-commithooks (Git or pre-commit framework) -
ensure Nerd Font is available in online version
-
style internal and external links differently - use Javascript to classify, e.g.
document.querySelectorAll('a').forEach(link => { const url = link.href; if (url.includes('http')) { link.classList.add('external-link'); } else { link.classList.add('internal-link'); } });
or with CSS
a[href^=http] { /* external link style */ } a[href^=http]::after { /* external link icon */ }
- ObsidianPublisher: I used the
mkdocs-publisher-templateto improve and extend my MkDocs based solution - Quartz
Quartz is a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites. Thousands of students, developers, and teachers are already using Quartz to publish personal notes, websites, and digital gardens to the web.