Getting started
Getting started#
So you want to build some documentation for your project. Follow this guide to get started.
Note
If you are already working on a project, you may start at step 3 after navigating to your project directory.
Create an empty repository (e.g. using GitHub, GitLab, or Bitbucket)
Clone the repository onto your local machine
Create and move to the documentation directory,
mkdir docs cd docs
Add
sphinxto a requirements file and install it,echo sphinx >> requirements.txt pip install sphinx
Run quickstart to setup the documentation,
sphinx-quickstart
Build and preview the documentation locally,
make html open _build/html/index.html
Add build directory to gitignore
echo _build >> .gitignore
Commit the documentation to the repository,
cd ../ git add . git commit -m "Initial documentation" git push
You now have a working Sphinx project!