Skip to content

Commit 2332145

Browse files
authored
Merge pull request #79 from visto9259/2.2.x
Upgraded to Docusaurus 3.9 and to React 19. Fixed Discord link
2 parents e5377ce + d6e4b84 commit 2332145

File tree

4 files changed

+1306
-1238
lines changed

4 files changed

+1306
-1238
lines changed

.github/workflows/deploy-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defaults:
88
on:
99
push:
1010
branches:
11-
- 'main'
11+
- main
1212
paths:
1313
- 'docs/**'
1414
workflow_dispatch:

docs/docusaurus.config.js

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ const config = {
2929
onBrokenLinks: 'throw',
3030
onBrokenMarkdownLinks: 'warn',
3131

32+
markdown: {
33+
hooks: {onBrokenMarkdownLinks: 'warn'},
34+
},
35+
3236
// Even if you don't use internationalization, you can use this field to set
3337
// useful metadata like html lang. For example, if your site is Chinese, you
3438
// may want to replace "en" with "zh-Hans".
@@ -52,7 +56,7 @@ const config = {
5256
lastVersion: '2.0',
5357
versions: {
5458
"2.0": {
55-
label: '2.0',
59+
label: '2.x',
5660
path: '2.0',
5761
}
5862
}
@@ -63,6 +67,7 @@ const config = {
6367
// Remove this to remove the "edit this page" links.
6468
editUrl:
6569
'https://github.com/lm-commons/lmcadmin/tree/master/docs/',
70+
onUntruncatedBlogPosts: 'ignore',
6671
},
6772
theme: {
6873
customCss: './src/css/custom.css',
@@ -110,24 +115,12 @@ themeConfig:
110115
footer: {
111116
style: 'dark',
112117
links: [
113-
/*
114-
{
115-
title: 'Docs',
116-
items: [
117-
{
118-
label: 'Documentation',
119-
to: '/docs/Introduction',
120-
},
121-
],
122-
},
123-
124-
*/
125118
{
126119
title: 'Community',
127120
items: [
128121
{
129-
label: 'Slack',
130-
href: 'https://join.slack.com/t/lm-commons/shared_invite/zt-2gankt2wj-FTS45hp1W~JEj1tWvDsUHQ',
122+
label: 'Discord',
123+
href: 'https://discord.gg/nAAu7AhR',
131124
},
132125
],
133126
},

docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
"write-heading-ids": "docusaurus write-heading-ids"
1515
},
1616
"dependencies": {
17-
"@docusaurus/core": "^3.7.0",
18-
"@docusaurus/preset-classic": "^3.7.0",
17+
"@docusaurus/core": "^3.9.2",
18+
"@docusaurus/preset-classic": "^3.9.2",
1919
"@mdx-js/react": "^3.0.0",
2020
"clsx": "^2.0.0",
2121
"prism-react-renderer": "^2.3.0",
22-
"react": "^18.0.0",
23-
"react-dom": "^18.0.0"
22+
"react": "^19.0.0",
23+
"react-dom": "^19.0.0"
2424
},
2525
"devDependencies": {
26-
"@docusaurus/module-type-aliases": "^3.7.0",
27-
"@docusaurus/types": "^3.7.0"
26+
"@docusaurus/module-type-aliases": "^3.9.2",
27+
"@docusaurus/types": "^3.9.2"
2828
},
2929
"browserslist": {
3030
"production": [

0 commit comments

Comments
 (0)