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?
The default configuration file is called sphinx. conf , usually located in /etc/sphinxsearch (Debian/Ubuntu), /etc/sphinx/sphinx. conf.
To support Markdown-based documentation, Sphinx can use MyST-Parser. MyST-Parser is a Docutils bridge to markdown-it-py, a Python package for parsing the CommonMark Markdown flavor.
If you take a look at the contents of Makefile
you'll see something as follows:
BUILDDIR = build ... clean: -rm -rf $(BUILDDIR)/*
This means that make clean
just removes the build
directory so, with regard to version control, ignoring the contents of the build
directory should be enough as you already suspected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With