I want to start using Sphinx to document my project. I told Sphinx to use separate source and build directories during sphinx-quickstart. Now my directory layout is the following:
MyProject/
myproject/
__init__.py
mymodule.py
docs/
source/
.static/
.templates/
conf.py
index.rst
build/
Makefile
Which files should be excluded from a VCS repository for a Sphinx project (i.e., since I use Git, what should I add to my .gitignore file)? For example, should I ignore the docs/build/ directory so that changes in the HTML pages generated from Sphinx aren’t tracked?
If you take a look at the contents of
Makefileyou’ll see something as follows:This means that
make cleanjust removes thebuilddirectory so, with regard to version control, ignoring the contents of thebuilddirectory should be enough as you already suspected.