Skip to content

Commit c39d2d3

Browse files
update check to look for string 'true' not bool (#60)
* update check to look for `string` 'true' not `bool` * Update doc/conf.py * update changelog * Update .github/CHANGELOG.md Co-authored-by: Mikhail Andrenkov <[email protected]> * add back changlog line * bump version --------- Co-authored-by: Mikhail Andrenkov <[email protected]>
1 parent 41a1f66 commit c39d2d3

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
## Release 0.8.0 (development release)
1+
## Release 0.7.1
22

33
### Contributors
44

55
This release contains contributions from (in alphabetical order):
66

7+
- [Alan Martin](https://github.com/alan-emartin)
8+
9+
### Bug fixes
10+
11+
* Fixed an issue with the `command_palette_enabled` and `search_on_pennylane` options
12+
having falsey values, big thanks to [Mikhail Andrenkov](https://github.com/Mandrenkov).
13+
[(#60)](https://github.com/XanaduAI/xanadu-sphinx-theme/pull/60)
14+
715
## Release 0.7.0
816

917
### Contributors

xanadu_sphinx_theme/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
using the following format: <major>.<minor>.<patch>[-<pre-release>].
44
"""
55

6-
__version__ = "0.8.0-dev"
6+
__version__ = "0.7.1"

xanadu_sphinx_theme/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
{% endfor %}
8181
</ul>
8282
<ul class="navbar-right-links desktop">
83-
{% if theme_command_palette_enabled %}
83+
{% if theme_command_palette_enabled|lower == 'true' %}
8484
<!-- Command Palette Button - Desktop -->
8585
<button
8686
type="button"
@@ -181,7 +181,7 @@
181181

182182
<div class="navbar-links mobile">
183183
<ul>
184-
{% if theme_command_palette_enabled %}
184+
{% if theme_command_palette_enabled|lower == 'true' %}
185185
<!-- Command Palette Button - Mobile -->
186186
<li class="navbar-link mobile">
187187
<button
@@ -228,7 +228,7 @@
228228
</ul>
229229
</div>
230230

231-
{% if theme_command_palette_enabled %}
231+
{% if theme_command_palette_enabled|lower == 'true' %}
232232
<!-- Initialize Command Palette Widget -->
233233
<pennylane-help></pennylane-help>
234234
<script type="module" src="https://widget.cloud.pennylane.ai/command-palette/assets/js/widget.js"></script>

xanadu_sphinx_theme/search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% if theme_search_on_pennylane_ai %}
1+
{% if theme_search_on_pennylane_ai|lower == 'true' %}
22
<!-- If JavaScript is enabled, redirect users to https://pennylane.ai/search. -->
33
<script type="text/javascript">
44
const search_version = window.location.pathname.includes("/latest/") ? "latest" : "stable";

0 commit comments

Comments
 (0)