GitHub and MkDocs
This HTML documentation was built using GitHub and its Pages feature in addition to Python enriched with mkdocs and mkdocs-material modules.
Create and publish your web site using MkDocs and MkDocs material
Notes
- for MkDocs documentation visit mkdocs.org.
-
for MkDocs Material documentation visit squidfunk.github.io/mkdocs-material
-
you will need two GitHub repositories
- one private to create and build
- one public to publish in HTML with GitHub Pages feature
-
Install GitHub Desktop client
-
Install Python 3.12+
-
Ensure Python version is 3.12+ and pip version is 20+
C:\Users\janaf\GitHub\career>python --version Python 3.12.4 C:\Users\janaf\GitHub\career>pip --version pip 24.0 from C:\Users\janaf\Python312\Lib\site-packages\pip (python 3.12)
-
Install mkdocs Python's module
pip install mkdocs
-
Install mkdocs-material Python's module
1. setup your GitHub private repositorypip install mkdocs-material
-
Setup your GitHub public repository using GitHub Pages web site
-
Create your web site using MkDocs and MkDocs Material on your private repository
-
Test your web site on your private repository
cd [path to private github repository on local laptop] mkdocs serve
-
Build it
cd [path to private github repository on local laptop] mkdocs build
-
Copy your generated public web site (on your local laptop) from your private repository 'site' folder under your public GitHub repository (on your local laptop)
-
Publish your public web site using GitHub Desktop