Create a Documentation Site
This guide will bootstrap a documentation site with the following features:
- Built using MkDocs and MkDocs Material
- Published to Vercel
-
Create a
Makefileto define some common commands -
Create a
requirements.txtfile to manage Python dependencies, updating version numbers to their latest versions -
Define a
mkdocs.ymlconfiguration filesite_name: My Site Name site_author: My Name site_url: https://<url> site_description: My site description plugins: - search markdown_extensions: - pymdownx.highlight: anchor_linenums: true - pymdownx.inlinehilite - pymdownx.snippets - pymdownx.superfences: custom_fences: - name: mermaid class: mermaid format: !!python/name:pymdownx.superfences.fence_code_format -
Configure Prettier
-
Install Prettier globally
-
Configure
.prettierrc -
Configure
.prettierignore
-
-
Setup docs
-
Create
docsfolder -
Create a sample doc
docs/index.md
-
-
Publish to Vercel
- Open the create new page
- Select the Git repo to use
- In "Configure Project", select:
- "Framework Preset" to "Other"
- "Build and Output Settings" 1. "Build Command" to
mkdocs build2. "Output Directory" tosite3. "Install Command" topip install -r requirements.txt
Last update:
August 11, 2023
Created: June 3, 2023
Created: June 3, 2023