Skip to content

Upgrade to Docusaurus 3.10.2; dead links, images, CI - #1

Open
Twelve-eight wants to merge 2 commits into
mainfrom
opt/20260822-polish
Open

Upgrade to Docusaurus 3.10.2; dead links, images, CI#1
Twelve-eight wants to merge 2 commits into
mainfrom
opt/20260822-polish

Conversation

@Twelve-eight

Copy link
Copy Markdown
Owner

Summary

The site could no longer build at all (Docusaurus 2.0.1 is incompatible with modern webpack — ProgressPlugin schema validation rejects webpackbar's option keys). This PR upgrades to Docusaurus 3.10.2 and does a full maintenance pass. npm ci && npm run build verified green locally.

Upgrade

  • @docusaurus/* 3.10.2, react 18.3, @mdx-js/react 3, clsx 2, prism-react-renderer 2, docusaurus-lunr-search 3.6
  • MDX v3 fixes across the site: HTML comments → {/* */}, bare angle brackets wrapped, <details> block flow fixed
  • lockfiles: dropped the npmmirror-pinned yarn.lock; regenerated a clean npm lockfile from registry.npmjs.org (npm ≥12 refuses the old remote tarballs)

Dead links (all verified dead via HTTP checks)

  • mcbbs.net removed everywhere (site shut down); surviving mirrors kept
  • netlify deploy-preview link → self-hosted MinecraftBat generator: new src/pages route wrapping the static tool page, whose hashed-asset background now uses a local image
  • dead navbar/footer entries removed or https-fixed; 'Not Offical' typo; navbar title unified

Content regression fixed

  • the usercache.json tutorial draft was accidentally published by the comment conversion; restored to hidden

Assets & infra

  • static/ images 16.2MB → 14.4MB (7.5MB hero PNG → 1.7MB JPEG)
  • scaffold remnants removed; onBrokenMarkdownLinks migrated to v3 markdown.hooks form
  • GitHub Actions CI running build as a broken-link gate; README gains local-dev instructions

…lockfile

The repo carried two lockfiles; both pinned every tarball URL to
registry.npmmirror.com, so any non-mirror environment failed to install
(npm >= 12 refuses remote tarballs by default: EALLOWREMOTE).

- Remove yarn.lock (the polluted one)
- Regenerate package-lock.json from registry.npmjs.org (lockfileVersion 3)

Note: the site still does not build with docusaurus 2.0.1 against
modern webpack (ProgressPlugin schema validation rejects webpackbar's
extra option keys); upgrade follows in a separate commit.
Upgrade:
- Docusaurus 2.0.1 -> 3.10.2 (2.x no longer builds against modern webpack:
  ProgressPlugin schema validation rejects webpackbar's option keys)
- react/react-dom 18.3, @mdx-js/react 3, clsx 2, prism-react-renderer 2,
  docusaurus-lunr-search 3.6 (v3-compatible)
- MDX v3 fixes across the site: HTML comments -> {/* */} escapes,
  bare <...> angle brackets wrapped in inline code, <details> block flow
- onBrokenMarkdownLinks migrated to markdown.hooks form

Dead links (all verified dead via HTTP checks):
- mcbbs.net links removed everywhere (site shut down); surviving mirrors kept
- netlify deploy-preview link now points at the self-hosted
  MinecraftBat command generator (new src/pages route wrapping the
  static tool page, whose hashed-asset background now uses a local image)
- dead navbar/footer entries removed or fixed; tagline typo fixed;
  navbar title unified with site title

Content:
- usercache.json tutorial draft restored to hidden (was accidentally
  published by the comment conversion)
- placeholder sections replaced with an explicit 'contributions welcome' note

Assets & infra:
- images recompressed: static/ 16.2MB -> 14.4MB (7.5MB hero PNG alone
  down to 1.7MB as JPEG)
- scaffold remnants removed (markdown-page.md, template comments,
  GH Pages config leftovers)
- GitHub Actions CI running npm ci + build (broken-link gate);
  README gains local development instructions
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