Feature #584 linkcheck - #587
Draft
JohnHalleyGotway wants to merge 4 commits into
Draft
JohnHalleyGotway wants to merge 4 commits into
JohnHalleyGotway wants to merge 4 commits into
Conversation
… linkcheck.yml, and update Sphinx to match METplus - Run dtcenter/metplus-action-linkcheck@v1 as a "Check links" step of documentation.yaml after the docs build, with the same inputs linkcheck.yml used, as was done for MET (dtcenter/MET#3457) and METplus (dtcenter/METplus#3359). The weekly schedule is dropped. - Add a workflow_dispatch trigger so the workflow can be run manually. - Update docs/requirements.txt to the versions METplus uses: sphinx 8.2.3, sphinx-design 0.6.1, sphinx-rtd-theme 3.0.1, and sphinx-gallery 0.19.0. - Use Python 3.12 for the Documentation workflow (was 3.10), since Sphinx 8.2 requires Python 3.11 or later. Read the Docs already uses 3.12. - Stop installing unpinned sphinx, sphinx-gallery, and sphinx_rtd_theme before docs/requirements.txt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sites.gsl.noaa.gov author page returns 503 Service Unavailable. This section will be removed before the next release, so no replacement link is needed. This matches the same change in MET (dtcenter/MET#3457) and METplus (dtcenter/METplus#3359). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed-out examples dtcenter/metplus-action-linkcheck checks DOI links with the DOI API, so a DOI whose publisher blocks automated requests still passes, and a mistyped DOI fails. Shorten the comment for bmcnoldy.rsmas.miami.edu, which is still ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 of 23 tasks
Tabs in the .rst files are replaced with spaces, matching the spacing conventions used elsewhere in the docs: - Tabs used for indentation are replaced with the same number of spaces docutils already used for them (tab stops every 8 columns), so the rendered docs are unchanged. - Lines containing only whitespace are now empty, and trailing tabs are removed. - Tabs between words in a sentence, or after a directive name, are replaced with a single space. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 of 15 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #584
Summary
Moves the link check into the existing Documentation workflow and updates Sphinx to the versions METplus uses, as was done for MET (dtcenter/MET#3457) and METplus (dtcenter/METplus#3359). The broken links themselves were resolved in #585. With these changes, the Documentation workflow builds the docs with no warnings and all checked links pass.
Changes
Link Check Moved Into the Documentation Workflow
.github/workflows/documentation.yamlnow runsdtcenter/metplus-action-linkcheck@v1(v1.6.0) as a Check links step after the docs build, with the same inputslinkcheck.ymlused. The weekly schedule is dropped.workflow_dispatchtrigger is added so the workflow can be run manually..github/workflows/linkcheck.ymlis removed.Sphinx Updated to Match METplus
sphinxsphinx-designsphinx-rtd-themesphinx-gallerysphinxcontrib-bibtexsphinx,sphinx-gallery, andsphinx_rtd_themebeforedocs/requirements.txt.Links
index.rst):https://sites.gsl.noaa.gov/authors/365returns503 Service Unavailable. Her name is now shown in bold with no link, as in MET and METplus, since this section will be removed before the next release. (v1.6.0 of the link checker re-checks503responses, which Sphinx reports as ignored.)linkcheck_ignoreindocs/conf.pyis reduced to one pattern:https://doi\.org/.*: the link checker checks DOI links with the DOI API, so DOIs whose publishers block automated requests (e.g. Wiley) still pass, and a mistyped DOI fails.https://bmcnoldy\.rsmas\.miami\.edu/.*(incomplete TLS certificate chain, and often unreachable), with a shorter comment.Consistent Spacing
Tabs in the
.rstfiles (31 line(s) in 15 file(s), 4097779) are replaced with spaces, for consistent spacing that matches the formatting conventions used elsewhere in the docs:These are whitespace-only changes (
git diff -wis empty), and the rendered docs are unchanged. Each changed line was checked to give docutils the same input as before (docutils expands tabs to 8-column tab stops and strips trailing whitespace when it reads a file), and the Documentation workflow builds the docs with no warnings.Pull Request Testing
Describe testing already performed for these changes:
The Documentation workflow passed on this branch (run 37078013741): the docs build with no warnings, and all 74 checked links passed (including 4 DOIs checked with the DOI API), with 1 ignored (
bmcnoldy.rsmas.miami.edu). The docs were also built and link checked locally with Sphinx 8.2.3 on Python 3.12, with no warnings. "Python 3.12 tests" also passed.Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
Review the Linkcheck Results in the Documentation job summary for this PR.
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]
Do these changes include sufficient testing updates? [Yes]
Will this PR result in changes to the test suite? [No]
If yes, describe the new output and/or changes to the existing output:
Do these changes introduce new SonarQube findings? [No]
If yes, please describe:
Please complete this pull request review by [Fill in date].
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s) and Development issue
Select: Milestone as the version that will include these changes
Select: Coordinated METplus-X.Y Support project for bugfix releases or METplotpy-X.Y.Z Development project for official releases
🤖 Generated with Claude Code