Skip to content

Commit

Permalink
Fixed an issue where footnote references were being rendered without …
Browse files Browse the repository at this point in the history
…brackets (#27)

* Fixed an issue where footnote references were being rendered without brackets

* Fixed an issue where footnote references were being rendered without brackets
  • Loading branch information
josh146 authored Oct 24, 2022
1 parent 0abbf33 commit 7ed4717
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
## Release 0.4.0 (development release)
## Release 0.3.3 (current release)

### Bug fixes

* Fixed an issue where footnote references were being rendered without brackets.
[#25](https://github.com/XanaduAI/xanadu-sphinx-theme/pull/25)

### Contributors

This release contains contributions from (in alphabetical order):

[Josh Izaac](https://github.com/josh146).

## Release 0.3.2

### Bug fixes
Expand Down
17 changes: 16 additions & 1 deletion doc/tutorials/tutorial_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
Example Sphinx-Gallery demo
===========================
This tutorial is an example demo generated using Sphinx Gallery.
This tutorial is an example demo generated using Sphinx Gallery. Here are a few
references to see what they look like [#stokes2019]_ [#sweke2019]_.
System Info
-----------
Expand All @@ -23,6 +24,20 @@
print(f"Processor: {uname.processor}")

###############################################################
# References
# ----------
#
# .. [#stokes2019]
#
# James Stokes, Josh Izaac, Nathan Killoran, and Giuseppe Carleo. "Quantum Natural Gradient."
# `arXiv:1909.02108 <https://arxiv.org/abs/1909.02108>`__ (2019).
#
# .. [#sweke2019]
#
# Ryan Sweke, Frederik Wilde, Johannes Jakob Meyer, Maria Schuld, Paul K. Fährmann, Barthélémy
# Meynard-Piganeau, and Jens Eisert. "Stochastic gradient descent for hybrid quantum-classical
# optimization." `arXiv:1910.01155 <https://arxiv.org/abs/1910.01155>`__ (2019).
#
# Author
# ------
#
Expand Down
8 changes: 8 additions & 0 deletions xanadu_sphinx_theme/static/xanadu.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,14 @@ dl.glossary dt {
background-color: #ffa;
}

.footnote-reference.brackets::before {
content: "[";
}

.footnote-reference.brackets::after {
content: "]";
}

.line-block {
display: block;
margin-top: 1em;
Expand Down

0 comments on commit 7ed4717

Please sign in to comment.