Skip to main content

TensorLy Sphinx Theme

This is the TensorLy theme for Sphinx documentations, based on Bulma.

Installation

After cloning this repository, simply run:

pip install -e .

Usage

To use the theme in your project, add the following to the conf.py file of your sphinx documentation:

html_theme = "tensorly_sphinx_theme"

Configuration

Navigation and main options

You can set most of the parameters in your sphinx configuration file (conf.py).

The options are:

  • ‘google_analytics’ : str, your Google analytics ID, if any.

  • ‘nav_links’ : tuple list, a list of (‘Link display name’, ‘local.file’), contains the links to the local documentation, in the top navigation bar. If the link starts with ‘http’, it will be considered as an external link.

  • ‘nav_dropdowns’ : same as above but contains multiple links in a dropdown.

Example:

html_theme_options = {
    'google_analytics' : 'YOUR_GOOGLE_ANALYTICS_ID',
    'nav_links' : [('Install', 'installation'),
                   ('User Guide', 'user_guide/index'),
                   ('TensorLy', 'https://github.com/tensorly/tensorly'),
                   ('TensorLy-Torch', 'https://github.com/tensorly/torch')],
    'nav_dropdowns': [('LinksInDropdown', [('TensorLy', 'http://tensorly.org/dev'),
                                           ('TensorLy-Viz', 'http://tensorly.org/viz'),
                                           ('TensorLy-Quantum', 'http://tensorly.org/quantum')]
                      )],
}

In rst files

In your documentation itself, you can use :no-toc:, :no-localtoc: and :no-pagination: to remove the side-menu’s table of content (toc), local toc (“on this page”) and pagination buttons, respectively. For instance, if you don’t want file.rst to have a toc, simply add in the file:

:no-toc:

Metadata

Release files for tensorly-sphinx-theme 0.2.3

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

Source distribution (sdist)

Source distribution for tensorly-sphinx-theme 0.2.3
File Size Uploaded
tensorly-sphinx-theme-0.2.3.tar.gz 51.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tensorly-sphinx-theme 0.2.3
File Interpreter ABI Platform
tensorly_sphinx_theme-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 105.0 kB

Release files / tensorly-sphinx-theme-0.2.3.tar.gz

Download URL tensorly-sphinx-theme-0.2.3.tar.gz
Size 51.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7fdf813059560b269baf15d1deffc4fe07b7dfc9c4e63e71eb29b7d3171cbc66
BLAKE2b-256 checksum
How to use checksums
ec7312647e483a31db41e4398e13cc19ad675534cb5b7fdda5b6ab98c3ef9ef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / tensorly_sphinx_theme-0.2.3-py3-none-any.whl

Download URL tensorly_sphinx_theme-0.2.3-py3-none-any.whl
Size 53.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a58220f3962b82a25dc477983dfac53343d7b6f16d9b02be74ad49e330a8fc42
BLAKE2b-256 checksum
How to use checksums
8b4650f122bd2effc30a490c3b690db9f78ae376a2554ec51429c33f97227dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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