mirror of
https://github.com/MichaelCurrin/mkdocs-quickstart.git
synced 2026-03-28 17:42:47 +01:00
1.1 KiB
1.1 KiB
Tutorial
How to create a MkDocs site
This is a summary of the tutorial on mkdocs.org.
Basic structure
This is the simplest MkDocs site you can make, with a config at the root and a homepage in the docs directory (default). Usually on master branch.
mkdocs.yml
docs/
index.md
The steps below start with that and extend it to more pages.
Setup site
Tip: Run mkdocs new . to create the start site above and then continue with these steps.
- Create pages.
- Create
docsdirectory. - Create
index.md - Create other pages.
- Create
- Setup config.
- Create
mkdocs.ymlat project root. - Setup navbar in
mkdocs.yml.nav: - Home: index.md - About: about.md - Choose a theme.
theme: readthedocs
- Create
- Create a favicon.
- It will be picked up this path:
docs/img/favicon.ico.
- It will be picked up this path:
Further configuration
See Configuration page on MkDocs site for options.