Building the MkDocs Site¶
To build the MkDocs site locally, follow these steps:
-
Install MkDocs and Dependencies: Ensure you have Python installed. Then, install MkDocs and the required dependencies:
-
Build the Site: Run the following command to build the site:
This will generate the static site in thesite/directory. -
Serve the Site Locally: To preview the site locally, use:
This will start a local development server, and you can view the site athttp://127.0.0.1:8000/. -
Custom Documentation Directory: The site's page files are located in the
This is so it doesn't clash with Pytorch Wildlife's preexistingmkdocs/directory. This is specified in themkdocs.ymlfile under thedocs_dirkey:docs/directory (so no breaking changes!)
Ensure that any changes to the documentation are made in the mkdocs/ directory.
- Exclude the
site/Directory: Thesite/directory is automatically generated and should not be included in version control. It is already added to.gitignore.