Browse Source

Stop using setup.py build_sphinx

This is deprecated in pbr and the preferred way to do doc builds now
is to use sphinx-build directly.

Change-Id: Id5081ffb9f5b5e6ce608d2f10e9ef89a8b40eeed
Ben Nemec 3 months ago
parent
commit
b8bf7b2810
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      tox.ini

+ 4
- 1
tox.ini View File

@@ -31,7 +31,10 @@ commands = {posargs}
31 31
 
32 32
 [testenv:docs]
33 33
 basepython = python3
34
-commands = python setup.py build_sphinx
34
+whitelist_externals = rm
35
+commands =
36
+    rm -fr doc/build
37
+    sphinx-build -W -b html doc/source doc/build/html {posargs}
35 38
 
36 39
 [testenv:cover]
37 40
 basepython = python3

Loading…
Cancel
Save