-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1166 from maykinmedia/feature/2176-docs
[#2176] Set up documentation build with Sphinx
- Loading branch information
Showing
32 changed files
with
860 additions
and
926 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
version: 2 | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
build: | ||
os: 'ubuntu-20.04' | ||
apt_packages: | ||
- libxml2-dev | ||
- libxmlsec1-dev | ||
- libxmlsec1-openssl | ||
- wget | ||
tools: | ||
python: '3.11' | ||
|
||
python: | ||
install: | ||
- requirements: requirements/ci.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* override table width restrictions */ | ||
@media screen and (min-width: 767px) { | ||
|
||
.wy-table-responsive table td { | ||
/* !important prevents the common CSS stylesheets from overriding | ||
this as on RTD they are loaded after this stylesheet */ | ||
white-space: normal !important; | ||
} | ||
.wy-table-responsive table td:first-child { | ||
white-space: nowrap !important; | ||
} | ||
.wy-table-responsive table { | ||
background-color: white; | ||
} | ||
.wy-table-responsive { | ||
overflow: visible !important; | ||
} | ||
} | ||
|
||
/* Depends on logo but default seems ok for this. | ||
.wy-side-nav-search { | ||
background-color: #04A5BB; | ||
} | ||
*/ | ||
|
||
.rst-content a:link, .rst-content a:visited { | ||
color: #017092; | ||
} | ||
|
||
.rst-content a:focus, .rst-content a:hover { | ||
color: #051F31; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import subprocess | ||
|
||
|
||
def test_linkcheck(tmpdir): | ||
doctrees = tmpdir.join("doctrees") | ||
htmldir = tmpdir.join("html") | ||
subprocess.check_call( | ||
["sphinx-build", "-W", "-blinkcheck", "-d", str(doctrees), ".", str(htmldir)], | ||
) | ||
|
||
|
||
def test_build_docs(tmpdir): | ||
doctrees = tmpdir.join("doctrees") | ||
htmldir = tmpdir.join("html") | ||
subprocess.check_call( | ||
["sphinx-build", "-W", "-bhtml", "-d", str(doctrees), ".", str(htmldir)], | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.