Skip to content

Commit

Permalink
Add links to PennyLane Challenges page (#33)
Browse files Browse the repository at this point in the history
**Context:**

The [PennyLane Challenges](https://pennylane.ai/challenges/) page is now live!

**Description of the Change:**

This PR makes the links in the navbar and footer consistent with the PennyLane website such that:
1. There is a link to the PennyLane Challenges page in the navbar and footer.
2. There is no longer a link to the PennyLane FAQ in the footer.

It also removes the "external" icon from the API and Catalyst links in the navbar.

**Benefits:**

* The navbar and footer are consistent between the PennyLane website and the Docs pages.

**Possible Drawbacks:**

None.

**Related GitHub Issues:**

None.

---

**Preview:**
https://xanaduai-pennylane--33.com.readthedocs.build/projects/sphinx-theme/en/33/.
  • Loading branch information
Mandrenkov authored Sep 25, 2023
1 parent e4a68a8 commit 5396b1d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
19 changes: 17 additions & 2 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
## Release 0.5.0 (development release)
## Release 0.4.2 (current release)

### Improvements

* Added a link to the PennyLane Challenges page in the navbar and footer.
[(#33)](https://github.com/PennyLaneAI/pennylane-sphinx-theme/pull/33)

### Bug Fixes

* Removed a link to the PennyLane FAQ page from the footer.
[(#33)](https://github.com/PennyLaneAI/pennylane-sphinx-theme/pull/33)

* Removed the "external" icon from the API and Catalyst links in the navbar.
[(#33)](https://github.com/PennyLaneAI/pennylane-sphinx-theme/pull/33)

### Contributors

This release contains contributions from (in alphabetical order):

## Release 0.4.1 (current release)
[Mikhail Andrenkov](https://github.com/Mandrenkov).

## Release 0.4.1

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion pennylane_sphinx_theme/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
using the following format: <major>.<minor>.<patch>[-<pre-release>].
"""

__version__ = "0.5.0-dev"
__version__ = "0.4.2"
8 changes: 4 additions & 4 deletions pennylane_sphinx_theme/footer.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
"name": "Videos",
"href": "https://pennylane.ai/qml/videos",
},
{
"name": "Challenges",
"href": "https://pennylane.ai/challenges/",
},
{
"name": "Demos",
"href": "https://pennylane.ai/qml/demonstrations",
Expand All @@ -88,10 +92,6 @@
"name": "Glossary",
"href": "https://pennylane.ai/qml/glossary/",
},
{
"name": "FAQ",
"href": "https://pennylane.ai/faq/",
},
],
},
{
Expand Down
10 changes: 4 additions & 6 deletions pennylane_sphinx_theme/navbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"href": "https://codebook.xanadu.ai/",
"external": True,
},
# {
# "name": "Challenges",
# "href": "https://pennylane.ai/challenges/",
# },
{
"name": "Challenges",
"href": "https://pennylane.ai/challenges/",
},
{
"name": "Videos",
"href": "https://pennylane.ai/qml/videos/",
Expand Down Expand Up @@ -49,7 +49,6 @@
{
"name": "API",
"href": "https://docs.pennylane.ai/en/stable/code/qml.html",
"external": True,
},
{
"name": "Devices",
Expand All @@ -63,7 +62,6 @@
{
"name": "Catalyst",
"href": "https://docs.pennylane.ai/projects/catalyst/",
"external": True,
},
],
},
Expand Down

0 comments on commit 5396b1d

Please sign in to comment.