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
5const ghURL = "https://github.com/stormlightlabs/noteleaf";
6// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
7const config: Config = {
8 title: "My Site",
9 tagline: "Dinosaurs are cool",
10 favicon: "img/favicon.ico",
11 // Improve compatibility with the upcoming Docusaurus v4
12 future: { v4: true },
13 url: "https://stormlightlabs.github.io/",
14 baseUrl: "/noteleaf/",
15 organizationName: "stormlightlabs",
16 projectName: "noteleaf",
17 onBrokenLinks: "throw",
18 i18n: { defaultLocale: "en", locales: ["en"] },
19 presets: [
20 [
21 "classic",
22 {
23 docs: { sidebarPath: "./sidebars.ts" },
24 theme: { customCss: "./src/css/custom.css" },
25 } satisfies Preset.Options,
26 ],
27 ],
28
29 themeConfig: {
30 image: "img/docusaurus-social-card.jpg",
31 colorMode: { respectPrefersColorScheme: true },
32 navbar: {
33 title: "My Site",
34 logo: { alt: "My Site Logo", src: "img/logo.svg" },
35 items: [
36 {
37 type: "docSidebar",
38 sidebarId: "manualSidebar",
39 position: "left",
40 label: "Manual",
41 },
42 { href: ghURL, label: "GitHub", position: "right" },
43 ],
44 },
45 footer: {
46 style: "dark",
47 links: [
48 {
49 title: "Docs",
50 items: [
51 {
52 label: "Tutorial",
53 to: "/docs/intro",
54 },
55 ],
56 },
57 {
58 title: "Community",
59 items: [
60 {
61 label: "BlueSky",
62 href: "https://bsky.app/desertthunder.dev",
63 },
64 {
65 label: "X",
66 href: "https://x.com/_desertthunder",
67 },
68 ],
69 },
70 {
71 title: "More",
72 items: [{ label: "GitHub", href: ghURL }],
73 },
74 ],
75 copyright: `Copyright 漏 ${new Date().getFullYear()} Stormlight Labs, LLC.`,
76 },
77 prism: {
78 theme: prismThemes.github,
79 darkTheme: prismThemes.dracula,
80 },
81 } satisfies Preset.ThemeConfig,
82};
83
84export default config;