Skip to content

Commit

Permalink
chore: update docusaurus to 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
htessaro committed Jun 20, 2024
1 parent 702bc71 commit 44177dc
Show file tree
Hide file tree
Showing 4 changed files with 4,244 additions and 3,064 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To set up the event rate condition, you need to define the following configurati

- **Variation**: The specific variation observed by the target user. The event rate will be calculated using the events called using this variation.
- **Goal**: The goal used to calculate the event rate. The counter of goal events will increase each time the goal is reached.
- **Condition**: The comparison operator used to assess the event rate. The available options are greater than or equal to (>=) or smaller than or equal to (<=).
- **Condition**: The comparison operator used to assess the event rate. The available options are greater than or equal to (`>=`) or smaller than or equal to (`<=`).
- **Percentage**: The threshold for the event rate.
- **Minimum Count**: Minimum number of occurrences required for the condition to be enabled. This option ensures that the event rate is not triggered before a certain number of events happen, avoiding a false positive.

Expand Down
10 changes: 4 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @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 {themes} = require('prism-react-renderer');
const lightTheme = themes.github;
const darkTheme = themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -138,10 +139,7 @@ const config = {
],
},
prism: {
// theme: darkCodeTheme,
theme: lightCodeTheme,
// theme: require("prism-react-renderer/themes/vsDark"),
// theme: require("prism-react-renderer/themes/shadesOfPurple"),
theme: lightTheme,
additionalLanguages: [
'groovy',
'kotlin',
Expand Down
27 changes: 16 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@cmfcmf/docusaurus-search-local": "^1.1.0",
"@docusaurus/core": "^2.4.1",
"@docusaurus/plugin-google-gtag": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1",
"docusaurus-plugin-image-zoom": "^1.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"@cmfcmf/docusaurus-search-local": "^1.2.0",
"@docusaurus/plugin-google-gtag": "^3.4.0",
"@docusaurus/core": "^3.0.1",
"@docusaurus/preset-classic": "^3.0.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"docusaurus-plugin-image-zoom": "^2.0.0",
"prism-react-renderer": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.4.1"
"@docusaurus/module-type-aliases": "^3.0.1",
"@docusaurus/types": "^3.0.1"
},
"browserslist": {
"production": [
Expand All @@ -38,5 +40,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"engines": {
"node": ">=18.0"
}
}
}
Loading

0 comments on commit 44177dc

Please sign in to comment.