MkDocs Quick Reference¶
Basic¶
Local testing:
# Start a local server at localhost:8000
mkdocs serve
# Start a local server at user-specified IP/port
mkdocs serve -a <IP>:<Port>
# Start a local server with "dirty load"
# (re-building only the updated pages)
mkdocs serve --dirty
Caveat for --dirty
:
- The option
--dirty
seems to have some problem updating the nav bar. If inmkdocs.yml
an entry undernav:
was not given a name, the entry will appear in the nav bar with nameNone
(while it should use the h1 header of the linked note by default).