Skip to content

Commit

Permalink
Refactor the documentation build process (#311)
Browse files Browse the repository at this point in the history
* Refactor the documentation build process

Significant improvements:
* Allow easy isolated local builds via a dedicated Tox environment
* Configure Sphinx to use consistent packages and theme across local, CI,
  and ReadTheDocs builds; local builds now look the same as the published
  RTD pages
* Explicitly add a ReadTheDocs configuration as code, per their documented
  best practices
* Remove lots of dead code and simplify the Sphinx configuration file
* Build docs in a dedicated CI step and enable stricter warning checking

* Fix docutils related build error.

* Relax Sphinx version.

* Invalidate RTD build cache.

* No need to combine coverage reporting I think.

* Add combining again.

Co-authored-by: Jannis Leidel <jannis@leidel.info>
  • Loading branch information
brianhelba and jezdez authored Nov 8, 2021
1 parent 7ff2985 commit 93e628e
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 684 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ build/
htmlcov/
*.pyc
dist/
tests/docs/_build/
.eggs/
16 changes: 16 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
version: 2
build:
os: ubuntu-20.04
tools:
python: "3.9"
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
sphinx:
configuration: docs/conf.py
formats:
- epub
- pdf
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include .pre-commit-config.yaml
include .readthedocs.yaml
include AUTHORS
include CODE_OF_CONDUCT.md
include CONTRIBUTING.md
Expand Down
153 changes: 0 additions & 153 deletions docs/Makefile

This file was deleted.

Loading

0 comments on commit 93e628e

Please sign in to comment.