···11----
22-slug: first-blog-post
33-title: First Blog Post
44-authors: [slorber, yangshun]
55-tags: [hola, docusaurus]
66----
77-88-Lorem ipsum dolor sit amet...
99-1010-<!-- truncate -->
1111-1212-...consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
-44
website/blog/2019-05-29-long-blog-post.md
···11----
22-slug: long-blog-post
33-title: Long Blog Post
44-authors: yangshun
55-tags: [hello, docusaurus]
66----
77-88-This is the summary of a very long blog post,
99-1010-Use a `<!--` `truncate` `-->` comment to limit blog post size in the list view.
1111-1212-<!-- truncate -->
1313-1414-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
1515-1616-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
1717-1818-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
1919-2020-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
2121-2222-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
2323-2424-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
2525-2626-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
2727-2828-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
2929-3030-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
3131-3232-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
3333-3434-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
3535-3636-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
3737-3838-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
3939-4040-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
4141-4242-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
4343-4444-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
-24
website/blog/2021-08-01-mdx-blog-post.mdx
···11----
22-slug: mdx-blog-post
33-title: MDX Blog Post
44-authors: [slorber]
55-tags: [docusaurus]
66----
77-88-Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).
99-1010-:::tip
1111-1212-Use the power of React to create interactive blog posts.
1313-1414-:::
1515-1616-{/* truncate */}
1717-1818-For example, use JSX to create an interactive button:
1919-2020-```js
2121-<button onClick={() => alert('button clicked!')}>Click me!</button>
2222-```
2323-2424-<button onClick={() => alert('button clicked!')}>Click me!</button>
···11----
22-slug: welcome
33-title: Welcome
44-authors: [slorber, yangshun]
55-tags: [facebook, hello, docusaurus]
66----
77-88-[Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).
99-1010-Here are a few tips you might find useful.
1111-1212-<!-- truncate -->
1313-1414-Simply add Markdown files (or folders) to the `blog` directory.
1515-1616-Regular blog authors can be added to `authors.yml`.
1717-1818-The blog post date can be extracted from filenames, such as:
1919-2020-- `2019-05-30-welcome.md`
2121-- `2019-05-30-welcome/index.md`
2222-2323-A blog post folder can be convenient to co-locate blog post images:
2424-2525-
2626-2727-The blog supports tags as well!
2828-2929-**And if you don't want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config.
···11----
22-sidebar_position: 6
33----
44-55-# Congratulations!
66-77-You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.
88-99-Docusaurus has **much more to offer**!
1010-1111-Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**.
1212-1313-Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610)
1414-1515-## What's next?
1616-1717-- Read the [official documentation](https://docusaurus.io/)
1818-- Modify your site configuration with [`docusaurus.config.js`](https://docusaurus.io/docs/api/docusaurus-config)
1919-- Add navbar and footer items with [`themeConfig`](https://docusaurus.io/docs/api/themes/configuration)
2020-- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
2121-- Add a [search bar](https://docusaurus.io/docs/search)
2222-- Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)
2323-- Get involved in the [Docusaurus Community](https://docusaurus.io/community/support)
···11----
22-sidebar_position: 3
33----
44-55-# Create a Blog Post
66-77-Docusaurus creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed...
88-99-## Create your first Post
1010-1111-Create a file at `blog/2021-02-28-greetings.md`:
1212-1313-```md title="blog/2021-02-28-greetings.md"
1414----
1515-slug: greetings
1616-title: Greetings!
1717-authors:
1818- - name: Joel Marcey
1919- title: Co-creator of Docusaurus 1
2020- url: https://github.com/JoelMarcey
2121- image_url: https://github.com/JoelMarcey.png
2222- - name: Sรฉbastien Lorber
2323- title: Docusaurus maintainer
2424- url: https://sebastienlorber.com
2525- image_url: https://github.com/slorber.png
2626-tags: [greetings]
2727----
2828-2929-Congratulations, you have made your first post!
3030-3131-Feel free to play around and edit this post as much as you like.
3232-```
3333-3434-A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).
-57
website/docs/tutorial-basics/create-a-document.md
···11----
22-sidebar_position: 2
33----
44-55-# Create a Document
66-77-Documents are **groups of pages** connected through:
88-99-- a **sidebar**
1010-- **previous/next navigation**
1111-- **versioning**
1212-1313-## Create your first Doc
1414-1515-Create a Markdown file at `docs/hello.md`:
1616-1717-```md title="docs/hello.md"
1818-# Hello
1919-2020-This is my **first Docusaurus document**!
2121-```
2222-2323-A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello).
2424-2525-## Configure the Sidebar
2626-2727-Docusaurus automatically **creates a sidebar** from the `docs` folder.
2828-2929-Add metadata to customize the sidebar label and position:
3030-3131-```md title="docs/hello.md" {1-4}
3232----
3333-sidebar_label: 'Hi!'
3434-sidebar_position: 3
3535----
3636-3737-# Hello
3838-3939-This is my **first Docusaurus document**!
4040-```
4141-4242-It is also possible to create your sidebar explicitly in `sidebars.js`:
4343-4444-```js title="sidebars.js"
4545-export default {
4646- tutorialSidebar: [
4747- 'intro',
4848- // highlight-next-line
4949- 'hello',
5050- {
5151- type: 'category',
5252- label: 'Tutorial',
5353- items: ['tutorial-basics/create-a-document'],
5454- },
5555- ],
5656-};
5757-```
-43
website/docs/tutorial-basics/create-a-page.md
···11----
22-sidebar_position: 1
33----
44-55-# Create a Page
66-77-Add **Markdown or React** files to `src/pages` to create a **standalone page**:
88-99-- `src/pages/index.js` โ `localhost:3000/`
1010-- `src/pages/foo.md` โ `localhost:3000/foo`
1111-- `src/pages/foo/bar.js` โ `localhost:3000/foo/bar`
1212-1313-## Create your first React Page
1414-1515-Create a file at `src/pages/my-react-page.js`:
1616-1717-```jsx title="src/pages/my-react-page.js"
1818-import React from 'react';
1919-import Layout from '@theme/Layout';
2020-2121-export default function MyReactPage() {
2222- return (
2323- <Layout>
2424- <h1>My React page</h1>
2525- <p>This is a React page</p>
2626- </Layout>
2727- );
2828-}
2929-```
3030-3131-A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page).
3232-3333-## Create your first Markdown Page
3434-3535-Create a file at `src/pages/my-markdown-page.md`:
3636-3737-```mdx title="src/pages/my-markdown-page.md"
3838-# My Markdown page
3939-4040-This is a Markdown page
4141-```
4242-4343-A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page).
-31
website/docs/tutorial-basics/deploy-your-site.md
···11----
22-sidebar_position: 5
33----
44-55-# Deploy your site
66-77-Docusaurus is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**).
88-99-It builds your site as simple **static HTML, JavaScript and CSS files**.
1010-1111-## Build your site
1212-1313-Build your site **for production**:
1414-1515-```bash
1616-npm run build
1717-```
1818-1919-The static files are generated in the `build` folder.
2020-2121-## Deploy your site
2222-2323-Test your production build locally:
2424-2525-```bash
2626-npm run serve
2727-```
2828-2929-The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/).
3030-3131-You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
···11----
22-sidebar_position: 4
33----
44-55-# Markdown Features
66-77-Docusaurus supports **[Markdown](https://daringfireball.net/projects/markdown/syntax)** and a few **additional features**.
88-99-## Front Matter
1010-1111-Markdown documents have metadata at the top called [Front Matter](https://jekyllrb.com/docs/front-matter/):
1212-1313-```text title="my-doc.md"
1414-// highlight-start
1515----
1616-id: my-doc-id
1717-title: My document title
1818-description: My document description
1919-slug: /my-custom-url
2020----
2121-// highlight-end
2222-2323-## Markdown heading
2424-2525-Markdown text with [links](./hello.md)
2626-```
2727-2828-## Links
2929-3030-Regular Markdown links are supported, using url paths or relative file paths.
3131-3232-```md
3333-Let's see how to [Create a page](/create-a-page).
3434-```
3535-3636-```md
3737-Let's see how to [Create a page](./create-a-page.md).
3838-```
3939-4040-**Result:** Let's see how to [Create a page](./create-a-page.md).
4141-4242-## Images
4343-4444-Regular Markdown images are supported.
4545-4646-You can use absolute paths to reference images in the static directory (`static/img/docusaurus.png`):
4747-4848-```md
4949-
5050-```
5151-5252-
5353-5454-You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them:
5555-5656-```md
5757-
5858-```
5959-6060-## Code Blocks
6161-6262-Markdown code blocks are supported with Syntax highlighting.
6363-6464-````md
6565-```jsx title="src/components/HelloDocusaurus.js"
6666-function HelloDocusaurus() {
6767- return <h1>Hello, Docusaurus!</h1>;
6868-}
6969-```
7070-````
7171-7272-```jsx title="src/components/HelloDocusaurus.js"
7373-function HelloDocusaurus() {
7474- return <h1>Hello, Docusaurus!</h1>;
7575-}
7676-```
7777-7878-## Admonitions
7979-8080-Docusaurus has a special syntax to create admonitions and callouts:
8181-8282-```md
8383-:::tip My tip
8484-8585-Use this awesome feature option
8686-8787-:::
8888-8989-:::danger Take care
9090-9191-This action is dangerous
9292-9393-:::
9494-```
9595-9696-:::tip My tip
9797-9898-Use this awesome feature option
9999-100100-:::
101101-102102-:::danger Take care
103103-104104-This action is dangerous
105105-106106-:::
107107-108108-## MDX and React Components
109109-110110-[MDX](https://mdxjs.com/) can make your documentation more **interactive** and allows using any **React components inside Markdown**:
111111-112112-```jsx
113113-export const Highlight = ({children, color}) => (
114114- <span
115115- style={{
116116- backgroundColor: color,
117117- borderRadius: '20px',
118118- color: '#fff',
119119- padding: '10px',
120120- cursor: 'pointer',
121121- }}
122122- onClick={() => {
123123- alert(`You clicked the color ${color} with label ${children}`)
124124- }}>
125125- {children}
126126- </span>
127127-);
128128-129129-This is <Highlight color="#25c2a0">Docusaurus green</Highlight> !
130130-131131-This is <Highlight color="#1877F2">Facebook blue</Highlight> !
132132-```
133133-134134-export const Highlight = ({children, color}) => (
135135- <span
136136- style={{
137137- backgroundColor: color,
138138- borderRadius: '20px',
139139- color: '#fff',
140140- padding: '10px',
141141- cursor: 'pointer',
142142- }}
143143- onClick={() => {
144144- alert(`You clicked the color ${color} with label ${children}`);
145145- }}>
146146- {children}
147147- </span>
148148-);
149149-150150-This is <Highlight color="#25c2a0">Docusaurus green</Highlight> !
151151-152152-This is <Highlight color="#1877F2">Facebook blue</Highlight> !
···11----
22-sidebar_position: 1
33----
44-55-# Manage Docs Versions
66-77-Docusaurus can manage multiple versions of your docs.
88-99-## Create a docs version
1010-1111-Release a version 1.0 of your project:
1212-1313-```bash
1414-npm run docusaurus docs:version 1.0
1515-```
1616-1717-The `docs` folder is copied into `versioned_docs/version-1.0` and `versions.json` is created.
1818-1919-Your docs now have 2 versions:
2020-2121-- `1.0` at `http://localhost:3000/docs/` for the version 1.0 docs
2222-- `current` at `http://localhost:3000/docs/next/` for the **upcoming, unreleased docs**
2323-2424-## Add a Version Dropdown
2525-2626-To navigate seamlessly across versions, add a version dropdown.
2727-2828-Modify the `docusaurus.config.js` file:
2929-3030-```js title="docusaurus.config.js"
3131-export default {
3232- themeConfig: {
3333- navbar: {
3434- items: [
3535- // highlight-start
3636- {
3737- type: 'docsVersionDropdown',
3838- },
3939- // highlight-end
4040- ],
4141- },
4242- },
4343-};
4444-```
4545-4646-The docs version dropdown appears in your navbar:
4747-4848-
4949-5050-## Update an existing version
5151-5252-It is possible to edit versioned docs in their respective folder:
5353-5454-- `versioned_docs/version-1.0/hello.md` updates `http://localhost:3000/docs/hello`
5555-- `docs/hello.md` updates `http://localhost:3000/docs/next/hello`
···11----
22-sidebar_position: 2
33----
44-55-# Translate your site
66-77-Let's translate `docs/intro.md` to French.
88-99-## Configure i18n
1010-1111-Modify `docusaurus.config.js` to add support for the `fr` locale:
1212-1313-```js title="docusaurus.config.js"
1414-export default {
1515- i18n: {
1616- defaultLocale: 'en',
1717- locales: ['en', 'fr'],
1818- },
1919-};
2020-```
2121-2222-## Translate a doc
2323-2424-Copy the `docs/intro.md` file to the `i18n/fr` folder:
2525-2626-```bash
2727-mkdir -p i18n/fr/docusaurus-plugin-content-docs/current/
2828-2929-cp docs/intro.md i18n/fr/docusaurus-plugin-content-docs/current/intro.md
3030-```
3131-3232-Translate `i18n/fr/docusaurus-plugin-content-docs/current/intro.md` in French.
3333-3434-## Start your localized site
3535-3636-Start your site on the French locale:
3737-3838-```bash
3939-npm run start -- --locale fr
4040-```
4141-4242-Your localized site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/) and the `Getting Started` page is translated.
4343-4444-:::caution
4545-4646-In development, you can only use one locale at a time.
4747-4848-:::
4949-5050-## Add a Locale Dropdown
5151-5252-To navigate seamlessly across languages, add a locale dropdown.
5353-5454-Modify the `docusaurus.config.js` file:
5555-5656-```js title="docusaurus.config.js"
5757-export default {
5858- themeConfig: {
5959- navbar: {
6060- items: [
6161- // highlight-start
6262- {
6363- type: 'localeDropdown',
6464- },
6565- // highlight-end
6666- ],
6767- },
6868- },
6969-};
7070-```
7171-7272-The locale dropdown now appears in your navbar:
7373-7474-
7575-7676-## Build your localized site
7777-7878-Build your site for a specific locale:
7979-8080-```bash
8181-npm run build -- --locale fr
8282-```
8383-8484-Or build your site to include all the locales at once:
8585-8686-```bash
8787-npm run build
8888-```
+73-139
website/docusaurus.config.ts
···11-import {themes as prismThemes} from 'prism-react-renderer';
22-import type {Config} from '@docusaurus/types';
33-import type * as Preset from '@docusaurus/preset-classic';
11+import { themes as prismThemes } from "prism-react-renderer";
22+import type { Config } from "@docusaurus/types";
33+import type * as Preset from "@docusaurus/preset-classic";
4455+const ghURL = "https://github.com/stormlightlabs/noteleaf";
56// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
66-77const config: Config = {
88- title: 'My Site',
99- tagline: 'Dinosaurs are cool',
1010- favicon: 'img/favicon.ico',
1111-1212- // Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
1313- future: {
1414- v4: true, // Improve compatibility with the upcoming Docusaurus v4
1515- },
1616-1717- // Set the production url of your site here
1818- url: 'https://your-docusaurus-site.example.com',
1919- // Set the /<baseUrl>/ pathname under which your site is served
2020- // For GitHub pages deployment, it is often '/<projectName>/'
2121- baseUrl: '/',
2222-2323- // GitHub pages deployment config.
2424- // If you aren't using GitHub pages, you don't need these.
2525- organizationName: 'facebook', // Usually your GitHub org/user name.
2626- projectName: 'docusaurus', // Usually your repo name.
2727-2828- onBrokenLinks: 'throw',
2929-3030- // Even if you don't use internationalization, you can use this field to set
3131- // useful metadata like html lang. For example, if your site is Chinese, you
3232- // may want to replace "en" with "zh-Hans".
3333- i18n: {
3434- defaultLocale: 'en',
3535- locales: ['en'],
3636- },
3737-3838- presets: [
3939- [
4040- 'classic',
4141- {
4242- docs: {
4343- sidebarPath: './sidebars.ts',
4444- // Please change this to your repo.
4545- // Remove this to remove the "edit this page" links.
4646- editUrl:
4747- 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
4848- },
4949- blog: {
5050- showReadingTime: true,
5151- feedOptions: {
5252- type: ['rss', 'atom'],
5353- xslt: true,
5454- },
5555- // Please change this to your repo.
5656- // Remove this to remove the "edit this page" links.
5757- editUrl:
5858- 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
5959- // Useful options to enforce blogging best practices
6060- onInlineTags: 'warn',
6161- onInlineAuthors: 'warn',
6262- onUntruncatedBlogPosts: 'warn',
6363- },
6464- theme: {
6565- customCss: './src/css/custom.css',
6666- },
6767- } satisfies Preset.Options,
88+ title: "My Site",
99+ tagline: "Dinosaurs are cool",
1010+ favicon: "img/favicon.ico",
1111+ // Improve compatibility with the upcoming Docusaurus v4
1212+ future: { v4: true },
1313+ url: "https://stormlightlabs.github.io/",
1414+ baseUrl: "/noteleaf/",
1515+ organizationName: "stormlightlabs",
1616+ projectName: "noteleaf",
1717+ onBrokenLinks: "throw",
1818+ i18n: { defaultLocale: "en", locales: ["en"] },
1919+ presets: [
2020+ [
2121+ "classic",
2222+ {
2323+ docs: { sidebarPath: "./sidebars.ts" },
2424+ theme: { customCss: "./src/css/custom.css" },
2525+ } satisfies Preset.Options,
2626+ ],
6827 ],
6969- ],
70287171- themeConfig: {
7272- // Replace with your project's social card
7373- image: 'img/docusaurus-social-card.jpg',
7474- colorMode: {
7575- respectPrefersColorScheme: true,
7676- },
7777- navbar: {
7878- title: 'My Site',
7979- logo: {
8080- alt: 'My Site Logo',
8181- src: 'img/logo.svg',
8282- },
8383- items: [
8484- {
8585- type: 'docSidebar',
8686- sidebarId: 'tutorialSidebar',
8787- position: 'left',
8888- label: 'Tutorial',
2929+ themeConfig: {
3030+ image: "img/docusaurus-social-card.jpg",
3131+ colorMode: { respectPrefersColorScheme: true },
3232+ navbar: {
3333+ title: "My Site",
3434+ logo: { alt: "My Site Logo", src: "img/logo.svg" },
3535+ items: [
3636+ {
3737+ type: "docSidebar",
3838+ sidebarId: "manualSidebar",
3939+ position: "left",
4040+ label: "Manual",
4141+ },
4242+ { href: ghURL, label: "GitHub", position: "right" },
4343+ ],
8944 },
9090- {to: '/blog', label: 'Blog', position: 'left'},
9191- {
9292- href: 'https://github.com/facebook/docusaurus',
9393- label: 'GitHub',
9494- position: 'right',
9595- },
9696- ],
9797- },
9898- footer: {
9999- style: 'dark',
100100- links: [
101101- {
102102- title: 'Docs',
103103- items: [
104104- {
105105- label: 'Tutorial',
106106- to: '/docs/intro',
107107- },
108108- ],
109109- },
110110- {
111111- title: 'Community',
112112- items: [
113113- {
114114- label: 'Stack Overflow',
115115- href: 'https://stackoverflow.com/questions/tagged/docusaurus',
116116- },
117117- {
118118- label: 'Discord',
119119- href: 'https://discordapp.com/invite/docusaurus',
120120- },
121121- {
122122- label: 'X',
123123- href: 'https://x.com/docusaurus',
124124- },
125125- ],
4545+ footer: {
4646+ style: "dark",
4747+ links: [
4848+ {
4949+ title: "Docs",
5050+ items: [
5151+ {
5252+ label: "Tutorial",
5353+ to: "/docs/intro",
5454+ },
5555+ ],
5656+ },
5757+ {
5858+ title: "Community",
5959+ items: [
6060+ {
6161+ label: "BlueSky",
6262+ href: "https://bsky.app/desertthunder.dev",
6363+ },
6464+ {
6565+ label: "X",
6666+ href: "https://x.com/_desertthunder",
6767+ },
6868+ ],
6969+ },
7070+ {
7171+ title: "More",
7272+ items: [{ label: "GitHub", href: ghURL }],
7373+ },
7474+ ],
7575+ copyright: `Copyright ยฉ ${new Date().getFullYear()} Stormlight Labs, LLC.`,
12676 },
127127- {
128128- title: 'More',
129129- items: [
130130- {
131131- label: 'Blog',
132132- to: '/blog',
133133- },
134134- {
135135- label: 'GitHub',
136136- href: 'https://github.com/facebook/docusaurus',
137137- },
138138- ],
7777+ prism: {
7878+ theme: prismThemes.github,
7979+ darkTheme: prismThemes.dracula,
13980 },
140140- ],
141141- copyright: `Copyright ยฉ ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
142142- },
143143- prism: {
144144- theme: prismThemes.github,
145145- darkTheme: prismThemes.dracula,
146146- },
147147- } satisfies Preset.ThemeConfig,
8181+ } satisfies Preset.ThemeConfig,
14882};
1498315084export default config;
+2-27
website/sidebars.ts
···11-import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
11+import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
2233// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
44-55-/**
66- * Creating a sidebar enables you to:
77- - create an ordered group of docs
88- - render a sidebar for each doc of that group
99- - provide next/previous navigation
1010-1111- The sidebars can be generated from the filesystem, or explicitly defined here.
1212-1313- Create as many sidebars as you want.
1414- */
154const sidebars: SidebarsConfig = {
1616- // By default, Docusaurus generates a sidebar from the docs folder structure
1717- tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
1818-1919- // But you can create a sidebar manually
2020- /*
2121- tutorialSidebar: [
2222- 'intro',
2323- 'hello',
2424- {
2525- type: 'category',
2626- label: 'Tutorial',
2727- items: ['tutorial-basics/create-a-document'],
2828- },
2929- ],
3030- */
55+ manualSidebar: [{ type: "autogenerated", dirName: "." }],
316};
327338export default sidebars;