Skip to content
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

Update to latest nbsite & pydata-sphinx-theme #1070

Merged
merged 4 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions doc/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
55 changes: 0 additions & 55 deletions doc/_templates/layout.html

This file was deleted.

19 changes: 0 additions & 19 deletions doc/_templates/sections/sidebar-primary.html

This file was deleted.

11 changes: 0 additions & 11 deletions doc/_templates/sidebar-nav-bs.html

This file was deleted.

27 changes: 11 additions & 16 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,40 @@
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"
html_logo = "_static/logo_horizontal.svg"
html_favicon = "_static/favicon.ico"

extensions += [
'nbsite.gallery',
'sphinx_copybutton',
'nbsite.gallery'
]

myst_enable_extensions = ["colon_fence"]
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down