-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathnoxfile.py
More file actions
20 lines (16 loc) · 649 Bytes
/
noxfile.py
File metadata and controls
20 lines (16 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import nox
nox.options.reuse_existing_virtualenvs = True
@nox.session
def docs(session):
session.install('-r', 'requirements.txt')
session.run(*'sphinx-build -nW --keep-going -b dirhtml . _build/dirhtml'.split())
session.log("open ./_build/dirhtml}/index.html")
@nox.session(name="docs-live")
def docs_live(session):
session.install('-r', 'requirements.txt')
session.run(*'sphinx-build -nW --keep-going . _build/html'.split())
#
# @nox.session(name="docs-live")
# def docs_live(session):
# session.install('-r', 'requirements.txt')
# session.run(*'sphinx-build -nW --keep-going -b dirhtml . _build/dirhtml'.split())