[releases/2.3] docs: Cherry-pick various doc updates #1186
Merged
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.
What does this Pull Request accomplish?
Cherry-pick the following PRs:
Original PR descriptions:
docs: Upgrade Sphinx and change copyright year to "2022-%Y"
What does this Pull Request accomplish?
Upgrade to the latest Sphinx, which requires Python 3.11 or later.
Change copyright year to "2022-2025" to reflect the first year when this package and its documentation were published.
Use
%Yplaceholder to specify the year.Note
The package name was
ni-measurement-servicein 2022, then it was renamed toni-measurementlink-servicein 2023, and renamed again toni-measurement-plugin-sdk-servicein 2024.Reformat
pyproject.tomlbecause I have my editor configured to reformat now.Why should this Pull Request be merged?
While setting up Sphinx for another project, I noticed that the Python 3.9 version constraint requires using a Sphinx version from 2023 and the
%Yplaceholder was not supported with that older version.What testing has been done?
Ran
poetry run sphinx-build _docs_source docs -b html -W --keep-goingand inspected the output locally.It printed some warnings about ReadTheDocs's SSL certificates, so I'll check whether the PR build has the same warnings.
docs: Remove Sphinx --keep-going option
What does this Pull Request accomplish?
Remove
--keep-goingfrom the Sphinx command lineWhy should this Pull Request be merged?
--keep-goingis always enabled in Sphinx 8.1+: https://www.sphinx-doc.org/en/master/man/sphinx-build.html#cmdoption-sphinx-build-keep-goingWhat testing has been done?
PR build
docs: Remove tomlkit dependency
What does this Pull Request accomplish?
Remove dependency on
tomlkit.Why should this Pull Request be merged?
I don't think we're using it.
_docs_source/conf.pyis usingtomlwhich is a separate package.What testing has been done?
PR build.