diff --git a/doc/_static/custom.css b/doc/_static/custom.css index dea07d8c1..853fdcfc8 100644 --- a/doc/_static/custom.css +++ b/doc/_static/custom.css @@ -20,47 +20,3 @@ 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; - } -} - -#navbar-icon-links i.fa-github-square:before { - color: white; -} - -.fa-discourse:before { - color: white; -} - -ul.current.nav.bd-sidenav { - padding: 0; -} diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html deleted file mode 100644 index d71d75c41..000000000 --- a/doc/_templates/layout.html +++ /dev/null @@ -1,55 +0,0 @@ -{%- extends "!layout.html" %} - -{% block docs_navbar %} - -{% endblock %} - -{% block docs_sidebar %} -{% if sidebars %} - -
- {%- for sidebartemplate in sidebars %} - {%- include sidebartemplate %} - {%- endfor %} -
-{% else %} -
-{% endif %} -{% endblock %} - -{% block docs_toc %} -
- {% if meta is defined and not (meta is not none and 'notoc' in meta) %} - {% for toc_item in theme_page_sidebar_items %} -
- {% include toc_item %} -
- {% endfor %} - {% endif %} - {% if ('gallery' in pagename or 'reference' in pagename or 'user_guide' in pagename) and not pagename.endswith('index') %} - Open this page in Binder - {% endif %} -
-{% 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 %} -
- {% block docs_body %} -
- {% block body %} {% endblock %} -
- {% endblock %} - {% if theme_show_prev_next %} - - {% endif %} -
-{% endblock %} diff --git a/doc/_templates/sections/sidebar-primary.html b/doc/_templates/sections/sidebar-primary.html deleted file mode 100644 index c19a1ffd3..000000000 --- a/doc/_templates/sections/sidebar-primary.html +++ /dev/null @@ -1,19 +0,0 @@ -{% block docs_sidebar %} -{% if sidebars %} - -
- - -
-{% else %} - -{% endif %} -{% endblock %} diff --git a/doc/_templates/sidebar-nav-bs.html b/doc/_templates/sidebar-nav-bs.html deleted file mode 100644 index 2adee94a5..000000000 --- a/doc/_templates/sidebar-nav-bs.html +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/doc/conf.py b/doc/conf.py index 8e6b8a0e5..a03f9aad6 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -16,36 +16,32 @@ nbbuild_cell_timeout = 600 html_static_path += ['_static'] -templates_path += ['_templates'] -html_css_files = [ - 'nbsite.css', +html_css_files += [ 'custom.css' ] -# Use require.js vendored by nbsite to display the Plotly figure -# add the end of the Plotting_Extensions notebook. require.js is normally -# loaded automatically by nbconvert but that happens not to be the case -# when a notebook converted via nbsite. Other HoloViews-Plotly plots -# are rendered via Panel, in a way that doesn't require require.js. -html_js_files = ['require.js'] - html_theme_options.update({ "github_url": "https://github.com/holoviz/hvplot", "icon_links": [ { "name": "Twitter", "url": "https://twitter.com/HoloViews", - "icon": "fab fa-twitter-square", + "icon": "fa-brands fa-twitter-square", }, { "name": "Discourse", "url": "https://discourse.holoviz.org/c/hvplot", - "icon": "fab fa-discourse", + "icon": "fa-brands fa-discourse", + }, + { + "name": "Discord", + "url": "https://discord.gg/AXRHnJU6sP", + "icon": "fa-brands fa-discord", }, ], - "google_analytics_id": "UA-154795830-5", - "navbar_end": ["navbar-icon-links"], + "analytics": {"google_analytics_id": "UA-154795830-5"}, + "pygment_dark_style": "material", }) html_theme = "pydata_sphinx_theme" @@ -53,8 +49,7 @@ html_favicon = "_static/favicon.ico" extensions += [ - 'nbsite.gallery', - 'sphinx_copybutton', + 'nbsite.gallery' ] myst_enable_extensions = ["colon_fence"] diff --git a/setup.py b/setup.py index 4279c1da5..ccb00f84b 100644 --- a/setup.py +++ b/setup.py @@ -109,10 +109,7 @@ def get_setup_version(reponame): # Additional packages required to build the docs extras_require['doc'] = extras_require['examples'] + [ - 'nbsite >=0.7.2rc2', - 'pydata-sphinx-theme <0.10', - 'sphinx-copybutton', - 'sphinx-design', + 'nbsite >=0.8.0rc33', ] # until pyproject.toml/equivalent is widely supported (setup_requires