Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove undefined spans from historical API docs #484

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

Eric-Arellano
Copy link
Collaborator

@Eric-Arellano Eric-Arellano commented Dec 6, 2023

I'm not sure why the script set these and still does: #485. While they aren't rendered to the user, we shouldn't have multiple HTML elements with the same ID.

Updated with this:

rg '<span id="undefined" />' -l | xargs sd -s '<span id="undefined" />' '' 

We should find a proper fix in #485, but this is a good workaround for now. We're unlikely to regenerate historical API docs, so this will workaround those ones. For current docs, we can regenerate once we have a fix.

Copy link
Collaborator

@arnaucasau arnaucasau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Eric-Arellano Eric-Arellano added this pull request to the merge queue Dec 6, 2023
Merged via the queue into main with commit 5d5fa59 Dec 6, 2023
4 checks passed
@Eric-Arellano Eric-Arellano deleted the EA/rm-undefined-spans branch December 6, 2023 20:22
github-merge-queue bot pushed a commit that referenced this pull request Dec 8, 2023
This PR fixes the issue with the undefined span IDs when generating the
documentation and transforms the `/api/qiskit/index` entry in the toc
file to `/api/qiskit`. A new test has been added to verify we don't
generate span tags with an undefined id.

The Qiskit docs have been regenerated to verify the correct behavior of
the script for the current version. The changes in the docs files are
empty lines matching the great work done by @Eric-Arellano in #484
removing the tags manually.

Closes #485
Closes #227
frankharkins pushed a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
I'm not sure why the script set these and still does:
Qiskit#485. While they aren't
rendered to the user, we shouldn't have multiple HTML elements with the
same ID.

Updated with this:

```bash
rg '<span id="undefined" />' -l | xargs sd -s '<span id="undefined" />' '' 
```

We should find a proper fix in
Qiskit#485, but this is a good
workaround for now. We're unlikely to regenerate historical API docs, so
this will workaround those ones. For current docs, we can regenerate
once we have a fix.
frankharkins pushed a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
This PR fixes the issue with the undefined span IDs when generating the
documentation and transforms the `/api/qiskit/index` entry in the toc
file to `/api/qiskit`. A new test has been added to verify we don't
generate span tags with an undefined id.

The Qiskit docs have been regenerated to verify the correct behavior of
the script for the current version. The changes in the docs files are
empty lines matching the great work done by @Eric-Arellano in Qiskit#484
removing the tags manually.

Closes Qiskit#485
Closes Qiskit#227
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants