Skip to content

fix(docs): use the prism-react-renderer 2.x themes API - #364

Merged
glennko merged 1 commit into
mainfrom
fix/docs-prism-react-renderer-2
Sep 12, 2026
Merged

glennko merged 1 commit into
mainfrom
fix/docs-prism-react-renderer-2

Conversation

@glennko

@glennko glennko commented Sep 12, 2026

Copy link
Copy Markdown
Member

The weekly dependency bump (#363) moved prism-react-renderer from 1.x to 2.x, which dropped the per-theme entry points. docusaurus.config.js still required prism-react-renderer/themes/github and .../dracula, so the docs build fails on main with MODULE_NOT_FOUND. This imports the themes export instead, as Docusaurus 3 does.

Verified locally: npm ci && npm run build in docs/ succeeds.

The weekly dependency bump (#363) moved prism-react-renderer from 1.x
to 2.x, which dropped the per-theme entry points. docusaurus.config.js
still required `prism-react-renderer/themes/github` and `.../dracula`,
so the docs build failed on main with MODULE_NOT_FOUND. Import the
`themes` export instead, as Docusaurus 3 does.

Verified locally: `npm ci && npm run build` in docs/ succeeds.
@glennko
glennko merged commit d045241 into main Sep 12, 2026
5 checks passed
@glennko
glennko deleted the fix/docs-prism-react-renderer-2 branch September 12, 2026 23:50
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