Skip to content

Commit

Permalink
docs: update docusaurus and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
titivermeesch committed May 15, 2024
1 parent fef383a commit 4b53eaf
Show file tree
Hide file tree
Showing 4 changed files with 2,468 additions and 1,879 deletions.
10 changes: 1 addition & 9 deletions docs/docs/extensions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Once the jar file is in that folder, you should see the extension in different m
Here is a list of extensions that can be installed. Official extensions are made by the team behind CommandTimer, while
community extensions, as the name says, are made by the community.

### Oficial extensions
### Official extensions

- [Time Extension](https://www.spigotmc.org/resources/time-conditions-commandtimer-extension.105591/)
- [Player Extension](https://www.spigotmc.org/resources/player-conditions-commandtimer-extension.97186/)
Expand Down Expand Up @@ -79,11 +79,3 @@ All these types are the native Java types, except `ConditionCompare`, which is u
values. This could be EQUAL, LESS_THEN, BIGGER_OR_EQUAL_THEN,... The different choices are available on the class
itself. A good example of this is
available [here](https://github.com/titivermeesch/CommandTimer_PlayerConditions/blob/master/src/main/java/me/playbosswar/cmtplayerconditions/conditions/PlayerTimeInWorldCondition.java)

### Examples

A few examples can be found here:

- <https://github.com/titivermeesch/CommandTimer_TimeConditions>
- <https://github.com/titivermeesch/CommandTimer_GriefDefender>
- <https://github.com/titivermeesch/CommandTimer_PlayerConditions>
4 changes: 2 additions & 2 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;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down
16 changes: 8 additions & 8 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
},
"dependencies": {
"@docusaurus/core": "3.3.2",
"@docusaurus/preset-classic": "2.4.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"@docusaurus/preset-classic": "3.3.2",
"@mdx-js/react": "3.0.1",
"clsx": "2.1.1",
"prism-react-renderer": "2.3.1",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.4.0"
"@docusaurus/module-type-aliases": "3.3.2"
},
"browserslist": {
"production": [
Expand All @@ -38,6 +38,6 @@
]
},
"engines": {
"node": ">=16.14"
"node": ">=20"
}
}
Loading

0 comments on commit 4b53eaf

Please sign in to comment.