Updating the Docs
We use MkDocs to create our documentation. For more information beyond what is in this guide, check out the MkDocs Documentation.
Setting Up the Environment¶
- Install
Python 3.x
- Fork
Conreq:docs
from GitHub. - Open a terminal (ex. Command Prompt or PowerShell) at the root of the repository.
- Type
pip install -r requirements.txt
to install MkDocs.
Starting the Preview Webserver¶
MkDocs contains a tool to allow you to preview your documentation changes live! In order to use it...
- Open a terminal (ex. Command Prompt or PowerShell) at the root of the repository.
- Type
cd source
to enter the documentation's source code directory. - Type
mkdocs serve
to start the preview webserver. - Navigate to http://127.0.0.1:8000 to see the documentation and changes live!
Adding/Editing a Docs Page¶
- Create a new markdown file within
source/docs/
, or edit an existing markdown file within this folder. - Fill in this file with any markdown text you want!
- If you made a new file: Add this file to the navigation bar within
mkdocs.yml
. - Commit your changes to your GitHub branch.
- Submit a GitHub pull request to
Archmonger/Conreq:docs
.
Building the Docs¶
This section is intended for Conreq repository leaders.
- Open a terminal (ex. Command Prompt or PowerShell) at the root of the repository.
- Type
cd source
to enter the documentation's source code directory. - Type
mkdocs build -d ..\docs
to turn the preview into something we can use.
Last update: August 16, 2021