-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade docs to Sphinx 3+ and add doc build test (#1613)
* Upgrade docs to Sphinx 3+ * Fix all the warnings... - Fixed bad docstrings - Fixed bad fenced code blocks in documentation - Blocklisted some sections from being generated from the README - Added missing documentation to index.rst - Fixed an invalid autofunction directive in reference/reference_functions.rst - Pin another documentation dependency * Add documentation build test
- Loading branch information
Showing
9 changed files
with
75 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Documentation Build | ||
|
||
on: | ||
push: | ||
paths: | ||
- "docs/**" | ||
- "README.md" | ||
- "CHANGES.md" | ||
- "CONTRIBUTING.md" | ||
pull_request: | ||
paths: | ||
- "docs/**" | ||
- "README.md" | ||
- "CHANGES.md" | ||
- "CONTRIBUTING.md" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install -e "." | ||
python -m pip install -r "docs/requirements.txt" | ||
- name: Build documentation | ||
run: sphinx-build -a -b html -W docs/ docs/_build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -464,7 +464,7 @@ Twisted and CPython: | |
|
||
Use the badge in your project's README.md: | ||
|
||
```markdown | ||
```md | ||
[](https://github.com/psf/black) | ||
``` | ||
|
||
|
@@ -625,7 +625,7 @@ Multiple contributions by: | |
- [Miroslav Shubernetskiy](mailto:[email protected]) | ||
- MomIsBestFriend | ||
- [Nathan Goldbaum](mailto:[email protected]) | ||
- [Nathan Hunt](mailtoneighthan[email protected]) | ||
- [Nathan Hunt](mailto:neighthan[email protected]) | ||
- [Neraste](mailto:[email protected]) | ||
- [Nikolaus Waxweiler](mailto:[email protected]) | ||
- [Ofek Lev](mailto:[email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
recommonmark==0.4.0 | ||
Sphinx==1.7.2 | ||
recommonmark==0.6.0 | ||
Sphinx==3.2.1 | ||
Pygments==2.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters