Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

python:
version: 3
install:
- method: pip
path: .
extra_requirements:
- rtd

sphinx:
builder: html
fail_on_warning: true
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
master_doc = "index"
project = "sphinxext-rediraffe"

exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think excluding anything but _build is necessary, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeh this is what we use in our excutablebooks packages, but just _build should generally be fine.


extensions = ["myst_parser", "sphinxext.rediraffe"]

rediraffe_redirects = {"other.md": "index.md", "other2.md": "other.md"}
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```{include} ../README.md
:relative-images:
```
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/wpilibsuite/rediraffe",
install_requires=["sphinx>=2.0"],
packages=["sphinxext"],
install_requires=["sphinx>=2.0"],
extras_require={"rtd": ["myst-parser~=0.12.7"]},
classifiers=[
"Environment :: Plugins",
"Environment :: Web Environment",
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ envlist = py{36,37,38}
; recreate = false
deps = -rtest-requirements.txt
commands = pytest {posargs}

[testenv:docs-{clean,update}]
extras = rtd
whitelist_externals = rm
commands =
clean: rm -rf docs/_build
sphinx-build {posargs} -nW --keep-going -b html docs/ docs/_build/html