Skip to content

Commit 9debf57

Browse files
chore: upgrade docusaurus to 3.8 (#335)
* chore: upgrade docusaurus to 3.8 * chore: add the missing fonts
1 parent e0ad5ca commit 9debf57

File tree

15 files changed

+3094
-3054
lines changed

15 files changed

+3094
-3054
lines changed

babel.config.js

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

docusaurus.config.ts

Lines changed: 55 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,27 @@ import { themes as prismThemes } from "prism-react-renderer";
22
import type { Config } from "@docusaurus/types";
33
import type * as Preset from "@docusaurus/preset-classic";
44

5+
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
6+
57
const config: Config = {
68
title: "Plane",
79
tagline: "An easy, flexible project management software",
810
favicon: "https://media.docs.plane.so/favicon-32x32.png",
911
trailingSlash: false,
1012
// Set the production url of your site here
1113
url: "https://docs.plane.so",
14+
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
15+
future: {
16+
v4: true, // Improve compatibility with the upcoming Docusaurus v4
17+
},
1218
// Set the /<baseUrl>/ pathname under which your site is served
1319
// For GitHub pages deployment, it is often '/<projectName>/'
1420
baseUrl: "/",
1521
// GitHub pages deployment config.
1622
// If you aren't using GitHub pages, you don't need these.
1723
organizationName: "makeplane", // Usually your GitHub org/user name.
1824
projectName: "docs", // Usually your repo name.
19-
25+
// Broken links
2026
onBrokenLinks: "throw",
2127
onBrokenMarkdownLinks: "warn",
2228
onBrokenAnchors: "warn",
@@ -38,11 +44,10 @@ const config: Config = {
3844
routeBasePath: "/",
3945
sidebarPath: "./sidebars.ts",
4046
include: ["**/*.md", "**/*.mdx"],
41-
//sidebarCollapsible: false,
42-
// Please change this to your repo.
43-
// Remove this to remove the "edit this page" links.
44-
//editUrl:
45-
// 'https://github.com/makeplane/docs/edit/preview/',
47+
},
48+
blog: false,
49+
theme: {
50+
customCss: "./src/css/custom.css",
4651
},
4752
sitemap: {
4853
lastmod: "date",
@@ -51,10 +56,6 @@ const config: Config = {
5156
ignorePatterns: ["/tags/**"],
5257
filename: "sitemap.xml",
5358
},
54-
blog: false,
55-
theme: {
56-
customCss: "./src/css/custom.css",
57-
},
5859
gtag: {
5960
trackingID: "G-G578SD4VZD",
6061
anonymizeIP: true,
@@ -63,43 +64,14 @@ const config: Config = {
6364
],
6465
],
6566

66-
stylesheets: [
67-
{
68-
href: "https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=National+Park:[email protected]&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap",
69-
type: "text/css",
70-
},
71-
],
72-
73-
scripts: [
74-
{
75-
src: "https://plausible.io/js/script.js",
76-
defer: true,
77-
"data-domain": "docs.plane.so",
78-
},
79-
{
80-
src: "https://cdn.cr-relay.com/v1/site/b1fcbcbd-67f6-4736-940f-033731801664/signals.js",
81-
async: true,
82-
},
83-
],
84-
85-
plugins: [
86-
[
87-
"posthog-docusaurus",
88-
{
89-
apiKey: "phc_HskAKGRy7x0BEoWfyeHzYWWzcMmKG9DCail7ot7WQkA",
90-
appUrl: "https://us.i.posthog.com", // optional
91-
enableInDevelopment: false, // optional
92-
},
93-
],
94-
[
95-
"@docusaurus/plugin-google-tag-manager",
96-
{
97-
containerId: "G-G578SD4VZD",
98-
},
99-
],
100-
],
101-
10267
themeConfig: {
68+
image: "https://media.docs.plane.so/logo.svg",
69+
docs: {
70+
sidebar: {
71+
hideable: false,
72+
autoCollapseCategories: false,
73+
},
74+
},
10375
metadata: [
10476
{
10577
property: "og:image",
@@ -119,14 +91,6 @@ const config: Config = {
11991
disableSwitch: false,
12092
respectPrefersColorScheme: false,
12193
},
122-
docs: {
123-
sidebar: {
124-
hideable: false,
125-
autoCollapseCategories: false,
126-
},
127-
},
128-
// Replace with your project's social card
129-
image: "https://media.docs.plane.so/logo.svg",
13094
algolia: {
13195
appId: "AXICJJC8RP",
13296
apiKey: "23df4157dee1d9a8d435cadd6cae3f26",
@@ -163,56 +127,48 @@ const config: Config = {
163127
},
164128
],
165129
},
166-
// footer: {
167-
// style: 'dark',
168-
// links: [
169-
// {
170-
// title: 'Docs',
171-
// items: [
172-
// {
173-
// label: 'Tutorial',
174-
// to: '/docs/intro',
175-
// },
176-
// ],
177-
// },
178-
// {
179-
// title: 'Community',
180-
// items: [
181-
// {
182-
// label: 'Stack Overflow',
183-
// href: 'https://stackoverflow.com/questions/tagged/docusaurus',
184-
// },
185-
// {
186-
// label: 'Discord',
187-
// href: 'https://discordapp.com/invite/docusaurus',
188-
// },
189-
// {
190-
// label: 'Twitter',
191-
// href: 'https://twitter.com/docusaurus',
192-
// },
193-
// ],
194-
// },
195-
// {
196-
// title: 'More',
197-
// items: [
198-
// {
199-
// label: 'Blog',
200-
// to: '/blog',
201-
// },
202-
// {
203-
// label: 'GitHub',
204-
// href: 'https://github.com/facebook/docusaurus',
205-
// },
206-
// ],
207-
// },
208-
// ],
209-
// copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
210-
// },
130+
footer: {},
211131
prism: {
212132
theme: prismThemes.github,
213133
darkTheme: prismThemes.dracula,
214134
},
215135
} satisfies Preset.ThemeConfig,
136+
137+
stylesheets: [
138+
{
139+
href: "https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=National+Park:[email protected]&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap",
140+
type: "text/css",
141+
},
142+
],
143+
144+
scripts: [
145+
{
146+
src: "https://plausible.io/js/script.js",
147+
defer: true,
148+
"data-domain": "docs.plane.so",
149+
},
150+
{
151+
src: "https://cdn.cr-relay.com/v1/site/b1fcbcbd-67f6-4736-940f-033731801664/signals.js",
152+
async: true,
153+
},
154+
],
155+
156+
plugins: [
157+
[
158+
"posthog-docusaurus",
159+
{
160+
apiKey: "phc_HskAKGRy7x0BEoWfyeHzYWWzcMmKG9DCail7ot7WQkA",
161+
appUrl: "https://us.i.posthog.com", // optional
162+
enableInDevelopment: false, // optional
163+
},
164+
],
165+
[
166+
"@docusaurus/plugin-google-tag-manager",
167+
{
168+
containerId: "G-G578SD4VZD",
169+
},
170+
],
171+
],
216172
};
217173

218174
export default config;

package.json

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docs",
3-
"version": "1.0.0",
3+
"version": "3.0.0",
44
"private": true,
55
"author": "Plane",
66
"license": "MIT",
@@ -23,32 +23,22 @@
2323
"format": "prettier --write ."
2424
},
2525
"dependencies": {
26-
"@docusaurus/core": "3.5.2",
27-
"@docusaurus/plugin-google-tag-manager": "3.5.2",
28-
"@docusaurus/preset-classic": "3.5.2",
26+
"@docusaurus/core": "3.8.1",
27+
"@docusaurus/preset-classic": "3.8.1",
2928
"@mdx-js/react": "^3.0.0",
3029
"clsx": "^2.0.0",
3130
"posthog-docusaurus": "^2.0.4",
32-
"prism-react-renderer": "2.3.0",
33-
"react": "18.3.1",
34-
"react-dom": "18.3.1",
35-
"react-icons": "5.5.0"
31+
"prism-react-renderer": "^2.3.0",
32+
"react": "^19.0.0",
33+
"react-dom": "^19.0.0",
34+
"react-icons": "^5.5.0"
3635
},
3736
"devDependencies": {
38-
"@docusaurus/module-type-aliases": "3.5.2",
39-
"@docusaurus/tsconfig": "3.5.2",
40-
"@docusaurus/types": "3.5.2",
41-
"prettier": "3.6.2",
42-
"typescript": "5.8.3"
43-
},
44-
"resolutions": {
45-
"path-to-regexp": "3.3.0",
46-
"@babel/helpers": "7.26.10",
47-
"@babel/runtime": "7.26.10",
48-
"@babel/runtime-corejs3": "7.26.10",
49-
"brace-expansion": "1.1.12",
50-
"on-headers": "1.1.0",
51-
"webpack-dev-server": "5.2.1"
37+
"@docusaurus/module-type-aliases": "3.8.1",
38+
"@docusaurus/tsconfig": "3.8.1",
39+
"@docusaurus/types": "3.8.1",
40+
"prettier": "^3.6.2",
41+
"typescript": "~5.6.2"
5242
},
5343
"browserslist": {
5444
"production": [

sidebars.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
22

3-
/**
4-
* Creating a sidebar enables you to:
5-
- create an ordered group of docs
6-
- render a sidebar for each doc of that group
7-
- provide next/previous navigation
8-
9-
The sidebars can be generated from the filesystem, or explicitly defined here.
10-
11-
Create as many sidebars as you want.
12-
*/
133
const sidebars: SidebarsConfig = {
14-
// By default, Docusaurus generates a sidebar from the docs folder structure
15-
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
16-
17-
// But you can create a sidebar manually
18-
194
tutorialSidebar: [
205
{
216
type: "category",
@@ -178,4 +163,5 @@ const sidebars: SidebarsConfig = {
178163
},
179164
],
180165
};
166+
181167
export default sidebars;

src/components/HomepageFeatures/index.tsx

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

src/components/HomepageFeatures/styles.module.css

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from "./Card";
22
export * from "./CardGroup";
3+
export * from "./Tags";

0 commit comments

Comments
 (0)