Skip to content

Commit 61130ef

Browse files
committed
chore: update Docusaurus configuration and dependencies
- Refactored the Docusaurus configuration to utilize the new themes structure from prism-react-renderer. - Updated package.json to the latest versions of Docusaurus and related dependencies for improved performance and security. - Removed deprecated blog files and authors to streamline the documentation structure. - Enhanced the tutorials section by ensuring consistent formatting and content presentation.
1 parent d8e2326 commit 61130ef

File tree

9 files changed

+12326
-76
lines changed

9 files changed

+12326
-76
lines changed

docs/blog/2019-05-28-first-blog-post.md

Lines changed: 0 additions & 7 deletions
This file was deleted.
-93.9 KB
Binary file not shown.

docs/blog/2021-08-26-welcome/index.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/blog/authors.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/docs/tutorials/creating-crud-pages.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,5 +1408,4 @@ By following these patterns, you can quickly scaffold new features while maintai
14081408
- **[Permission Management](/docs/fundamentals/permissions)** - Deep dive into ABP's permission system
14091409
- **[Form Validation](/docs/components/forms)** - Advanced form handling techniques
14101410
- **[Testing Guide](/docs/development/testing)** - Comprehensive testing strategies
1411-
- **[Performance Optimization](/docs/development/performance)** - Advanced optimization techniques
1412-
</rewritten_file>
1411+
- **[Performance Optimization](/docs/development/performance)** - Advanced optimization techniques

docs/docusaurus.config.js

Lines changed: 6 additions & 27 deletions
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 = {
@@ -43,12 +44,7 @@ const config = {
4344
// Remove this to remove the "edit this page" links.
4445
editUrl: 'https://github.com/antosubash/abp-react/tree/main/docs/',
4546
},
46-
blog: {
47-
showReadingTime: true,
48-
// Please change this to your repo.
49-
// Remove this to remove the "edit this page" links.
50-
editUrl: 'https://github.com/antosubash/abp-react/tree/main/docs/',
51-
},
47+
5248
theme: {
5349
customCss: require.resolve('./src/css/custom.css'),
5450
},
@@ -80,21 +76,12 @@ const config = {
8076
position: 'left',
8177
label: 'Documentation',
8278
},
83-
{
84-
to: '/blog',
85-
label: 'Blog',
86-
position: 'left'
87-
},
79+
8880
{
8981
href: 'https://github.com/antosubash/abp-react',
9082
label: 'GitHub',
9183
position: 'right',
92-
},
93-
{
94-
href: 'https://discord.gg/your-server',
95-
label: 'Discord',
96-
position: 'right',
97-
},
84+
}
9885
],
9986
},
10087
footer: {
@@ -124,10 +111,6 @@ const config = {
124111
{
125112
title: 'Community',
126113
items: [
127-
{
128-
label: 'Discord',
129-
href: 'https://discord.gg/your-server',
130-
},
131114
{
132115
label: 'GitHub Discussions',
133116
href: 'https://github.com/antosubash/abp-react/discussions',
@@ -141,10 +124,6 @@ const config = {
141124
{
142125
title: 'More',
143126
items: [
144-
{
145-
label: 'Blog',
146-
to: '/blog',
147-
},
148127
{
149128
label: 'GitHub',
150129
href: 'https://github.com/antosubash/abp-react',

docs/package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@
1515
"typecheck": "tsc"
1616
},
1717
"dependencies": {
18-
"@docusaurus/core": "2.4.0",
19-
"@docusaurus/preset-classic": "2.4.0",
20-
"@mdx-js/react": "^1.6.22",
21-
"clsx": "^1.2.1",
22-
"prism-react-renderer": "^1.3.5",
23-
"react": "^17.0.2",
24-
"react-dom": "^17.0.2"
18+
"@docusaurus/core": "3.8.1",
19+
"@docusaurus/plugin-pwa": "^3.8.1",
20+
"@docusaurus/preset-classic": "3.8.1",
21+
"@mdx-js/react": "^3.1.0",
22+
"clsx": "^2.1.1",
23+
"prism-react-renderer": "^2.4.1",
24+
"react": "^19.1.1",
25+
"react-dom": "^19.1.1"
2526
},
2627
"devDependencies": {
27-
"@docusaurus/module-type-aliases": "2.4.0",
28-
"@tsconfig/docusaurus": "^1.0.5",
29-
"typescript": "^4.7.4"
28+
"@docusaurus/module-type-aliases": "3.8.1",
29+
"@tsconfig/docusaurus": "^2.0.3",
30+
"typescript": "^5.9.2"
3031
},
3132
"browserslist": {
3233
"production": [

0 commit comments

Comments
 (0)