2024-01-07 15:58:15 +01:00
|
|
|
// @ts-check
|
|
|
|
// `@type` JSDoc annotations allow editor autocompletion and type checking
|
|
|
|
// (when paired with `@ts-check`).
|
|
|
|
// There are various equivalent ways to declare your Docusaurus config.
|
|
|
|
// See: https://docusaurus.io/docs/api/docusaurus-config
|
|
|
|
|
|
|
|
import {themes as prismThemes} from 'prism-react-renderer';
|
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
const config = {
|
|
|
|
title: 'Khoj AI',
|
|
|
|
tagline: 'Merge AI with your brain.',
|
|
|
|
|
|
|
|
staticDirectories: ['assets'],
|
|
|
|
|
|
|
|
favicon: 'img/favicon-128x128.ico',
|
|
|
|
|
|
|
|
// Set the production url of your site here
|
|
|
|
url: 'https://docs.khoj.dev',
|
|
|
|
// 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: 'khoj-ai', // Usually your GitHub org/user name.
|
|
|
|
projectName: 'khoj', // Usually your repo name.
|
|
|
|
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
|
|
|
|
// 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'],
|
|
|
|
},
|
|
|
|
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'classic',
|
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
|
|
|
docs: {
|
|
|
|
sidebarPath: './sidebars.js',
|
2024-01-07 20:02:23 +01:00
|
|
|
routeBasePath: '/',
|
2024-01-07 15:58:15 +01:00
|
|
|
// Please change this to your repo.
|
|
|
|
// Remove this to remove the "edit this page" links.
|
|
|
|
editUrl:
|
2024-01-07 20:02:23 +01:00
|
|
|
'https://github.com/khoj-ai/khoj/tree/master/documentation/',
|
2024-01-07 15:58:15 +01:00
|
|
|
},
|
|
|
|
blog: {
|
|
|
|
showReadingTime: true,
|
|
|
|
// Please change this to your repo.
|
|
|
|
// Remove this to remove the "edit this page" links.
|
|
|
|
editUrl:
|
2024-01-07 20:02:23 +01:00
|
|
|
'https://github.com/khoj-ai/khoj/tree/master/documentation/blog/',
|
2024-01-07 15:58:15 +01:00
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: './src/css/custom.css',
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
({
|
|
|
|
// Replace with your project's social card
|
|
|
|
image: 'img/khoj-logo-sideways-500.png',
|
|
|
|
announcementBar: {
|
|
|
|
backgroundColor: '#fcc50b',
|
|
|
|
content: "Give us a star on <a target='_blank' rel='noopener noreferrer' href='https://github.com/khoj-ai/khoj'>GitHub</a>!"
|
|
|
|
},
|
|
|
|
metadata: [
|
|
|
|
{name: 'keywords', content: 'khoj, khoj ai, chatgpt, open ai, open source, productivity'},
|
|
|
|
{name: 'og:title', content: 'Khoj Documentation'},
|
|
|
|
{name: 'og:type', content: 'website'},
|
|
|
|
{name: 'og:site_name', content: 'Khoj Documentation'},
|
|
|
|
{name: 'og:description', content: 'Quickly get started with using or self-hosting Khoj'},
|
|
|
|
{name: 'og:image', content: 'https://khoj-web-bucket.s3.amazonaws.com/link_preview_docs.png'},
|
|
|
|
{name: 'og:url', content: 'https://docs.khoj.dev'},
|
|
|
|
{name: 'keywords', content: 'khoj, khoj ai, chatgpt, open ai, open source, productivity'}
|
|
|
|
],
|
|
|
|
navbar: {
|
|
|
|
title: 'Khoj',
|
|
|
|
logo: {
|
|
|
|
alt: 'Khoj AI',
|
|
|
|
src: 'img/favicon-128x128.ico',
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: 'docSidebar',
|
|
|
|
position: 'left',
|
|
|
|
label: 'Docs',
|
|
|
|
sidebarId: 'tutorialSidebar',
|
|
|
|
},
|
|
|
|
// {to: '/blog', label: 'Blog', position: 'left'},
|
|
|
|
{
|
|
|
|
href: 'https://github.com/khoj-ai/khoj',
|
|
|
|
label: 'Khoj',
|
|
|
|
position: 'right',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'Docs',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Get Started',
|
2024-01-07 20:02:23 +01:00
|
|
|
to: '/',
|
2024-01-07 15:58:15 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Discord',
|
|
|
|
href: 'https://discord.gg/BDgyabRM6e',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Twitter',
|
|
|
|
href: 'https://twitter.com/sabaimran_go',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'LinkedIn',
|
|
|
|
href: 'https://www.linkedin.com/company/khoj-ai/'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'More',
|
|
|
|
items: [
|
|
|
|
// {
|
|
|
|
// label: 'Blog',
|
|
|
|
// to: '/blog',
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
label: 'GitHub',
|
|
|
|
href: 'https://github.com/khoj-ai/khoj',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} Khoj, Inc.`,
|
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: prismThemes.github,
|
|
|
|
darkTheme: prismThemes.dracula,
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|