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

Test that Qiskit TocGrouping is in sync with index page #1300

Merged
merged 2 commits into from
May 12, 2024

Conversation

Eric-Arellano
Copy link
Collaborator

@Eric-Arellano Eric-Arellano commented May 3, 2024

The Qiskit devs were worried about the index page from Qiskit/qiskit#12333 falling out of sync with our custom grouping for _toc.json.

This PR adds a test to ensure that the two files are in sync. In particular, it checks that the grouping and sequence of modules is identical. It does not check that the label for the groups are the same, though.

For now, we only check the dev docs because the latest docs (1.0) fail. #1341 will also start checking the latest docs once 1.1 is released.

Eric-Arellano added a commit that referenced this pull request May 3, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 7, 2024
Closes #1211. See
Qiskit/qiskit#12333 for the sibling PR in
Qiskit. We'll land the test
#1300 once both PRs have
landed.

This uses the same grouping as
#1211 (comment),
if people prefer reviewing the list over code.

Before:
<img width="254" alt="Screenshot 2024-05-01 at 10 27 43 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/5b503347-accd-4847-a7e2-aedf3546fcba">

After:

<img width="269" alt="Screenshot 2024-05-01 at 10 28 02 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/c1a358f6-26f5-4e6e-80e9-2ee440eec94f">

<img width="272" alt="Screenshot 2024-05-01 at 10 28 15 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/c3c80ca7-96e5-4942-ac39-6795b9504277">

This also improves historical APIs

<img width="271" alt="Screenshot 2024-05-01 at 10 29 08 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/362cc70f-4c7e-49c4-9447-78af2a648452">
@Eric-Arellano Eric-Arellano force-pushed the EA/test-toc-grouping branch from 7226154 to bf50ccc Compare May 7, 2024 13:07
@Eric-Arellano Eric-Arellano force-pushed the EA/test-toc-grouping branch from bf50ccc to 460dc1c Compare May 10, 2024 11:25
@Eric-Arellano Eric-Arellano changed the title [blocked] Test that Qiskit TocGrouping is in sync with index page Test that Qiskit TocGrouping is in sync with index page May 10, 2024
@Eric-Arellano Eric-Arellano marked this pull request as ready for review May 10, 2024 11:28
@Eric-Arellano Eric-Arellano added this pull request to the merge queue May 12, 2024
Merged via the queue into main with commit 8b3432a May 12, 2024
2 checks passed
@Eric-Arellano Eric-Arellano deleted the EA/test-toc-grouping branch May 12, 2024 23:41
frankharkins pushed a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
Closes Qiskit#1211. See
Qiskit/qiskit#12333 for the sibling PR in
Qiskit. We'll land the test
Qiskit#1300 once both PRs have
landed.

This uses the same grouping as
Qiskit#1211 (comment),
if people prefer reviewing the list over code.

Before:
<img width="254" alt="Screenshot 2024-05-01 at 10 27 43 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/5b503347-accd-4847-a7e2-aedf3546fcba">

After:

<img width="269" alt="Screenshot 2024-05-01 at 10 28 02 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/c1a358f6-26f5-4e6e-80e9-2ee440eec94f">

<img width="272" alt="Screenshot 2024-05-01 at 10 28 15 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/c3c80ca7-96e5-4942-ac39-6795b9504277">

This also improves historical APIs

<img width="271" alt="Screenshot 2024-05-01 at 10 29 08 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/362cc70f-4c7e-49c4-9447-78af2a648452">
frankharkins pushed a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
The Qiskit devs were worried about the index page from
Qiskit/qiskit#12333 falling out of sync with our
custom grouping for `_toc.json`.

This PR adds a test to ensure that the two files are in sync. In
particular, it checks that the grouping and sequence of modules is
identical. It does not check that the label for the groups are the same,
though.

For now, we only check the dev docs because the latest docs (1.0) fail.
Qiskit#1341 will also start
checking the latest docs once 1.1 is released.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants