If you ever need to edit or use this documentation without internet, it can be a hard task.
Tip: if you have any WSL distro installed, just use it following Linux instructions
To start off you must install a Python environment. Move on to Install MKDocs if you already have a Python environment installed.
If you will be using Python a lot, install Anaconda, otherwise just install standard Python.
- Go to the Anaconda Distribution download page.
- Under
Python 3.7 version
, hit the download button. - Follow the prompts during the install process for default install ie Just Me, default folder, Don't add to path or register as system python.
- Go to the Official Python Download site.
- Under
Download the latest version for Windows
, click onDownload Python x.xx
. - Follow the installation prompts.
-
Open a CMD Window.
Win + R
then typecmd
+ Enter. -
If you have installed Anaconda, run
Anaconda Prompt
from theStart Menu
to activate the python environment. -
Run:
pip install mkdocs mkdocs-material
-
Click here to download a zip version of the documentation.
-
Extract the zip to the directory you want.
-
Check paths in
serve.bat
.
Click on serve.bat
and it should tell you that it is serving the docs on http://localhost:8000
In my case:
INFO - Building documentation...
INFO - Cleaning site directory
[I 000000 17:35:02 server:296] Serving on http://127.0.0.1:8000
[I 000000 17:35:00 handlers:62] Start watching changes
[I 000000 17:35:00 handlers:64] Start detecting changes
Now head to http://localhost:8000 in your browser of choice.
!!! hint "What about when I unplug my Internet?" Don't worry as the MKDocs development server only uses the internal network in your PC, thats why you head to http://localhost:8000, as it is heading to your local PC.
Usually your distro has its own inbuilt package manager. In this case, we will be referring to apt
, which is one of the more common ones out there.
- Open up a bash shell window, if you do not know, search it up!
- Run
sudo apt install -y python3 python3-pip git
- In your bash shell window, run:
pip3 install mkdocs mkdocs-material mkdocs-pdf-export-plugin
-
Click here to download a zip version of the documentation.
-
Extract the zip to the directory you want. This can be achieved by using the
Archive Manager
tool implemented in most Ubuntu-based distro's.
Click on serve.sh
and it should tell you that it is serving the docs on http://localhost:8000
In my case:
INFO - Building documentation...
INFO - Cleaning site directory
[I 000000 17:35:02 server:296] Serving on http://127.0.0.1:8000
[I 000000 17:35:00 handlers:62] Start watching changes
[I 000000 17:35:00 handlers:64] Start detecting changes
Now head to http://localhost:8000 in your browser of choice.
!!! hint "What about when I unplug my Internet?" Don't worry as the MKDocs development server only uses the internal network in your PC, thats why you head to http://localhost:8000, as it is heading to your local PC.