These instructions will create a local server, with site hosted on port 8000
. Source markdown files can be found in src/
folder.
To view/edit the site in live mode, open a browser session in http://localhost:8000
Skip this stop if
venv
exists in current directory.
Verify if virtual environment is already installed
$ virtualenv --version
If the command returns error, then install virtualenv
$ pip install virtualenv
Create virtual environment venv
$ virtualenv venv
Activate virtual environment
$ source venv/bin/activate
(venv) $ pip install -r requirements.txt
(venv) $ mkdocs serve
Open the browser with http://localhost:8000
If ever needed, you can also generate the `site` folder locally via:
(venv) $ mkdocs build --clean
The default dev_addr
configuration is set to 127.0.0.1:8000
.
Add the line below to mkdocs.yml
for changing the port (example 9000)
default: '127.0.0.1:9000'
Refer this for other configurations.