-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refresh docs/conf.py and rtd/noxfile conf #12
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
# Configuration on how ReadTheDocs (RTD) builds our documentation | ||
# ref: https://readthedocs.org/projects/2i2c-team-compass/ | ||
# ref: https://readthedocs.org/projects/jupyterhub-sphinx-theme/ | ||
# ref: https://docs.readthedocs.io/en/stable/config-file/v2.html | ||
# | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-20.04 | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.9" | ||
python: "3.11" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Explicitly opt out of trying to build additional formats such as PDF and ePub | ||
formats: [] | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs | ||
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,47 +1,44 @@ | ||
# Configuration file for Sphinx to build our documentation to HTML. | ||
# | ||
# Configuration reference: https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
# | ||
from datetime import datetime | ||
|
||
|
||
# -- Project information ----------------------------------------------------- | ||
# ref: https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
# | ||
project = "JupyterHub Sphinx Theme" | ||
copyright = "2022" | ||
copyright = f"2022 - {datetime.now().year}, JupyterHub" | ||
author = "JupyterHub" | ||
main_doc = "index" | ||
version = "0.0.1a" | ||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
# -- General Sphinx configuration --------------------------------------------------- | ||
# ref: https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
# | ||
extensions = [ | ||
"myst_parser", | ||
"jupyterhub_sphinx_theme", | ||
] | ||
root_doc = "index" | ||
source_suffix = [".rst", ".md"] | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ["_templates"] | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# This pattern also affects html_static_path and html_extra_path. | ||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# -- Options for HTML output ---------------------------------------------- | ||
# ref: http://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
# | ||
html_theme = "jupyterhub_sphinx_theme" | ||
html_title = "JupyterHub Sphinx Theme" | ||
html_copy_source = True | ||
html_sourcelink_suffix = "" | ||
Comment on lines
-30
to
-32
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. We don't set these things in other sphinx conf.py files, so I figure we shouldn't here either.
|
||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ["_static"] | ||
|
||
# theme related configuration | ||
html_theme = "jupyterhub_sphinx_theme" | ||
html_theme_options = { | ||
"icon_links": [ { | ||
"name": "GitHub", | ||
"url": "https://github.com/jupyterhub/jupyterhub-sphinx-theme", | ||
"icon": "fa-brands fa-github", | ||
},] | ||
"icon_links": [ | ||
{ | ||
"name": "GitHub", | ||
"url": "https://github.com/jupyterhub/jupyterhub-sphinx-theme", | ||
"icon": "fa-brands fa-github", | ||
}, | ||
] | ||
} | ||
html_context = { | ||
"github_user": "jupyterhub", | ||
|
This file was deleted.
Oops, something went wrong.
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
4 changes: 4 additions & 0 deletions
4
src/jupyterhub_sphinx_theme/theme/jupyterhub-sphinx-theme/theme.conf
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,7 @@ | ||
# Sphinx theme configuration | ||
# | ||
# ref: https://www.sphinx-doc.org/en/master/development/theming.html | ||
# | ||
[theme] | ||
inherit = pydata_sphinx_theme | ||
stylesheet = styles/jupyterhub-sphinx-theme.css |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We nad no such extra requirements