Skip to content

Commit b2014fe

Browse files
authored
Merge pull request #112 from maxmind/greg/no-build-sphinx
Stop using build_sphinx
2 parents d987e59 + 96a60ee commit b2014fe

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.readthedocs.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.11"

dev-bin/release.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ gh release create --target "$(git branch --show-current)" -t "$version" -n "$not
6363

6464
git push --tags
6565

66-
rm -fr dist
67-
python setup.py build_html sdist
66+
rm -fr build dist
67+
python -m sphinx -M html ./docs ./build/sphinx -W
68+
python setup.py sdist
6869
twine upload dist/*

docs/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
# Add any paths that contain custom static files (such as style sheets) here,
132132
# relative to this directory. They are copied after the builtin static files,
133133
# so a file named "default.css" will overwrite the builtin "default.css".
134-
html_static_path = ["_static"]
134+
# html_static_path = ["_static"]
135135

136136
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
137137
# using the given strftime format.
@@ -250,4 +250,6 @@
250250
# texinfo_show_urls = 'footnote'
251251

252252
# Example configuration for intersphinx: refer to the Python standard library.
253-
intersphinx_mapping = {"http://docs.python.org/": None}
253+
intersphinx_mapping = {
254+
"python": ("https://python.readthedocs.org/en/latest/", None),
255+
}

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[aliases]
2-
build_html = build_sphinx -b html --build-dir docs
3-
41
[flake8]
52
extend-ignore = E203
63
# black uses 88 : ¯\_(ツ)_/¯

0 commit comments

Comments
 (0)