summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/pytest/doc/en/check_sphinx.py
blob: 0f536ffa6ac061e53c9e3448fc7a59d634325b0a (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", "-W", "-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)])