Skip to content

Commit 5dc8b3f

Browse files
authored
feat: add linkcheck to docs build (#569)
1 parent 3d496fd commit 5dc8b3f

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

doc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pdf:
3232

3333
# Build HTML files and generate examples as .py files
3434
html:
35+
@$(SPHINXBUILD) -M linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
3536
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
3637
cd $(BUILDDIR)/html/examples
3738
for d in */ ; do

doc/make.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if errorlevel 9009 (
3232
goto end
3333

3434
:html
35+
%SPHINXBUILD% -M linkcheck %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3536
%SPHINXBUILD% -M html %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3637
goto build-examples-py
3738

doc/source/examples/01_getting_started/02_units.mystnb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Now, with this ``UnitRegistry`` object called ``UNITS``, we will create
3737
``Quantity`` objects also have convenience methods for: transforming to different units, comparing
3838
magnitudes/values, units, etc. For more information on their functioning please refer to the
3939
[pint.Quantity](https://pint.readthedocs.io/en/stable/api/base.html#most-important-classes)
40-
docs or the [Pint tutorial](https://pint.readthedocs.io/en/stable/getting/tutorial.html?#tutorial).
40+
docs or the [Pint tutorial](https://pint.readthedocs.io/en/stable/getting/tutorial.html).
4141

4242
```{code-cell} ipython3
4343
from pint import Quantity

doc/source/getting_started/docker.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Docker container.
4949

5050
#. If you have Docker installed, use a GitHub personal access token (PAT) with packages read permission to authorize Docker
5151
to access this repository. For more information,
52-
see `creating a personal access token <https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token>`_.
52+
see `creating a personal access token <https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens>`_.
5353

5454
#. Save the token to a file:
5555

0 commit comments

Comments
 (0)