From 8b2811522b027a6db50bf0b757281a86fe33d5ee Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Wed, 24 Jun 2020 11:37:00 -0700 Subject: [PATCH] updating theme --- docs/_templates/layout.html | 9 +-------- docs/conf.py | 11 +++++++---- docs/doc-requirements.txt | 5 ++--- docs/link.rst | 22 +++++++++++----------- 4 files changed, 21 insertions(+), 26 deletions(-) diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index a1f824ad..5598856a 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -1,4 +1,4 @@ -{%- extends "alabaster_jupyterhub/layout.html" %} +{%- extends "sphinx_book_theme/layout.html" %} {% block extrahead %} @@ -12,10 +12,3 @@ {% endif %} {{ super() }} {% endblock %} - - -{% block sidebar1 %} -{% if pagename != 'link' %} -{%- include "rightsidebar.html" %} -{% endif %} -{% endblock %} \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 881c44f8..c4c3b884 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -91,10 +91,7 @@ def setup(app): # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -import alabaster_jupyterhub - -html_theme = "alabaster_jupyterhub" -html_theme_path = [alabaster_jupyterhub.get_html_theme_path()] +html_theme = "sphinx_book_theme" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -110,6 +107,12 @@ def setup(app): "source_suffix": source_suffix, } +html_theme_options = { + "repository_url": "https://github.com/jupyterhub/nbgitpuller", + "use_issues_button": True, + "use_repository_button": True +} + # 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". diff --git a/docs/doc-requirements.txt b/docs/doc-requirements.txt index 489ed3f7..1aa2dad6 100644 --- a/docs/doc-requirements.txt +++ b/docs/doc-requirements.txt @@ -3,8 +3,7 @@ sphinx_copybutton traitlets jupyterhub sphinx>=1.3.6,!=1.5.4 -alabaster -alabaster_jupyterhub +sphinx-book-theme memory_profiler pytest -PyGitHub \ No newline at end of file +PyGitHub diff --git a/docs/link.rst b/docs/link.rst index 9edd0e4f..e4601d39 100644 --- a/docs/link.rst +++ b/docs/link.rst @@ -5,11 +5,11 @@ Use the following form to create your own ``nbgitpuller`` links. .. raw:: html -
+
- +
- + - +
@@ -33,7 +33,7 @@ Use the following form to create your own ``nbgitpuller`` links.
- +
@@ -43,12 +43,12 @@ Use the following form to create your own ``nbgitpuller`` links. Must be a valid web URL
- The JupyterHub to send users to. + The JupyterHub to send users to. nbgitpuller must be installed in this hub.
- +
@@ -67,7 +67,7 @@ Use the following form to create your own ``nbgitpuller`` links.
- +
@@ -78,7 +78,7 @@ Use the following form to create your own ``nbgitpuller`` links.
- +
@@ -112,7 +112,7 @@ Use the following form to create your own ``nbgitpuller`` links.
- +


@@ -131,4 +131,4 @@ parameters **when accessing this page**: For example, the following URL will pre-populate the form with the UC Berkeley DataHub as the JupyterHub:: - https://jupyterhub.github.io/nbgitpuller/link?hub=https://datahub.berkeley.edu \ No newline at end of file + https://jupyterhub.github.io/nbgitpuller/link?hub=https://datahub.berkeley.edu