Skip to content

Commit 7ed4717

Browse files
authored
Fixed an issue where footnote references were being rendered without brackets (#27)
* Fixed an issue where footnote references were being rendered without brackets * Fixed an issue where footnote references were being rendered without brackets
1 parent 0abbf33 commit 7ed4717

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.github/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
## Release 0.4.0 (development release)
1+
## Release 0.3.3 (current release)
2+
3+
### Bug fixes
4+
5+
* Fixed an issue where footnote references were being rendered without brackets.
6+
[#25](https://github.com/XanaduAI/xanadu-sphinx-theme/pull/25)
27

38
### Contributors
49

510
This release contains contributions from (in alphabetical order):
611

12+
[Josh Izaac](https://github.com/josh146).
13+
714
## Release 0.3.2
815

916
### Bug fixes

doc/tutorials/tutorial_demo.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Example Sphinx-Gallery demo
33
===========================
44
5-
This tutorial is an example demo generated using Sphinx Gallery.
5+
This tutorial is an example demo generated using Sphinx Gallery. Here are a few
6+
references to see what they look like [#stokes2019]_ [#sweke2019]_.
67
78
System Info
89
-----------
@@ -23,6 +24,20 @@
2324
print(f"Processor: {uname.processor}")
2425

2526
###############################################################
27+
# References
28+
# ----------
29+
#
30+
# .. [#stokes2019]
31+
#
32+
# James Stokes, Josh Izaac, Nathan Killoran, and Giuseppe Carleo. "Quantum Natural Gradient."
33+
# `arXiv:1909.02108 <https://arxiv.org/abs/1909.02108>`__ (2019).
34+
#
35+
# .. [#sweke2019]
36+
#
37+
# Ryan Sweke, Frederik Wilde, Johannes Jakob Meyer, Maria Schuld, Paul K. Fährmann, Barthélémy
38+
# Meynard-Piganeau, and Jens Eisert. "Stochastic gradient descent for hybrid quantum-classical
39+
# optimization." `arXiv:1910.01155 <https://arxiv.org/abs/1910.01155>`__ (2019).
40+
#
2641
# Author
2742
# ------
2843
#

xanadu_sphinx_theme/static/xanadu.css_t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,14 @@ dl.glossary dt {
14421442
background-color: #ffa;
14431443
}
14441444

1445+
.footnote-reference.brackets::before {
1446+
content: "[";
1447+
}
1448+
1449+
.footnote-reference.brackets::after {
1450+
content: "]";
1451+
}
1452+
14451453
.line-block {
14461454
display: block;
14471455
margin-top: 1em;

0 commit comments

Comments
 (0)