Skip to main content

sphinx_pyviz_theme: Theme for building pyviz sites

Build Status Linux/MacOS Build Status
Latest dev release Github tag
Latest release Github release PyPI version sphinx_pyviz_theme version conda-forge version

What is it?

sphinx_pyviz_theme is the theme that is used when building sites in the pyviz ecosystem. This theme is best used in conjunction with nbsite. See the nbsite docs for examples.

How to use

To use this theme: pip/conda install sphinx_pyviz_theme and set html_theme to sphinx_pyviz_theme. To control the look and feel, change html_theme_options in conf.py:

html_static_path += ['_static']
html_theme = 'sphinx_pyviz_theme'
html_theme_options = {
    'custom_css': 'site.css',
    'logo': 'nbsite-logo.png',
    'favicon': 'favicon.ico',
    'primary_color': '#F16A25',
    'primary_color_dark': '#B5501C',
    'secondary_color': '#F5C33C',
    'second_nav': False,
}
  • logo and favicon: provide paths relative to html_static_path (doc/_static by default)
  • primary_color, primary_color_dark and secondary_color: control the colors that the website uses for header, nav, links... These can be css named colors, or hex colors.
  • second_nav: Boolean indicating whether to use a second nav bar.
  • custom_css: path relative to html_static_path overriding styles. Styles come first from the theme's main.css_t, which is populated with the colors options, then extended/overridden by your site's own css.

NOTE: Only use the custom_css to overwrite small pieces of the css not to make general improvements. If you have general improvements, please open a PR on the this repo.

About PyViz

sphinx_pyviz_theme is part of the PyViz initiative for making Python-based visualization tools work well together. See pyviz.org for related packages that you can use with sphinx_pyviz_theme and status.pyviz.org for the current status of each PyViz project.

Metadata

Release files for sphinx-pyviz-theme 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-pyviz-theme 0.0.5
File Size Uploaded
sphinx_pyviz_theme-0.0.5.tar.gz 24.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-pyviz-theme 0.0.5
File Interpreter ABI Platform
sphinx_pyviz_theme-0.0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 66.3 kB

Release files / sphinx_pyviz_theme-0.0.5.tar.gz

Download URL sphinx_pyviz_theme-0.0.5.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7b932129508cecd44473aee28fc67496e4a97887fcee1c44cb46483cc67454d5
BLAKE2b-256 checksum
How to use checksums
83358919dfb8d0ad182b55f6c472ede997a3e0623c0555f56e72a5deb1c7cc67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

Release files / sphinx_pyviz_theme-0.0.5-py2.py3-none-any.whl

Download URL sphinx_pyviz_theme-0.0.5-py2.py3-none-any.whl
Size 42.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0c1ab08ac60f31c3f77e756cf937a1874de2910c26deca94a0dbedee3bf8ef90
BLAKE2b-256 checksum
How to use checksums
4c75a30e0c6176d58a27402329e058af754a2e120ec2eadd8aec9028af78bee6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page