summaryrefslogtreecommitdiff
path: root/doc/check_sphinx.py
blob: 26f6b11d7482ed47815cd59cdcdde31c7dd055ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import py
import subprocess
def test_build_docs(tmpdir):
    doctrees = tmpdir.join("doctrees")
    htmldir = tmpdir.join("html")
    subprocess.check_call([
        "sphinx-build", "-bhtml",
          "-d", str(doctrees), ".", str(htmldir)])

def test_linkcheck(tmpdir):
    doctrees = tmpdir.join("doctrees")
    htmldir = tmpdir.join("html")
    subprocess.check_call(
        ["sphinx-build", "-blinkcheck",
          "-d", str(doctrees), ".", str(htmldir)])