Update dependencies: Docusaurus 3.10, React 19, image-zoom 3

- Bump @docusaurus/* to 3.10 (constraint ^3.9: markdown.hooks requires it)
- Bump React to 19, TypeScript to 5.9, docusaurus-plugin-image-zoom to 3.x
- Relax version constraints to major versions
- Move onBrokenMarkdownLinks to markdown.hooks (deprecated option)
- Require Node.js 20+ (Docusaurus 3.10 requirement)
This commit is contained in:
ErickSkrauch committed 2026-10-28 18:25:46 +01:00
1 parent 9d700ec276
commit b63b9aa606
3 files changed
+18754 -18439

No files matched your search

+128 -123
View File
@@ -5,141 +5,146 @@ import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'Документация Ely.by',
tagline: 'Документация публичных проектов Ely.by',
favicon: 'img/favicon.ico',
title: 'Документация Ely.by',
tagline: 'Документация публичных проектов Ely.by',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://docs.ely.by',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// Set the production url of your site here
url: 'https://docs.ely.by',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'elyby', // Usually your GitHub org/user name.
projectName: 'todo', // Usually your repo name.
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'elyby', // Usually your GitHub org/user name.
projectName: 'todo', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
onBrokenLinks: 'throw',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'ru',
locales: ['en', 'ru'],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'throw',
},
theme: {
customCss: './src/css/custom.css',
},
blog: false,
} satisfies Preset.Options,
},
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'ru',
locales: ['en', 'ru'],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
theme: {
customCss: './src/css/custom.css',
},
blog: false,
} satisfies Preset.Options,
],
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Документация Ely.by',
logo: {
alt: 'Логотип Ely.by',
src: 'img/logo.svg',
},
items: [
{
type: 'localeDropdown',
position: 'right',
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Документация Ely.by',
logo: {
alt: 'Логотип Ely.by',
src: 'img/logo.svg',
},
items: [
{
type: 'localeDropdown',
position: 'right',
},
],
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Проекты',
items: [
{
label: 'Система скинов Ely.by',
to: 'https://ely.by',
},
{
label: 'Аккаунты Ely.by',
to: 'https://account.ely.by',
},
],
footer: {
style: 'dark',
links: [
{
title: 'Проекты',
items: [
{
label: 'Система скинов Ely.by',
to: 'https://ely.by',
},
{
label: 'Аккаунты Ely.by',
to: 'https://account.ely.by',
},
],
},
{
title: 'Сообщество',
items: [
{
label: 'X (Twitter)',
href: 'https://x.com/erickskrauch',
},
{
label: 'YouTube',
href: 'https://www.youtube.com/c/ElyByOfficial',
},
{
label: 'VK',
href: 'https://vk.com/elyby',
},
{
label: 'Discord',
// todo
href: 'https://ely.by',
},
{
label: 'GitHub',
href: 'https://github.com/elyby',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Ely.by. Built with Docusaurus.`,
},
{
title: 'Сообщество',
items: [
{
label: 'X (Twitter)',
href: 'https://x.com/erickskrauch',
},
{
label: 'YouTube',
href: 'https://www.youtube.com/c/ElyByOfficial',
},
{
label: 'VK',
href: 'https://vk.com/elyby',
},
{
label: 'Discord',
// todo
href: 'https://ely.by',
},
{
label: 'GitHub',
href: 'https://github.com/elyby',
},
],
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
'bash',
'properties',
'json',
'batch',
'uri',
'markup',
'php',
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Ely.by. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
'bash',
'properties',
'json',
'batch',
'uri',
'markup',
'php',
],
},
zoom: {
selector: '.markdown :not(em) > img',
config: {
container: {
top: 72,
left: 0,
right: 0,
bottom: 16,
zoom: {
selector: '.markdown :not(em) > img',
config: {
container: {
top: 72,
left: 0,
right: 0,
bottom: 16,
},
}
},
}
},
} satisfies Preset.ThemeConfig,
} satisfies Preset.ThemeConfig,
plugins: [
'docusaurus-plugin-image-zoom'
]
plugins: [
'docusaurus-plugin-image-zoom'
]
};
export default config;
+18580 -18270
View File
File diff suppressed because it is too large. Load diff
+46 -46
View File
@@ -1,48 +1,48 @@
{
"name": "elyby-docusaurus",
"version": "0.0.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "3.6.3",
"@docusaurus/preset-classic": "3.6.3",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-plugin-image-zoom": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.6.3",
"@docusaurus/tsconfig": "3.6.3",
"@docusaurus/types": "3.6.3",
"typescript": "~5.6.2"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 3 chrome version",
"last 3 firefox version",
"last 5 safari version"
]
},
"engines": {
"node": ">=18.0"
}
"name": "elyby-docusaurus",
"version": "0.0.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "^3.9",
"@docusaurus/preset-classic": "^3.9",
"@mdx-js/react": "^3",
"clsx": "^2",
"docusaurus-plugin-image-zoom": "^3",
"prism-react-renderer": "^2",
"react": "^19",
"react-dom": "^19"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.9",
"@docusaurus/tsconfig": "^3.9",
"@docusaurus/types": "^3.9",
"typescript": "^5"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 3 chrome version",
"last 3 firefox version",
"last 5 safari version"
]
},
"engines": {
"node": ">=20.0"
}
}