Skip to content

Conversation

Eric-Arellano
Copy link
Collaborator

Part of #495. We now will enforce in CI that historical API docs are valid for Runtime and Provider. To do this, this PR adds the --skip-broken-historical argument.

In a follow up, I want to try checking Qiskit docs, at least certain versions. But I'm waiting until we regenerate the docs with #552 applied because I suspect it will fix some issues.

@Eric-Arellano Eric-Arellano changed the title [blocked by #561] Check Runtime historical API docs for broken links Check Runtime historical API docs for broken links Jan 3, 2024
Comment on lines 38 to 39
--historical-apis \
--skip-broken-historical
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will make CI for every PR a little slower. But given that we're making changes to the API generation script the next two months, it's probably worth it. We could always remove it if CI is getting too slow.

@Eric-Arellano Eric-Arellano marked this pull request as ready for review January 3, 2024 16:18
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.

Awesome! Good thinking adding this new argument! I tested it locally, and it works very well. It's true that checking the historical APIs will make the CI slower, but I suspect that once we regenerate the docs with #552 applied, the time will be reduced a lot too.

Testing the regeneration of qiskit v0.24, we reduced the number of broken links from 17795 to 146, and not only because they are fixed but because we have much fewer links too. I have to verify that we don't have any issues with the regeneration, but it seems promising 😃

@Eric-Arellano Eric-Arellano added this pull request to the merge queue Jan 5, 2024
Merged via the queue into main with commit f762842 Jan 5, 2024
@Eric-Arellano Eric-Arellano deleted the EA/skip-historical branch January 5, 2024 13:45
github-merge-queue bot pushed a commit that referenced this pull request Jan 8, 2024
As of #569 and
#572, our extended check PR
now checks more than simply external links. It also checks:

* that all pages render for translations and API docs
* the internal links for API docs

So, we should run these extended checks when we make changes to the API
and translations folders.
github-actions bot pushed a commit that referenced this pull request Jan 9, 2024
Part of #495. We now will
enforce in CI that historical API docs are valid for Runtime and
Provider. To do this, this PR adds the `--skip-broken-historical`
argument.

In a follow up, I want to try checking Qiskit docs, at least certain
versions. But I'm waiting until we regenerate the docs with
#552 applied because I
suspect it will fix some issues.
github-actions bot pushed a commit that referenced this pull request Jan 9, 2024
As of #569 and
#572, our extended check PR
now checks more than simply external links. It also checks:

* that all pages render for translations and API docs
* the internal links for API docs

So, we should run these extended checks when we make changes to the API
and translations folders.
frankharkins pushed a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
Part of Qiskit#495. We now will
enforce in CI that historical API docs are valid for Runtime and
Provider. To do this, this PR adds the `--skip-broken-historical`
argument.

In a follow up, I want to try checking Qiskit docs, at least certain
versions. But I'm waiting until we regenerate the docs with
Qiskit#552 applied because I
suspect it will fix some issues.
frankharkins pushed a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
As of Qiskit#569 and
Qiskit#572, our extended check PR
now checks more than simply external links. It also checks:

* that all pages render for translations and API docs
* the internal links for API docs

So, we should run these extended checks when we make changes to the API
and translations folders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants