Skip to content

Commit 7a22968

Browse files
Merge pull request #79 from nexB/doc-and-ci-updates
RTD Build and CI updates
2 parents 30f3f02 + c33241d commit 7a22968

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.github/workflows/pypi-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ jobs:
7878

7979
- name: Publish to PyPI
8080
if: startsWith(github.ref, 'refs/tags')
81-
uses: pypa/gh-action-pypi-publish@master
81+
uses: pypa/gh-action-pypi-publish@release/v1
8282
with:
8383
password: ${{ secrets.PYPI_API_TOKEN }}

.readthedocs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
# Required
66
version: 2
77

8+
# Build in latest ubuntu/python
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
814
# Build PDF & ePub
915
formats:
1016
- epub

docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@
2929
# ones.
3030
extensions = [
3131
"sphinx.ext.intersphinx",
32+
"sphinx_reredirects",
3233
]
3334

35+
36+
# Redirects for olds pages
37+
# See https://documatt.gitlab.io/sphinx-reredirects/usage.html
38+
redirects = {}
39+
3440
# This points to aboutcode.readthedocs.io
3541
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
3642
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83

setup.cfg

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ testing =
5858
isort
5959

6060
docs =
61-
Sphinx == 5.1.0
62-
sphinx-rtd-theme >= 0.5.0
63-
doc8 >= 0.8.1
61+
Sphinx>=5.0.2
62+
sphinx-rtd-theme>=1.0.0
63+
sphinx-reredirects >= 0.1.2
64+
doc8>=0.11.2
65+

0 commit comments

Comments
 (0)