File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
{{cookiecutter.project_name}} Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ import nox
2+
3+ # Options to modify nox behaviour
4+ nox .options .reuse_existing_virtualenvs = True
5+
6+ @nox .session (name = "docs" )
7+ def build_docs (session ):
8+ """Build the documentation and load it in a browser tab, rebuilding on changes."""
9+ envbindir = session .bin
10+ session .install ("-e" , ".[all,docs]" )
11+ with session .chdir ("docs/" ):
12+ session .run (
13+ "sphinx-autobuild" ,
14+ "-j" ,
15+ "auto" ,
16+ "--open-browser" ,
17+ "-qT" ,
18+ "." ,
19+ f"{ envbindir } /../tmp/html" ,
20+ )
Original file line number Diff line number Diff line change 1+ import nox
2+
3+ # Options to modify nox behaviour
4+ nox .options .reuse_existing_virtualenvs = True
5+
6+ @nox .session (name = "docs" )
7+ def build_docs (session ):
8+ """Build the documentation and load it in a browser tab, rebuilding on changes."""
9+ envbindir = session .bin
10+ session .install ("-e" , ".[docs]" )
11+ with session .chdir ("docs/" ):
12+ session .run (
13+ "sphinx-autobuild" ,
14+ "-j" ,
15+ "auto" ,
16+ "--open-browser" ,
17+ "-qT" ,
18+ "." ,
19+ f"{ envbindir } /../tmp/html" ,
20+ )
You can’t perform that action at this time.
0 commit comments