diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..4b74802e --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,6 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.11" diff --git a/dev-bin/release.sh b/dev-bin/release.sh index 12118c08..0fcc10a8 100755 --- a/dev-bin/release.sh +++ b/dev-bin/release.sh @@ -63,6 +63,7 @@ gh release create --target "$(git branch --show-current)" -t "$version" -n "$not git push --tags -rm -fr dist -python setup.py build_html sdist +rm -fr build dist +python -m sphinx -M html ./docs ./build/sphinx -W +python setup.py sdist twine upload dist/* diff --git a/docs/conf.py b/docs/conf.py index 66c3eb7e..ad32d473 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -131,7 +131,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ["_static"] +# html_static_path = ["_static"] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. @@ -250,4 +250,6 @@ # texinfo_show_urls = 'footnote' # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {"http://docs.python.org/": None} +intersphinx_mapping = { + "python": ("https://python.readthedocs.org/en/latest/", None), +} diff --git a/setup.cfg b/setup.cfg index 47a5047b..7e3c6000 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,3 @@ -[aliases] -build_html = build_sphinx -b html --build-dir docs - [flake8] extend-ignore = E203 # black uses 88 : ¯\_(ツ)_/¯