Configuration¶
The Xanadu Sphinx Theme supports the following options. These should be added to
the html_theme_options dictionary in your conf.py file.
google_analytics_tracking_idGoogle Analytics tracking ID to enable website analytics.
github_repoThe GitHub organization and repository associated with the documentation. E.g., for a GitHub repository https://github.com/Organization/repo, this should be
"github_repo": "Organization/repo".search_on_pennylane_aiIf
True, navigating tosearch.html(or using the search box) will redirect users to https://pennylane.ai/search with the appropriate query parameters.command_palette_enabledWhen set to
True, the command palette is activated, enabling users to easily search and navigate all content within pennylane.ai.
Table of contents¶
The following options customize the table of contents.
toc_overviewIf
True, the project name, and a link to the homepageindex.rst, is included in the left-hand table of contents.toc_globalWhether to show the global table of contents by default via the left sidebar. If
False, then the left sidebar will be disabled.toc_subsetIf set to
True, and the current page has no local table of contents, the right-hand table of contents will instead display the current subset of the document tree. That is, the right-hand ToC will display the location in the document of the current page. IfFalse, and the current page has no local table of contents, no right-hand ToC will be shown.relationsIf
True, then Next and Previous buttons are included at the bottom of every page, allowing navigation according to the table of contents.
Style Colours¶
The following options allow the colours of various theme elements to be altered.
These should be fully qualified CSS color specifiers such as #004B6B or
#444.
border_colourBorder colour of accent rules and table headers.
code_colourColour of code blocks and teletype text. Defaults to
#8D1A38.prev_next_button_colourandprev_next_button_hover_colourColours of the “Next” and “Previous” navigation buttons located at the bottom of most pages.
social_icon_colourColour of the social icons.
table_header_background_colourBackground colour of table headers.
text_accent_colourAccent colour for text such as download links.
toc_marker_colourColour of the marker beside the current ToC entry.
toc_mobile_heading_colourandtoc_mobile_heading_background_colourText and background colours of the mobile ToC heading.