Skip to content

Commit 0193da2

Browse files
Merge remote-tracking branch 'skeleton/main' into add-ignored-resources
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
2 parents df76984 + 7a22968 commit 0193da2

File tree

6 files changed

+66
-28
lines changed

6 files changed

+66
-28
lines changed

.github/workflows/docs-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222

.github/workflows/pypi-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
runs-on: ubuntu-20.04
2525

2626
steps:
27-
- uses: actions/checkout@master
27+
- uses: actions/checkout@v3
2828
- name: Set up Python
29-
uses: actions/setup-python@v1
29+
uses: actions/setup-python@v4
3030
with:
3131
python-version: 3.9
3232

@@ -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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
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+
14+
# Build PDF & ePub
15+
formats:
16+
- epub
17+
- pdf
18+
819
# Where the Sphinx conf.py file is located
920
sphinx:
1021
configuration: docs/source/conf.py

azure-pipelines.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77

88
jobs:
99

10-
- template: etc/ci/azure-posix.yml
11-
parameters:
12-
job_name: ubuntu18_cpython
13-
image_name: ubuntu-18.04
14-
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
15-
test_suites:
16-
all: venv/bin/pytest -n 2 -vvs
17-
1810
- template: etc/ci/azure-posix.yml
1911
parameters:
2012
job_name: ubuntu20_cpython
@@ -31,14 +23,6 @@ jobs:
3123
test_suites:
3224
all: venv/bin/pytest -n 2 -vvs
3325

34-
- template: etc/ci/azure-posix.yml
35-
parameters:
36-
job_name: macos1015_cpython_2
37-
image_name: macos-10.15
38-
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
39-
test_suites:
40-
all: venv/bin/pytest -n 2 -vvs
41-
4226
- template: etc/ci/azure-posix.yml
4327
parameters:
4428
job_name: macos11_cpython

docs/source/conf.py

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,25 @@
2828
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2929
# ones.
3030
extensions = [
31-
'sphinx.ext.intersphinx',
31+
"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+
40+
# This points to aboutcode.readthedocs.io
41+
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
42+
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
43+
44+
intersphinx_mapping = {
45+
"aboutcode": ("https://aboutcode.readthedocs.io/en/latest/", None),
46+
"scancode-workbench": ("https://scancode-workbench.readthedocs.io/en/develop/", None),
47+
}
48+
49+
3450
# Add any paths that contain templates here, relative to this directory.
3551
templates_path = ['_templates']
3652

@@ -61,6 +77,32 @@
6177
"conf_py_path": "/docs/source/", # path in the checkout to the docs root
6278
}
6379

64-
html_css_files = [
65-
'_static/theme_overrides.css'
66-
]
80+
html_css_files = ["_static/theme_overrides.css"]
81+
82+
83+
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
84+
html_show_sphinx = True
85+
86+
# Define CSS and HTML abbreviations used in .rst files. These are examples.
87+
# .. role:: is used to refer to styles defined in _static/theme_overrides.css and is used like this: :red:`text`
88+
rst_prolog = """
89+
.. |psf| replace:: Python Software Foundation
90+
91+
.. # define a hard line break for HTML
92+
.. |br| raw:: html
93+
94+
<br />
95+
96+
.. role:: red
97+
98+
.. role:: img-title
99+
100+
.. role:: img-title-para
101+
102+
"""
103+
104+
# -- Options for LaTeX output -------------------------------------------------
105+
106+
latex_elements = {
107+
'classoptions': ',openany,oneside'
108+
}

setup.cfg

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ testing =
8282
isort
8383

8484
docs =
85-
Sphinx >= 3.3.1
86-
sphinx-rtd-theme >= 0.5.0
87-
doc8 >= 0.8.1
85+
Sphinx>=5.0.2
86+
sphinx-rtd-theme>=1.0.0
87+
sphinx-reredirects >= 0.1.2
88+
doc8>=0.11.2
8889

8990
[options.entry_points]
9091
console_scripts =

0 commit comments

Comments
 (0)