|
1 | | -import {themes as prismThemes} from 'prism-react-renderer'; |
2 | | -import type {Config} from '@docusaurus/types'; |
3 | | -import type * as Preset from '@docusaurus/preset-classic'; |
| 1 | +import { themes as prismThemes } from "prism-react-renderer"; |
| 2 | +import type { Config } from "@docusaurus/types"; |
| 3 | +import type * as Preset from "@docusaurus/preset-classic"; |
| 4 | +import tailwindPlugin from "./plugins/tailwind-config.cjs"; |
4 | 5 |
|
5 | 6 | // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) |
6 | 7 |
|
7 | 8 | const config: Config = { |
8 | | - title: 'SpoonOS', |
9 | | - tagline: 'Agentic OS for a Sentient Economy', |
10 | | - favicon: 'img/favicon.ico', |
| 9 | + title: "SpoonOS", |
| 10 | + tagline: "Agentic OS for a Sentient Economy", |
| 11 | + favicon: "img/favicon.ico", |
11 | 12 |
|
12 | 13 | // Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future |
13 | 14 | future: { |
14 | 15 | v4: true, // Improve compatibility with the upcoming Docusaurus v4 |
15 | 16 | }, |
16 | 17 |
|
| 18 | + plugins: [tailwindPlugin], |
| 19 | + |
17 | 20 | // Set the production url of your site here |
18 | | - url: 'https://xspoonai.github.io', |
| 21 | + url: "https://xspoonai.github.io", |
19 | 22 | // Set the /<baseUrl>/ pathname under which your site is served |
20 | 23 | // For GitHub pages deployment, it is often '/<projectName>/' |
21 | | - baseUrl: '/', |
| 24 | + baseUrl: "/", |
22 | 25 | // Avoid GH Pages redirect issues and inconsistent URLs |
23 | 26 | trailingSlash: true, |
24 | 27 |
|
25 | 28 | // GitHub pages deployment config. |
26 | 29 | // If you aren't using GitHub pages, you don't need these. |
27 | | - organizationName: 'XSpoonAi', // Usually your GitHub org/user name. |
28 | | - projectName: 'xspoonai.github.io', // Usually your repo name. |
| 30 | + organizationName: "XSpoonAi", // Usually your GitHub org/user name. |
| 31 | + projectName: "xspoonai.github.io", // Usually your repo name. |
29 | 32 | // Ensure Docusaurus deploy pushes to the branch that GitHub Pages serves |
30 | | - deploymentBranch: 'main', |
| 33 | + deploymentBranch: "main", |
31 | 34 |
|
32 | | - onBrokenLinks: 'warn', |
33 | | - onBrokenMarkdownLinks: 'warn', |
| 35 | + onBrokenLinks: "warn", |
| 36 | + onBrokenMarkdownLinks: "warn", |
34 | 37 |
|
35 | 38 | // Even if you don't use internationalization, you can use this field to set |
36 | 39 | // useful metadata like html lang. For example, if your site is Chinese, you |
37 | 40 | // may want to replace "en" with "zh-Hans". |
38 | 41 | i18n: { |
39 | | - defaultLocale: 'en', |
40 | | - locales: ['en'], |
| 42 | + defaultLocale: "en", |
| 43 | + locales: ["en"], |
41 | 44 | }, |
42 | 45 |
|
43 | 46 | presets: [ |
44 | 47 | [ |
45 | | - 'classic', |
| 48 | + "classic", |
46 | 49 | { |
47 | 50 | docs: { |
48 | | - sidebarPath: './sidebars.ts', |
| 51 | + sidebarPath: "./sidebars.ts", |
49 | 52 | // Please change this to your repo. |
50 | 53 | // Remove this to remove the "edit this page" links. |
51 | | - editUrl: |
52 | | - 'https://github.com/XSpoonAi/spoon-doc/tree/main/', |
| 54 | + editUrl: "https://github.com/XSpoonAi/spoon-doc/tree/main/", |
53 | 55 | }, |
54 | 56 |
|
55 | 57 | theme: { |
56 | | - customCss: './src/css/custom.css', |
| 58 | + customCss: "./src/css/custom.css", |
57 | 59 | }, |
58 | 60 | } satisfies Preset.Options, |
59 | 61 | ], |
60 | 62 | ], |
61 | 63 |
|
62 | 64 | themeConfig: { |
63 | 65 | // Replace with your project's social card |
64 | | - image: 'img/spoonos-social-card.jpg', |
| 66 | + image: "img/spoonos-social-card.jpg", |
65 | 67 | colorMode: { |
66 | | - defaultMode: 'light', |
| 68 | + defaultMode: "light", |
67 | 69 | disableSwitch: false, |
68 | 70 | respectPrefersColorScheme: true, |
69 | 71 | }, |
70 | 72 | navbar: { |
71 | | - title: 'SpoonOS', |
| 73 | + title: "SpoonOS", |
72 | 74 | logo: { |
73 | | - alt: 'SpoonOS Logo', |
74 | | - src: 'img/logo.png', |
| 75 | + alt: "SpoonOS Logo", |
| 76 | + src: "img/logo.png", |
75 | 77 | }, |
76 | 78 | items: [ |
77 | 79 | { |
78 | | - type: 'docSidebar', |
79 | | - sidebarId: 'tutorialSidebar', |
80 | | - position: 'left', |
81 | | - label: 'Documentation', |
| 80 | + type: "docSidebar", |
| 81 | + sidebarId: "tutorialSidebar", |
| 82 | + position: "left", |
| 83 | + label: "Documentation", |
82 | 84 | }, |
83 | 85 |
|
84 | 86 | { |
85 | | - href: 'https://github.com/XSpoonAi/spoon-core', |
86 | | - label: 'GitHub', |
87 | | - position: 'right', |
| 87 | + href: "https://github.com/XSpoonAi/spoon-core", |
| 88 | + label: "GitHub", |
| 89 | + position: "right", |
88 | 90 | }, |
89 | 91 | ], |
90 | 92 | }, |
91 | 93 | footer: { |
92 | | - style: 'dark', |
| 94 | + style: "dark", |
93 | 95 | links: [ |
94 | 96 | { |
95 | | - title: 'Documentation', |
| 97 | + title: "Documentation", |
96 | 98 | items: [ |
97 | 99 | { |
98 | | - label: 'Getting Started', |
99 | | - to: '/docs/intro', |
| 100 | + label: "Getting Started", |
| 101 | + to: "/docs/intro", |
100 | 102 | }, |
101 | 103 | { |
102 | | - label: 'Installation', |
103 | | - to: '/docs/installation', |
| 104 | + label: "Installation", |
| 105 | + to: "/docs/installation", |
104 | 106 | }, |
105 | 107 | { |
106 | | - label: 'Configuration', |
107 | | - to: '/docs/configuration', |
| 108 | + label: "Configuration", |
| 109 | + to: "/docs/configuration", |
108 | 110 | }, |
109 | 111 | ], |
110 | 112 | }, |
111 | 113 | { |
112 | | - title: 'Community', |
| 114 | + title: "Community", |
113 | 115 | items: [ |
114 | 116 | { |
115 | | - label: 'GitHub', |
116 | | - href: 'https://github.com/XSpoonAi/spoon-core', |
| 117 | + label: "GitHub", |
| 118 | + href: "https://github.com/XSpoonAi/spoon-core", |
117 | 119 | }, |
118 | 120 | { |
119 | | - label: 'Discord', |
120 | | - href: 'https://discord.gg/G6y3ZCFK4h', |
| 121 | + label: "Discord", |
| 122 | + href: "https://discord.gg/G6y3ZCFK4h", |
121 | 123 | }, |
122 | 124 | { |
123 | | - label: 'Issues', |
124 | | - href: 'https://github.com/XSpoonAi/spoon-core/issues', |
| 125 | + label: "Issues", |
| 126 | + href: "https://github.com/XSpoonAi/spoon-core/issues", |
125 | 127 | }, |
126 | 128 | ], |
127 | 129 | }, |
128 | 130 | { |
129 | | - title: 'More', |
| 131 | + title: "More", |
130 | 132 | items: [ |
131 | 133 | { |
132 | | - label: 'SpoonOS Landing', |
133 | | - href: 'https://spoonai.io', |
| 134 | + label: "SpoonOS Landing", |
| 135 | + href: "https://spoonai.io", |
134 | 136 | }, |
135 | 137 | { |
136 | | - label: 'Examples', |
137 | | - href: 'https://github.com/XSpoonAi/spoon-core/tree/main/examples', |
| 138 | + label: "Examples", |
| 139 | + href: "https://github.com/XSpoonAi/spoon-core/tree/main/examples", |
138 | 140 | }, |
139 | 141 | ], |
140 | 142 | }, |
|
0 commit comments