PennyLaneAI / qml

Introductions to key concepts in quantum programming, as well as tutorials and implementations from cutting-edge quantum computing research.
https://pennylane.ai/qml
Apache License 2.0
539 stars 185 forks source link

Corrected links in old Demos #1173

Closed ikurecic closed 2 months ago

ikurecic commented 2 months ago

Fixing issues with links to in-page section anchors.

github-actions[bot] commented 2 months ago

👋 Hey, looks like you've updated some demos!

🐘 Don't forget to update the dateOfLastModification in the associated metadata files so your changes are reflected in Glass Onion (search and recommendations).

Please hide this comment once the field(s) are updated. Thanks!

Qottmann commented 2 months ago

not sure whats going on here, seems to be unrelated to this PR though

Traceback (most recent call last): File "/home/runner/work/qml/qml/venv/lib/python3.10/site-packages/sphinx/config.py", line 350, in eval_config_file exec(code, namespace) File "/home/runner/work/qml/qml/conf.py", line 21, in from pennylane import PennyLaneDeprecationWarning ModuleNotFoundError: No module named 'pennylane'

ikurecic commented 2 months ago

not sure whats going on here, seems to be unrelated to this PR though

Traceback (most recent call last): File "/home/runner/work/qml/qml/venv/lib/python3.10/site-packages/sphinx/config.py", line 350, in eval_config_file exec(code, namespace) File "/home/runner/work/qml/qml/conf.py", line 21, in from pennylane import PennyLaneDeprecationWarning ModuleNotFoundError: No module named 'pennylane'

Yikes. Yeah, it seems to be unrelated. I'll follow up. Thanks!

DSGuala commented 2 months ago

When I tested locally, keeping the two slashes allows the link to point to the demo, but one slash just doesn't show up as a link.

josh146 commented 2 months ago

For cross-referencing sections, I don't think this is allowed syntax with Sphinx 🤔 (but could be wrong). Instead, I typically use :ref:

github-actions[bot] commented 2 months ago

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

Note: It may take several minutes for updates to this pull request to be reflected on the deployed site.

DSGuala commented 2 months ago

For cross-referencing sections, I don't think this is allowed syntax with Sphinx 🤔 (but could be wrong). Instead, I typically use :ref:

~I couldn't find existing examples of :ref:`...#` to a section :thinking:~ Edit: realized we don't use # for :ref: :sweat_smile:

Found some broken :ref: links.

ikurecic commented 2 months ago

I just made the links external, it seems like that works reliably at the moment.