Skip to content

Conversation

@polvallverdu
Copy link

@polvallverdu polvallverdu commented Oct 27, 2025

This PR contains:

  • IMPROVED DOCS

Describe the problem you have without this PR

I've switch from prismjs to shiki, using rehype to compile the codeblocks at build-time, not on the client.

Only detail is that the dracula theme changes from prismjs to shiki, here are some screenshots:

Currently, with prismjs
Screenshot 2025-10-27 at 22 24 06

With shiki
Screenshot 2025-10-27 at 22 23 37

I'm exploring rxdb for a personal sideproject, and I'd like to test some of the premium features to make it more performant, as per the premium task list.

Todos

  • Tests
  • Changelog

@polvallverdu
Copy link
Author

I use prettier on save, and it formatted the docusaurus config file quite a lot. I couldn't find a formatter on the project to use.

@pubkey
Copy link
Owner

pubkey commented Oct 30, 2025

Hi @polvallverdu
This PR adds shiki but does not remove the prismjs from the main javascript bundle which was the main reason to switch from something else. Please check the build main.js file by running npm run docs:build it should not contain prismjs afterwards.

Changing the theme and style is no problem. I think it looks ok to me.

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