-
-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to the PyData sphinx theme (#5163)
* use pydata sphinx theme to build the site * add pooch to the docs dependencies
- Loading branch information
Showing
9 changed files
with
182 additions
and
128 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,74 @@ | ||
:root { | ||
--pst-color-primary: 47,47,47; | ||
--pst-color-link: 163,26,38; | ||
--pst-color-link-hover: 254,203,56; | ||
} | ||
|
||
.nav-link { | ||
white-space: nowrap; | ||
} | ||
|
||
.showcase-table { | ||
border-spacing: 15px | ||
} | ||
|
||
.showcase-table td { | ||
border: 0px; | ||
vertical-align: top; | ||
} | ||
|
||
.pl-md-5, .px-md-5 { | ||
padding-left: 1rem !important; | ||
} | ||
|
||
.pt-md-5, .py-md-5 { | ||
padding-top: 1rem !important; | ||
} | ||
|
||
.cell_output { | ||
padding-left: 0; | ||
} | ||
|
||
@media (min-width: 1200px) { | ||
.container, .container-lg, .container-md, .container-sm, .container-xl { | ||
max-width: 1600px; | ||
} | ||
} | ||
|
||
#scroller-right { | ||
max-width: 14%; | ||
} | ||
|
||
@media (max-width: 1400px) { | ||
#scroller-right { | ||
position: relative; | ||
right: unset; | ||
top: unset; | ||
max-width: 100%; | ||
transform: unset; | ||
} | ||
} | ||
|
||
button.toggle-button { | ||
display: none; | ||
} | ||
|
||
.toggle-hidden:not(.admonition) { | ||
height: 0; | ||
} | ||
|
||
.tag_hide-input { | ||
margin-bottom: 0 !important; | ||
} | ||
|
||
.toggle-hidden + .cell_output { | ||
margin-top: 0 !important; | ||
} | ||
|
||
#binder-link { | ||
display: inline-block; | ||
font-size: 0.9rem; | ||
padding-left: 1.5rem; | ||
padding-top: 1rem; | ||
padding-bottom: 1rem; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{%- extends "!layout.html" %} | ||
|
||
{% block docs_navbar %} | ||
<nav class="navbar navbar-dark navbar-expand-lg bg-dark fixed-top bd-navbar" id="navbar-main"> | ||
{%- include "docs-navbar.html" %} | ||
</nav> | ||
{% endblock %} | ||
|
||
{% block docs_sidebar %} | ||
{% if sidebars %} | ||
<!-- Only show if we have sidebars configured, else just a small margin --> | ||
<div class="col-12 col-md-2 bd-sidebar"> | ||
{%- for sidebartemplate in sidebars %} | ||
{%- include sidebartemplate %} | ||
{%- endfor %} | ||
</div> | ||
{% else %} | ||
<div class="col-12 col-md-1 col-xl-2 bd-sidebar no-sidebar"></div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block docs_toc %} | ||
<div class="d-none d-xl-block col-xl-2 bd-toc"> | ||
{% if meta is defined and not (meta is not none and 'notoc' in meta) %} | ||
{% for toc_item in theme_page_sidebar_items %} | ||
<div class="toc-item"> | ||
{% include toc_item %} | ||
</div> | ||
{% endfor %} | ||
{% endif %} | ||
{% if ('gallery' in pagename or 'reference' in pagename or 'user_guide' in pagename) and not pagename.endswith('index') %} | ||
<a href="https://mybinder.org/v2/gh/holoviz/holoviews/{{ last_release }}?urlpath=lab/tree/examples/{{ pagename }}.ipynb" id="binder-link">Open this page in Binder</a> | ||
{% endif %} | ||
</div> | ||
{% endblock %} | ||
|
||
{% block docs_main %} | ||
{% if sidebars %} | ||
{% set content_col_class = "col-md-10 col-xl-8" %} | ||
{% else %} | ||
{% set content_col_class = "col-md-11 col-xl-8" %} | ||
{% endif %} | ||
<main class="col-12 {{ content_col_class }} py-md-5 pl-md-5 pr-md-4 bd-content" role="main"> | ||
{% block docs_body %} | ||
<div> | ||
{% block body %} {% endblock %} | ||
</div> | ||
{% endblock %} | ||
{% if theme_show_prev_next %} | ||
{% include "prev-next.html" %} | ||
{% endif %} | ||
</main> | ||
{% 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
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
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