Getting Started¶
This page covers the day-to-day workflow: running the site locally, adding pages, and using the Markdown features that are turned on.
Local commands¶
# one-time
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# every session
mkdocs serve # live-reload at http://127.0.0.1:8000
mkdocs build --strict # produce ./site, fail on warnings
Why --strict?
Strict mode turns warnings (broken links, orphaned pages, missing nav entries) into build failures. Catch them locally instead of in production.
Adding a page¶
- Create a Markdown file under
docs/, e.g.docs/coffee/v60-recipe.md. -
Add a frontmatter block:
-
Link it from a parent page or add it to
nav:inmkdocs.yml. - Run
mkdocs serveand verify the link, the TOC, and any cross-references render.
Markdown features enabled¶
Admonitions¶
Heads up
Admonitions support note, tip, warning, danger, info, example, quote, and more.
Collapsible details
Use ??? for collapsed-by-default, ???+ for expanded-by-default.
Code blocks with highlighting & annotations¶
- Inline annotation — click the marker in the rendered page.
Tabs¶
- Dose: 15 g
- Water: 240 g
- Time: 2:30–3:00
- Dose: 18 g
- Yield: 36 g
- Time: 25–30 s
Tables¶
| Method | Ratio | Grind |
|---|---|---|
| V60 | 1:16 | Medium |
| AeroPress | 1:14 | Med-fine |
| Espresso | 1:2 | Fine |
Task lists¶
- Scaffold the site
- Add starter content
- Migrate Obsidian vault sections
- Wire up CI build
Footnotes & definitions¶
Pour-over is a percolation method1.
- Percolation
- A brewing process where water passes through coffee grounds a single time.
- Immersion
- A brewing process where grounds steep in water before separation.
Keys & inline highlights¶
Press Ctrl+K to focus the search box. Inline code like mkdocs serve and highlighted text are supported.
Mermaid diagrams¶
flowchart LR
A[Obsidian vault] --> B[Curate & tag]
B --> C[Promote to docs/]
C --> D[mkdocs build]
D --> E[Published site]
Troubleshooting¶
Config value 'plugins'error: the plugin is listed inmkdocs.ymlbut not installed. Runpip install -r requirements.txt.- Broken link warnings under
--strict: check the relative path; MkDocs resolves links relative to the source file, not the URL. - Search not finding a page: make sure it's reachable from
nav:or linked from another page. Orphan pages aren't indexed in some configurations.
-
Water moves through a bed of grounds once, by gravity, without prolonged immersion. ↩