Skip to content

Fix/docusaurus build warnings - #392

Open
gerbsen wants to merge 2 commits into
mainfrom
fix/docusaurus-build-warnings
Open

Fix/docusaurus build warnings#392
gerbsen wants to merge 2 commits into
mainfrom
fix/docusaurus-build-warnings

Conversation

@gerbsen

@gerbsen gerbsen commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

I was a little annoyed by all the warnings once you start the server, so I thought it might be a good idea to get rid of them. There were quite a lot of links which I manually resolved to new pages due to the osism removal and archival of the health-monitor repo. I also bumped the version of Docusaurus to the most recent one: works on my machinel™.

One thing I would like to change in the future: brokens links are considered a real problem and break the complete build process. I think if we already have the possibility to check that all links work, then we should use it.

Daniel Gerber and others added 2 commits August 5, 2026 16:21
Running `npm start` emitted three classes of warning that we control:

- `siteConfig.onBrokenMarkdownLinks` is deprecated and removed in
  Docusaurus v4. Moved it to `siteConfig.markdown.hooks.onBrokenMarkdownLinks`,
  keeping the `warn` severity so broken markdown links are still reported.

- All seven blog posts lacked a truncation marker, so the blog list pages
  rendered each post in full. Added `<!-- truncate -->` after the opening
  paragraph of each post.

- Duplicate route at `/standards/`: the vendored standards content pulled in
  by getDocs.js ships a README.md, which Docusaurus renders at the same route
  as our own standards/index.md. The standards docs plugin now excludes that
  README so index.md is unambiguously the page at `/standards/`.

The remaining seven "Markdown link ... couldn't be resolved" warnings all
originate in gitignored content vendored from upstream repositories, so they
have to be fixed in those repositories rather than here.

Committed with --no-verify: the pre-commit hook runs `markdownlint-cli2-fix`,
a binary that markdownlint-cli2 v0.22 no longer ships. `prettier --check` and
`markdownlint-cli2` were both run manually against these changes and pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com>
Signed-off-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com>
@gerbsen
gerbsen force-pushed the fix/docusaurus-build-warnings branch from 89f80fb to 4a1a09c Compare August 5, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant