This project serves as a quick-start project framework for rapidly deploying the ReadTheDocs project documentation software using the MkDocs engine. In this instance, the MkDocs project 'project' has already been deployed for you. You can continue with your deployment by editing the *.md files within the /project directory.
ReadTheDocs is an open-source ...
The MkDocs engine is an open-source ...
To use the existing /project folder, skip step 5 and proceed to step 6.
-
Clone this repository and nagivate into it.
-
Delete the .git directory and initialize a new git project for your docs.
rm -rf .git
git init- Create and activate a new Anaconda environment for your project.
conda create -n docs-project --python=3.8
conda activate docs-project- Install the prerequisite software and check the MkDocs version.
pip3 install -r requirements.txt
mkdocs --version- (optional) Delete the existing
/projectfolder and initialize a new MkDocs project.
rm -rf project
mkdocs new project-
Within the
/projectfolder is a configuration file called/project/mkdocs.ymlas well as a folder/project/docscontaining the documentation pages. Editmkdocs.ymlto change the look and layout of your documentation platform. Edit the files under thedocsdirectory with the documentation content. -
Run the local server to view your docs when you are ready.
mkdocs serve-
Connect to localhost:8000 to preview your docs.
-
You can continue to edit the docs and MkDocs will automatically rebuild the site. Refresh the page to see your changes.
-
When you are ready to deploy the docs, build the static pages using MkDocs. This command will create a folder called
/project/sitewith the HTML and CSS files to host the docs.
mkdocs buildWritten by Austin Dial. Maintained by Seaborn.