fleet-memory/hindsight-docs/docusaurus.config.ts
Nicolò Boschi 4f21886a0e
doc: changelog for 0.2.0 (and regenerate clients) (#99)
* doc: changelog for 0.2.0 (and regenerate clients)

* doc: changelog for 0.2.0 (and regenerate clients)

* doc: changelog for 0.2.0 (and regenerate clients)

* doc: changelog for 0.2.0 (and regenerate clients)

* doc: changelog for 0.2.0 (and regenerate clients)

* doc: changelog for 0.2.0 (and regenerate clients)

* doc: changelog for 0.2.0 (and regenerate clients)

* doc: changelog for 0.2.0 (and regenerate clients)
2026-01-05 12:36:29 +01:00

281 lines
7.1 KiB
TypeScript

import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// Announcement bar - supports HTML for links
// Set to empty string '' to hide the bar
const ANNOUNCEMENT_BAR = 'Hindsight is State-of-the-Art on Memory for AI Agents | <a href="https://arxiv.org/abs/2512.12818" target="_blank">Read the paper →</a>';
const config: Config = {
title: 'Hindsight',
tagline: 'Hindsight: Agent Memory That Works Like Human Memory',
favicon: 'img/favicon.png',
future: {
v4: true,
},
markdown: {
mermaid: true,
},
url: 'https://hindsight.vectorize.io',
baseUrl: '/',
organizationName: 'vectorize-io',
projectName: 'hindsight',
trailingSlash: false,
onBrokenLinks: 'throw',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
headTags: [
{
tagName: 'link',
attributes: {
rel: 'preconnect',
href: 'https://fonts.googleapis.com',
},
},
{
tagName: 'link',
attributes: {
rel: 'preconnect',
href: 'https://fonts.gstatic.com',
crossorigin: 'anonymous',
},
},
{
tagName: 'link',
attributes: {
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap',
media: 'print',
onload: "this.media='all'",
},
},
],
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/vectorize-io/hindsight/tree/main/hindsight-docs/',
routeBasePath: '/',
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
[
'redocusaurus',
{
specs: [
{
id: 'hindsight-api',
spec: 'static/openapi.json',
route: '/api-reference',
url: '/openapi.json',
},
],
theme: {
primaryColor: '#0074d9',
sidebar: {
backgroundColor: '#09090b',
},
rightPanel: {
backgroundColor: '#18181b',
},
typography: {
fontSize: '15px',
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
headings: {
fontFamily: "'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
},
code: {
fontFamily: "'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, Consolas, monospace",
fontSize: '13px',
},
},
},
config: {
scrollYOffset: 60,
nativeScrollbars: true,
expandSingleSchemaField: true,
expandResponses: '200,201',
},
},
],
],
themes: [
'@docusaurus/theme-mermaid',
[
'@easyops-cn/docusaurus-search-local',
{
hashed: true,
docsRouteBasePath: '/',
indexBlog: false,
highlightSearchTermsOnTargetPage: false,
},
],
],
themeConfig: {
...(ANNOUNCEMENT_BAR && {
announcementBar: {
id: 'announcement',
content: ANNOUNCEMENT_BAR,
backgroundColor: '#0074d9',
textColor: '#ffffff',
isCloseable: false,
},
}),
image: 'img/logo.png',
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
navbar: {
logo: {
alt: 'Hindsight Logo',
src: 'img/logo.png',
style: { height: '32px' },
},
items: [
{
type: 'doc',
docId: 'developer/index',
position: 'left',
label: 'Developer',
className: 'navbar-item-developer',
},
{
type: 'doc',
docId: 'sdks/python',
position: 'left',
label: 'SDKs',
className: 'navbar-item-sdks',
},
{
to: '/api-reference',
position: 'left',
label: 'API Reference',
className: 'navbar-item-api',
},
{
type: 'doc',
docId: 'cookbook/index',
position: 'left',
label: 'Cookbook',
className: 'navbar-item-cookbook',
},
{
type: 'doc',
docId: 'changelog/index',
position: 'left',
label: 'Changelog',
className: 'navbar-item-changelog',
},
{
href: 'https://vectorize.io/hindsight/cloud',
position: 'right',
label: 'Hindsight Cloud',
className: 'navbar-item-cloud',
},
{
href: 'https://github.com/vectorize-io/hindsight',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{
label: 'Introduction',
to: '/',
},
{
label: 'SDKs',
to: '/sdks/python',
},
{
label: 'API Reference',
to: '/api-reference/',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/vectorize-io/hindsight',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Hindsight.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'json', 'python', 'rust'],
},
mermaid: {
theme: {
light: 'base',
dark: 'base',
},
options: {
themeVariables: {
// Gradient start (#0074d9 blue) for nodes
primaryColor: '#0074d9',
primaryTextColor: '#ffffff',
primaryBorderColor: '#005db0',
// Gradient end (#009296 teal) for edges/clusters
secondaryColor: '#009296',
secondaryTextColor: '#ffffff',
secondaryBorderColor: '#007a7d',
// Tertiary
tertiaryColor: '#e6f7f8',
tertiaryTextColor: '#1e293b',
// Lines and edges - gradient end color
lineColor: '#009296',
// Text
textColor: '#1e293b',
// Node specific - gradient start
nodeBkg: '#0074d9',
nodeTextColor: '#ffffff',
nodeBorder: '#005db0',
// Main background
mainBkg: '#0074d9',
// Clusters/subgraphs - gradient end
clusterBkg: 'rgba(0, 146, 150, 0.08)',
clusterBorder: '#009296',
// Labels
edgeLabelBackground: 'transparent',
labelBackground: 'transparent',
// Font - Inter to match body text
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
},
},
},
} satisfies Preset.ThemeConfig,
};
export default config;