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

added missing variables #24

Merged
11 changes: 9 additions & 2 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
## Release 0.4.0 (development release)
## Release 0.3.2

### Bug fixes

* Added missing variables: `github_repo` and `gallery_dirs` to address the View on GitHub link not working for demos.
[#24](https://github.com/XanaduAI/xanadu-sphinx-theme/pull/24)

### Contributors

This release contains contributions from (in alphabetical order):

## Release 0.3.1 (current release)
[Lucas Silbernagel](https://github.com/LucasSilbernagel)

## Release 0.3.1

### Improvements

Expand Down
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Once installed, simply add or modify the following variables of your Sphinx

"navbar_home_link": "https://example.com",

"github_repo": "",
"navbar_left_links": [
{
"name": "Tutorials",
Expand Down Expand Up @@ -119,6 +120,11 @@ the ``html_theme_options`` dictionary in your ``conf.py`` file.

``google_analytics_tracking_id``
Google Analytics tracking ID to enable website analytics.

``github_repo``
The 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"``.

Navigation Bar
--------------
Expand Down Expand Up @@ -392,4 +398,4 @@ License
The Xanadu Sphinx Theme is **free** and **open source**, released under the
`Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>`_.

.. license-end-inclusion-marker-do-not-remove
.. license-end-inclusion-marker-do-not-remove
6 changes: 6 additions & 0 deletions xanadu_sphinx_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ google_analytics_tracking_id =
# List of extra copyright notices to place in the footer.
extra_copyrights =

# GitHub organization and repository name of associated GitHub repo.
# Used to ensure that 'View on GitHub' buttons work.
github_repo =
# Path where to save gallery generated examples
gallery_dirs =

# Specify the title and description of the About section in the footer
footer_about =
# Provide lists of links to display in the footer
Expand Down