cli + tui to publish to leaflet (wip) & manage tasks, notes & watch/read lists 馃崈
charm
leaflet
readability
golang
1import {themes as prismThemes} from 'prism-react-renderer';
2import type {Config} from '@docusaurus/types';
3import type * as Preset from '@docusaurus/preset-classic';
4
5// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
6
7const config: Config = {
8 title: 'My Site',
9 tagline: 'Dinosaurs are cool',
10 favicon: 'img/favicon.ico',
11
12 // Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
13 future: {
14 v4: true, // Improve compatibility with the upcoming Docusaurus v4
15 },
16
17 // Set the production url of your site here
18 url: 'https://your-docusaurus-site.example.com',
19 // Set the /<baseUrl>/ pathname under which your site is served
20 // For GitHub pages deployment, it is often '/<projectName>/'
21 baseUrl: '/',
22
23 // GitHub pages deployment config.
24 // If you aren't using GitHub pages, you don't need these.
25 organizationName: 'facebook', // Usually your GitHub org/user name.
26 projectName: 'docusaurus', // Usually your repo name.
27
28 onBrokenLinks: 'throw',
29
30 // Even if you don't use internationalization, you can use this field to set
31 // useful metadata like html lang. For example, if your site is Chinese, you
32 // may want to replace "en" with "zh-Hans".
33 i18n: {
34 defaultLocale: 'en',
35 locales: ['en'],
36 },
37
38 presets: [
39 [
40 'classic',
41 {
42 docs: {
43 sidebarPath: './sidebars.ts',
44 // Please change this to your repo.
45 // Remove this to remove the "edit this page" links.
46 editUrl:
47 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
48 },
49 blog: {
50 showReadingTime: true,
51 feedOptions: {
52 type: ['rss', 'atom'],
53 xslt: true,
54 },
55 // Please change this to your repo.
56 // Remove this to remove the "edit this page" links.
57 editUrl:
58 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
59 // Useful options to enforce blogging best practices
60 onInlineTags: 'warn',
61 onInlineAuthors: 'warn',
62 onUntruncatedBlogPosts: 'warn',
63 },
64 theme: {
65 customCss: './src/css/custom.css',
66 },
67 } satisfies Preset.Options,
68 ],
69 ],
70
71 themeConfig: {
72 // Replace with your project's social card
73 image: 'img/docusaurus-social-card.jpg',
74 colorMode: {
75 respectPrefersColorScheme: true,
76 },
77 navbar: {
78 title: 'My Site',
79 logo: {
80 alt: 'My Site Logo',
81 src: 'img/logo.svg',
82 },
83 items: [
84 {
85 type: 'docSidebar',
86 sidebarId: 'tutorialSidebar',
87 position: 'left',
88 label: 'Tutorial',
89 },
90 {to: '/blog', label: 'Blog', position: 'left'},
91 {
92 href: 'https://github.com/facebook/docusaurus',
93 label: 'GitHub',
94 position: 'right',
95 },
96 ],
97 },
98 footer: {
99 style: 'dark',
100 links: [
101 {
102 title: 'Docs',
103 items: [
104 {
105 label: 'Tutorial',
106 to: '/docs/intro',
107 },
108 ],
109 },
110 {
111 title: 'Community',
112 items: [
113 {
114 label: 'Stack Overflow',
115 href: 'https://stackoverflow.com/questions/tagged/docusaurus',
116 },
117 {
118 label: 'Discord',
119 href: 'https://discordapp.com/invite/docusaurus',
120 },
121 {
122 label: 'X',
123 href: 'https://x.com/docusaurus',
124 },
125 ],
126 },
127 {
128 title: 'More',
129 items: [
130 {
131 label: 'Blog',
132 to: '/blog',
133 },
134 {
135 label: 'GitHub',
136 href: 'https://github.com/facebook/docusaurus',
137 },
138 ],
139 },
140 ],
141 copyright: `Copyright 漏 ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
142 },
143 prism: {
144 theme: prismThemes.github,
145 darkTheme: prismThemes.dracula,
146 },
147 } satisfies Preset.ThemeConfig,
148};
149
150export default config;