-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from choldgraf/theme-update
Update configuration for PyData Sphinx Theme
- Loading branch information
Showing
7 changed files
with
73 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
--- | ||
theme_html_remove_secondary_sidebar: | ||
--- | ||
(binder-docs)= | ||
# Binder Documentation | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""A nox configuration file so that we can build the documentation easily with nox. | ||
- see the README.md for information about nox. | ||
- ref: https://nox.thea.codes/en/stable/ | ||
""" | ||
import nox | ||
from pathlib import Path | ||
|
||
nox.options.reuse_existing_virtualenvs = True | ||
|
||
|
||
@nox.session | ||
def docs(session): | ||
session.install("-r", "doc/doc-requirements.txt") | ||
session.run("sphinx-build", "-b=html", "doc/", "doc/_build/html") | ||
|
||
|
||
@nox.session(name="docs-live") | ||
def docs_live(session): | ||
session.install("-r", "doc/doc-requirements.txt") | ||
session.install("sphinx-autobuild") | ||
session.run( | ||
"sphinx-autobuild", | ||
"--re-ignore", | ||
"doc/_data*", | ||
"-b=html", | ||
"doc/", | ||
"doc/_build/html", | ||
) |