Skip to content

Commit d0ffc7c

Browse files
authored
Merge pull request #147 from maxmind/greg/no-build-sphinx
Do not use build_sphinx
2 parents d8d11c6 + a620171 commit d0ffc7c

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
@@ -62,6 +62,7 @@ gh release create --target "$(git branch --show-current)" -t "$version" -n "$not
6262

6363
git push --tags
6464

65-
rm -fr dist
66-
python setup.py build_html sdist bdist_wheel
65+
rm -fr build dist
66+
python -m sphinx -M html ./docs ./build/sphinx
67+
python setup.py sdist bdist_wheel
6768
twine upload dist/*

docs/conf.py

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

132132
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
133133
# using the given strftime format.
@@ -246,4 +246,6 @@
246246
# texinfo_show_urls = 'footnote'
247247

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

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
# black uses 88 : ¯\_(ツ)_/¯
63
max-line-length = 88

0 commit comments

Comments
 (0)