Skip to content

Commit

Permalink
Try furo
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <[email protected]>
  • Loading branch information
gaborbernat committed Jul 16, 2021
1 parent f981857 commit 7a2c511
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
18 changes: 18 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
build:
image: latest
formats:
- htmlzip
- epub
- pdf
python:
version: 3.7
install:
- method: pip
path: .
extra_requirements:
- docs
sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true
11 changes: 1 addition & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sphinx_rtd_theme

from platformdirs.version import __version__

author = "The platformdirs team"
Expand All @@ -12,11 +10,4 @@
"sphinx.ext.autosectionlabel",
"sphinx.ext.viewcode",
]
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme_options = {
"canonical_url": "https://platformdirs.readthedocs.io/",
"display_version": True,
"prev_next_buttons_location": "bottom",
"sticky_navigation": True,
}
html_theme = "furo"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ where = src
[options.extras_require]
docs =
Sphinx>=4.1.1,<5.0.0
furo>=2021.7.5b38
proselint>=0.10.2
sphinx-rtd-theme>=0.4.3
test =
appdirs@https://github.com/ActiveState/appdirs/archive/8eacfa312d77aba28d483fbfb6f6fc54099622be.zip
pytest>=6
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ commands =
extras =
docs
commands =
python -c 'import glob; import subprocess; subprocess.call(["proselint"] + glob.glob("docs/*.rst") + glob.glob("docs/**/*.rst"))'
python -c 'import glob; import subprocess; subprocess.call(["proselint"] + glob.glob("docs/*.rst"))'
sphinx-build -d "{envtmpdir}/doctree" docs "{toxworkdir}/docs_out" --color -b html {posargs}
python -c 'import pathlib; print("documentation available under \{0\}".format((pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html").as_uri()))'

Expand Down

0 comments on commit 7a2c511

Please sign in to comment.