-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readthedocs and documentation updates #1153
Changes from 5 commits
db86a8d
52a55ba
fba4b54
8c5b19f
62fa235
58eaf97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# docs | ||
.nox | ||
_build | ||
|
||
# setuptools scm | ||
qhub/_version.py | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
black | ||
click | ||
importnb | ||
ipykernel | ||
IPython | ||
isort | ||
myst-parser | ||
nbconvert | ||
nbformat | ||
nbsphinx | ||
pre-commit | ||
pydata-sphinx-theme | ||
pytest | ||
sphinx_rtd_theme | ||
sphinx-autoapi | ||
sphinx-copybutton | ||
sphinx-copybutton | ||
sphinx-material | ||
sphinxcontrib-bibtex | ||
stringcase | ||
jupyter-book | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from nox import session | ||
|
||
|
||
@session(reuse_venv=True) | ||
def docs(session): | ||
session.install("-e.") | ||
session.install("-rdocs/requirements.txt") | ||
session.run("sphinx-build", "docs", "_build/html") | ||
Comment on lines
+1
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was reading the nox description and it seems very interesting, but I didn't quite understand how it is been used here exactly... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry i missed that description. i added instructions to
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tonyfast, is this enough for building the docs (I know that it worked based on the succeeded build you provided)? I noticed that it has all the sphinx-related dependencies that we might need, but is there anything else we need to add as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jupyter-book has a ton of dependencies. most of them are to incorporate markdown/notebooks as sphinx documentation source. all those prior deps are taken care of by jupyter-book.