Commit graph

9 commits

Author SHA1 Message Date
43294c77c6 linkchecker: Add ignores for housekeeping links
The Antora server will include a language-switching link
and an edit link for each file, both of which aren't
valid in the preview and need to be ignored.

The edit link takes the form `file:///antora/...`,
a path that's only valid inside the container.

The language link points from every document
`https://localhost:8080/guidelines/foo`
to a language-specific URL like
`https://localhost:8080/en-US/guidelines/foo`

The latter may need to be tweaked if they're dependent on
the system locale of the user running linkchecker.
Ignoring `https://localhost:8080/en-US` works for me,
but may not be universal.
2026-01-08 17:52:54 +00:00
ee8f61f2e5 Shut down server after running linkchecker 2026-01-08 17:52:54 +00:00
f059e0d1bc linkchecker doesn't support --complete argument 2026-01-08 17:52:54 +00:00
b9bc3020f7 Repo tooling: Adopt the docsbuilder.sh script
Instead of using podman commands directly in the Makefile, add
the `docsbuilder.sh` script from the [docs templates repo][1].
Rewrite the Makefile to use docsbuilder commands to perform
its functions.

Changes:
- The preview URL changes from `https://localhost:8000` to
  `https://localhost:8080/`
- `build` is now a synonym for `doc`
- `serve` now runs `docsbuilder -p` which automatically
  rebuilds the doc first
- `watch` is now available to start a server that
   automatically rebuilds the preview on file changes
- `linkcheck` will automatically start a preview server
  before running `linkchecker`

[1]: https://gitlab.com/fedora/docs/templates/fedora-docs-template
2026-01-08 17:52:54 +00:00
a38e83853d Properly ignore drupal.org URLs 2021-10-14 16:17:56 -05:00
15a61606d1 Add a linkcheck Makefile target
drupal.org is ignored because it detects automated browsing and
complains.
2021-10-11 18:17:59 +00:00
Igor Gnatenko
9a0fc3f339
Makefile: don't use python3.7 feature
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-10-02 17:25:32 +02:00
Igor Gnatenko
07f1a6ced5
Makefile: trivial improvements
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-09-23 20:58:29 +02:00
Igor Gnatenko
8a2c101fb5
adapt to antora
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-09-22 08:50:12 +02:00