Skip to content

Commit

Permalink
Merge pull request #42 from PastVu/30
Browse files Browse the repository at this point in the history
Update docusaurus to 3.0.0
  • Loading branch information
kabalin authored Nov 27, 2023
2 parents c760b27 + dfe7186 commit 04c7c22
Show file tree
Hide file tree
Showing 7 changed files with 4,426 additions and 3,350 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.14.0
18
2 changes: 1 addition & 1 deletion docs/contributing/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ In order to make document appear in the page sidebar, the file should be added a
cp docs/dev/setup.md i18n/ru/docusaurus-plugin-content-docs/current/dev/setup.md
```

:::caution
:::warning
We only copy .md and .mdx files, as React pages are translated through JSON translation files.
:::

Expand Down
4 changes: 2 additions & 2 deletions docs/dev/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ Parameter | Mandatory | Type | Default | Description |
--- | --- | --- | --- | --- |
geo | ✓ | array [lat, lon] | coordinates |
except| | int | | exclude `cid` photo from the output |
distance| | int | 10000 | maximum distance in meters (<= 1000km) |
distance| | int | 10000 | maximum distance in meters (\<= 1000km) |
year | int | | lower limit of the year of the photo
year2 | int | | upper limit of the year of the picture |
type | string | `photo` or `painting` |
limit | int | 30 | number of photos requested (<= 30) |
limit | int | 30 | number of photos requested (\<= 30) |
skip | int | | skip the specified number of photos from the beginning of the search result (for page output) |

**Query example:**
Expand Down
5 changes: 3 additions & 2 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 lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down
4 changes: 2 additions & 2 deletions i18n/ru/docusaurus-plugin-content-docs/current/dev/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ cid | ✓ | int | уникальный номер снимка |
--- | --- | --- | --- | --- |
geo | ✓ | array [lat, lon] | | координаты |
except| | int | | исключить `сid` фото из выдачи |
distance| | int | 10000 | максимальное расстояние в метрах (<= 1000км) |
distance| | int | 10000 | максимальное расстояние в метрах (\<= 1000км) |
year | | int | | нижняя граница года снимка |
year2 | | int | | верхняя граница года снимка |
type | | string | `photo` | `photo` или `painting` |
limit | | int | 30 | количество запрашиваемых фото (<= 30) |
limit | | int | 30 | количество запрашиваемых фото (\<= 30) |
skip | | int | | пропустить указанное количество фото от начала результата поиска (для страничного вывода) |

**Пример запроса:**
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@
"lint:spelling": "cspell \"**\" --no-progress"
},
"dependencies": {
"@docusaurus/core": "2.4.1",
"@docusaurus/plugin-client-redirects": "2.4.1",
"@docusaurus/plugin-google-gtag": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@mdx-js/react": "^1.6.22",
"@docusaurus/core": "3.0.0",
"@docusaurus/plugin-client-redirects": "3.0.0",
"@docusaurus/plugin-google-gtag": "3.0.0",
"@docusaurus/preset-classic": "3.0.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"docusaurus-plugin-sass": "^0.2.3",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"docusaurus-plugin-sass": "^0.2.5",
"prism-react-renderer": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.55.0"
},
"devDependencies": {
"@cspell/dict-ru_ru": "^2.0.5",
"@docusaurus/module-type-aliases": "^2.1.0",
"@tsconfig/docusaurus": "^1.0.5",
"@docusaurus/module-type-aliases": "^3.0.0",
"@docusaurus/tsconfig": "3.0.0",
"cspell": "^6.29.0",
"typescript": "^4.7.4"
"typescript": "^5.2.2"
},
"browserslist": {
"production": [
Expand All @@ -49,6 +49,6 @@
]
},
"engines": {
"node": ">=16.14"
"node": ">=18.0"
}
}
Loading

0 comments on commit 04c7c22

Please sign in to comment.