Skip to content

Commit dfe7186

Browse files
committed
Update docusaurus to 3.0.0
1 parent c760b27 commit dfe7186

File tree

7 files changed

+4426
-3350
lines changed

7 files changed

+4426
-3350
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.14.0
1+
18

docs/contributing/docs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ In order to make document appear in the page sidebar, the file should be added a
7272
cp docs/dev/setup.md i18n/ru/docusaurus-plugin-content-docs/current/dev/setup.md
7373
```
7474

75-
:::caution
75+
:::warning
7676
We only copy .md and .mdx files, as React pages are translated through JSON translation files.
7777
:::
7878

docs/dev/api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ Parameter | Mandatory | Type | Default | Description |
4949
--- | --- | --- | --- | --- |
5050
geo | ✓ | array [lat, lon] | coordinates |
5151
except| | int | | exclude `cid` photo from the output |
52-
distance| | int | 10000 | maximum distance in meters (<= 1000km) |
52+
distance| | int | 10000 | maximum distance in meters (\<= 1000km) |
5353
year | int | | lower limit of the year of the photo
5454
year2 | int | | upper limit of the year of the picture |
5555
type | string | `photo` or `painting` |
56-
limit | int | 30 | number of photos requested (<= 30) |
56+
limit | int | 30 | number of photos requested (\<= 30) |
5757
skip | int | | skip the specified number of photos from the beginning of the search result (for page output) |
5858

5959
**Query example:**

docusaurus.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer/themes/github');
5-
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
4+
const {themes} = require('prism-react-renderer');
5+
const lightCodeTheme = themes.github;
6+
const darkCodeTheme = themes.dracula;
67

78
/** @type {import('@docusaurus/types').Config} */
89
const config = {

i18n/ru/docusaurus-plugin-content-docs/current/dev/api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ cid | ✓ | int | уникальный номер снимка |
4949
--- | --- | --- | --- | --- |
5050
geo | ✓ | array [lat, lon] | | координаты |
5151
except| | int | | исключить `сid` фото из выдачи |
52-
distance| | int | 10000 | максимальное расстояние в метрах (<= 1000км) |
52+
distance| | int | 10000 | максимальное расстояние в метрах (\<= 1000км) |
5353
year | | int | | нижняя граница года снимка |
5454
year2 | | int | | верхняя граница года снимка |
5555
type | | string | `photo` | `photo` или `painting` |
56-
limit | | int | 30 | количество запрашиваемых фото (<= 30) |
56+
limit | | int | 30 | количество запрашиваемых фото (\<= 30) |
5757
skip | | int | | пропустить указанное количество фото от начала результата поиска (для страничного вывода) |
5858

5959
**Пример запроса:**

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@
1717
"lint:spelling": "cspell \"**\" --no-progress"
1818
},
1919
"dependencies": {
20-
"@docusaurus/core": "2.4.1",
21-
"@docusaurus/plugin-client-redirects": "2.4.1",
22-
"@docusaurus/plugin-google-gtag": "2.4.1",
23-
"@docusaurus/preset-classic": "2.4.1",
24-
"@mdx-js/react": "^1.6.22",
20+
"@docusaurus/core": "3.0.0",
21+
"@docusaurus/plugin-client-redirects": "3.0.0",
22+
"@docusaurus/plugin-google-gtag": "3.0.0",
23+
"@docusaurus/preset-classic": "3.0.0",
24+
"@mdx-js/react": "^3.0.0",
2525
"clsx": "^1.2.1",
26-
"docusaurus-plugin-sass": "^0.2.3",
27-
"prism-react-renderer": "^1.3.5",
28-
"react": "^17.0.2",
29-
"react-dom": "^17.0.2",
26+
"docusaurus-plugin-sass": "^0.2.5",
27+
"prism-react-renderer": "^2.1.0",
28+
"react": "^18.2.0",
29+
"react-dom": "^18.2.0",
3030
"sass": "^1.55.0"
3131
},
3232
"devDependencies": {
3333
"@cspell/dict-ru_ru": "^2.0.5",
34-
"@docusaurus/module-type-aliases": "^2.1.0",
35-
"@tsconfig/docusaurus": "^1.0.5",
34+
"@docusaurus/module-type-aliases": "^3.0.0",
35+
"@docusaurus/tsconfig": "3.0.0",
3636
"cspell": "^6.29.0",
37-
"typescript": "^4.7.4"
37+
"typescript": "^5.2.2"
3838
},
3939
"browserslist": {
4040
"production": [
@@ -49,6 +49,6 @@
4949
]
5050
},
5151
"engines": {
52-
"node": ">=16.14"
52+
"node": ">=18.0"
5353
}
5454
}

0 commit comments

Comments
 (0)