@@ -2,21 +2,27 @@ import { themes as prismThemes } from "prism-react-renderer";
22import type { Config } from "@docusaurus/types" ;
33import 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+
57const 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
218174export default config ;
0 commit comments