Repository to collect my notes, build static HTML documentation using MkDocs-Material, and publish them on (GitHub for now) Pages.
Sources are incorporated as Git submodules.
-
trigger build from notes Markdown repo instead of schedule
-
transfer Markdown+YAML linters to stand-alone repo and use them for
pre-commit
hooks (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-template
to 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.
- issues
- No navigation sidebar? How do you get an overview of contents other than manually creating maps of content and using the graph view?
- issues