Skip to content

Commit

Permalink
chore(docs): upgrade to Docusaurus v3
Browse files Browse the repository at this point in the history
Main breaking change is MDX parsing, which trips up on unescaped `<` in the generated docs, so we have to adjust the generator logic.
  • Loading branch information
shadaj committed Nov 8, 2024
1 parent dcd48fc commit 3691eee
Show file tree
Hide file tree
Showing 5 changed files with 7,572 additions and 4,918 deletions.
6 changes: 3 additions & 3 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require('prism-react-renderer').themes.github;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;

const math = require('remark-math');
const katex = require('rehype-katex');
Expand Down Expand Up @@ -210,7 +210,7 @@ const config = {
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['rust'],
additionalLanguages: ['rust', 'bash'],
magicComments: [
{
className: 'theme-code-block-highlighted-line',
Expand Down
Loading

0 comments on commit 3691eee

Please sign in to comment.