aboutsummaryrefslogtreecommitdiffstats
path: root/docs/check_sphinx.py
blob: 4a96a8b0f8f82d83ff7e7703017a594814fa5752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytest
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 = "html" #we want to keep the docs
    subprocess.check_call([
        "sphinx-build", "-W", "-bhtml",
          "-d", str(doctrees), ".", str(htmldir)])