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',
|
2024-01-07 20:37:47 +01:00
|
|
|
tagline: 'An AI copilot for your Second Brain',
|
2024-01-07 15:58:15 +01:00
|
|
|
|
|
|
|
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} */
|
|
|
|
({
|
|
|
|
image: 'img/khoj-logo-sideways-500.png',
|
|
|
|
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: [
|
|
|
|
{
|
2024-01-07 20:37:47 +01:00
|
|
|
href: 'https://github.com/khoj-ai/khoj',
|
|
|
|
label: '📜 Code',
|
|
|
|
position: 'right',
|
2024-01-07 15:58:15 +01:00
|
|
|
},
|
|
|
|
{
|
2024-01-07 20:37:47 +01:00
|
|
|
href: 'https://app.khoj.dev/login',
|
|
|
|
label: '🌍 Cloud',
|
|
|
|
position: 'right',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: 'https://discord.gg/BDgyabRM6e',
|
|
|
|
label: '💬 Discord',
|
2024-01-07 15:58:15 +01:00
|
|
|
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
|
|
|
},
|
2024-01-07 20:37:47 +01:00
|
|
|
{
|
|
|
|
label: 'Features',
|
|
|
|
to: '/features/all_features',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Client Apps',
|
|
|
|
to: '/category/clients',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Self-Hosting',
|
|
|
|
to: '/get-started/setup',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Contributing',
|
|
|
|
to: '/contributing/development',
|
|
|
|
},
|
2024-01-07 15:58:15 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Discord',
|
|
|
|
href: 'https://discord.gg/BDgyabRM6e',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'LinkedIn',
|
|
|
|
href: 'https://www.linkedin.com/company/khoj-ai/'
|
2024-01-07 20:37:47 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Twitter',
|
|
|
|
href: 'https://twitter.com/khoj_ai',
|
|
|
|
},
|
2024-01-07 15:58:15 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'More',
|
|
|
|
items: [
|
|
|
|
// {
|
|
|
|
// label: 'Blog',
|
|
|
|
// to: '/blog',
|
|
|
|
// },
|
|
|
|
{
|
2024-01-07 20:37:47 +01:00
|
|
|
label: 'Cloud',
|
|
|
|
href: 'https://app.khoj.dev/login',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Code',
|
2024-01-07 15:58:15 +01:00
|
|
|
href: 'https://github.com/khoj-ai/khoj',
|
|
|
|
},
|
2024-01-07 20:37:47 +01:00
|
|
|
{
|
|
|
|
label: 'Website',
|
|
|
|
href: 'https://khoj.dev',
|
|
|
|
},
|
2024-01-07 15:58:15 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} Khoj, Inc.`,
|
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: prismThemes.github,
|
|
|
|
darkTheme: prismThemes.dracula,
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|