Skip to content

Commit

Permalink
website: Upgrade to docusaurus 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Dec 1, 2023
1 parent 4286418 commit c697c36
Show file tree
Hide file tree
Showing 4 changed files with 4,129 additions and 1,875 deletions.
2 changes: 1 addition & 1 deletion website/docs/upgrade_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ In previous versions, as a user of Vest you had to set up your own state-reset m

All of Vest's methods are now typed and make use of generics to enforce correct usage throughout your suite. [Read More on TypeScript support](./typescript_support.md).

## Dropped support for <ES2015
## Dropped support for \<ES2015

Vest 5 uses Javascript Proxies, which were introduced in ES2015. Therefore, Vest 5 no longer supports pre-ES2015 versions of Javascript. If you need to support older browsers, you can still use Vest 4.
10 changes: 6 additions & 4 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require('prism-react-renderer/themes/github');
import { Highlight, themes } from 'prism-react-renderer';

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

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -197,8 +199,8 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} ealush`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: themes.github,
darkTheme: themes.dracula,
},
// announcementBar: {
// id: 'announcementBar-1',
Expand Down
12 changes: 6 additions & 6 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^2.4.1",
"@docusaurus/plugin-google-gtag": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@easyops-cn/docusaurus-search-local": "^0.35.0",
"@mdx-js/react": "^1.6.22",
"@docusaurus/core": "^3.0.1",
"@docusaurus/plugin-google-gtag": "^3.0.1",
"@docusaurus/preset-classic": "^3.0.1",
"@easyops-cn/docusaurus-search-local": "^0.38.1",
"@mdx-js/react": "^3.0.0",
"@svgr/webpack": "^8.1.0",
"clsx": "^2.0.0",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.3.5",
"prism-react-renderer": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"url-loader": "^4.1.1"
Expand Down
Loading

0 comments on commit c697c36

Please sign in to comment.