docusaurus.config.ts•3.53 kB
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'SelfMemory Docs',
tagline: 'Store your memories forever',
favicon: 'img/icon.svg',
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
future: {
v4: true, // Improve compatibility with the upcoming Docusaurus v4
},
// Set the production url of your site here
url: 'https://docs.selfmemory.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'SelfMemory', // Usually your GitHub org/user name.
projectName: 'SelfMemory', // Usually your repo name.
onBrokenLinks: 'throw',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
// Algolia site verification
headTags: [
{
tagName: 'meta',
attributes: {
name: 'algolia-site-verification',
content: '234532E85ECC62A7',
},
},
],
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
routeBasePath: '/', // Serve docs at the site's root
},
blog: false, // Disable blog
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
colorMode: {
respectPrefersColorScheme: true,
},
algolia: {
appId: 'ISN5T6ON4H',
apiKey: '8e089affefcbf520e9c8c4e62f0778d6',
indexName: 'SelfMemory',
},
navbar: {
title: 'SelfMemory',
logo: {
alt: 'SelfMemory Logo',
src: 'img/icon.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Docs',
},
{
href: 'https://github.com/selfmemory/selfmemory',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Getting Started',
to: '/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.com/invite/YypBvdUpcc',
},
{
label: 'X',
href: 'https://x.com/selfmemoryai',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/selfmemory/selfmemory',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} SelfMemory`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;