Skip to content

Commit 3d64d64

Browse files
committed
update documentation building and drop version pinning
1 parent cc0becc commit 3d64d64

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

.readthedocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# https://docs.readthedocs.io/en/stable/config-file/v2.html
22
version: 2
33
build:
4-
os: ubuntu-20.04
4+
os: ubuntu-lts-latest
55
tools:
6-
python: "3"
6+
python: latest
77
python:
88
install:
99
- method: pip

docs/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
# If extensions (or modules to document with autodoc) are in another directory,
1010
# add these directories to sys.path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
12-
#
1312
import os
1413
import sys
14+
1515
sys.path.insert(0, os.path.abspath(os.pardir))
1616
import bitsets
1717

@@ -54,12 +54,10 @@
5454

5555
# The theme to use for HTML and HTML Help pages. See the documentation for
5656
# a list of builtin themes.
57-
#
5857
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
5958
if not on_rtd:
6059
import sphinx_rtd_theme
6160
html_theme = 'sphinx_rtd_theme'
62-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
6361

6462
# Add any paths that contain custom static files (such as style sheets) here,
6563
# relative to this directory. They are copied after the builtin static files,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Coverage = "https://codecov.io/gh/xflr6/bitsets"
3030
[project.optional-dependencies]
3131
dev = ["build", "wheel", "twine", "flake8", "Flake8-pyproject", "pep8-naming", "tox>=3"]
3232
test = ["pytest>=7", "pytest-cov"]
33-
docs = ["sphinx>=5", "sphinx-rtd-theme"]
33+
docs = ["sphinx", "sphinx-rtd-theme", "sphinx-rtd-theme"]
3434
visualization = ["graphviz~=0.7"]
3535

3636
[build-system]

0 commit comments

Comments
 (0)