Skip to content

Fix/docusaurus build warnings - #392

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

Fix/docusaurus build warnings#392
gerbsen wants to merge 3 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.

@gerbsen
gerbsen force-pushed the fix/docusaurus-build-warnings branch from 89f80fb to 4a1a09c Compare August 5, 2026 14:23
Daniel Gerber and others added 2 commits August 7, 2026 11:55
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 4a1a09c to c04d33c Compare August 7, 2026 09:57
Comment thread docs.package.json
- Add User-Agent header for lwn.net in mlc_config.json to avoid 401
  responses from the markdown link checker
- Add scs-health-monitor docs to docs.package.json so referenced files
  are fetched during the build

Signed-off-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com>
@gerbsen
gerbsen force-pushed the fix/docusaurus-build-warnings branch from 7f92afb to aaa4c45 Compare August 7, 2026 14:25
Comment thread docusaurus.config.js
// own standards/index.md. Skip it; index.md is the page we want there.
// Repeats Docusaurus' default excludes, which this option replaces.
exclude: [
'README.md',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this not necessary before?

Or is this a preliminary step before we alter getDocs.js to not delete README.md?

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.

2 participants