-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
86 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends "pydata_sphinx_theme/layout.html" %} | ||
{# ref: https://github.com/pydata/pydata-sphinx-theme/blob/master/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html #} | ||
|
||
{% block docs_main %} | ||
{# A tiny helper pixel to detect if we've scrolled #} | ||
<div class="sbt-scroll-pixel-helper"></div> | ||
{{ super() }} | ||
{% endblock %} | ||
|
||
|
||
{% block docs_body %} | ||
{# Table of contents that is only displayed when printing the page #} | ||
<div id="jb-print-docs-body" class="onlyprint"> | ||
<h1>{{ pagetitle }}</h1> | ||
<!-- Table of contents --> | ||
<div id="print-main-content"> | ||
<div id="jb-print-toc"> | ||
{% set page_toc = generate_toc_html() %} | ||
{%- if page_toc | length >= 1 %} | ||
<div> | ||
<h2> {{ translate(theme_toc_title) }} </h2> | ||
</div> | ||
<nav aria-label="Page"> | ||
{{ page_toc }} | ||
</nav> | ||
{%- endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{{ super() }} | ||
{% endblock %} |
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,55 @@ | ||
[theme] | ||
inherit = pydata_sphinx_theme | ||
pygments_style = tango | ||
sidebars = navbar-logo.html, icon-links.html, sbt-sidebar-nav.html | ||
stylesheet = styles/sphinx-book-theme.css | ||
|
||
[options] | ||
# Announcement bar (empty by default) | ||
announcement = | ||
|
||
# Secondary sidebar: Removes the extra page-specific links from sidebar | ||
secondary_sidebar_items = page-toc.html | ||
toc_title = Contents | ||
|
||
# Article header: The top bar that is displayed on most pages | ||
article_header_start = toggle-primary-sidebar.html | ||
article_header_end = article-header-buttons.html | ||
use_download_button = True | ||
use_fullscreen_button = True | ||
use_issues_button = False | ||
use_source_button = False | ||
use_repository_button = False | ||
# Note: We also inherit use_edit_page_button from the PyData theme | ||
|
||
# Configuration for GitHub / GitLab repo buttons | ||
path_to_docs = | ||
repository_url = | ||
repository_branch = | ||
repository_provider = | ||
launch_buttons = {} | ||
|
||
# Header / navbar. | ||
# Over-ride the PST navbar components (users could provide their own if they wish) | ||
navbar_start = | ||
navbar_center = | ||
navbar_end = | ||
navbar_persistent = | ||
|
||
# Primary sidebar behavior | ||
home_page_in_toc = False | ||
show_navbar_depth = 1 | ||
|
||
# Footer at the bottom of the content | ||
extra_footer = | ||
footer_content_items = author.html, copyright.html, last-updated.html, extra-footer.html | ||
|
||
# Footer at the bottom of the site (PST over-ride) | ||
footer_start = | ||
footer_end = | ||
|
||
# Content and directive flags | ||
use_sidenotes = False | ||
|
||
# DEPRECATE after a few release cycles | ||
expand_toc_sections = [] |