mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-29 19:14:45 +00:00
* Update documentation and remove unused assets. Enhanced the 'agents' and 'components' sections with clearer descriptions and examples. Removed obsolete images and updated links for better navigation. Adjusted formatting for consistency across various documentation pages. * remove dependency * address comments * delete more empty pages * broken link * unduplicate headings * alphabetical components nav
183 lines
4.9 KiB
JavaScript
183 lines
4.9 KiB
JavaScript
// SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// @ts-check
|
|
|
|
import {themes as prismThemes} from 'prism-react-renderer';
|
|
|
|
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
const config = {
|
|
title: 'Haystack Documentation',
|
|
tagline: 'Haystack Docs',
|
|
favicon: 'img/favicon.ico',
|
|
|
|
// Set the production url of your site here
|
|
url: 'https://your-docusaurus-site.example.com',
|
|
baseUrl: '/',
|
|
|
|
onBrokenLinks: 'warn',
|
|
onBrokenAnchors: 'warn',
|
|
onDuplicateRoutes: 'warn',
|
|
|
|
markdown: {
|
|
hooks: {
|
|
onBrokenMarkdownLinks: 'warn',
|
|
},
|
|
},
|
|
|
|
i18n: {
|
|
defaultLocale: 'en',
|
|
locales: ['en'],
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
sidebarPath: './sidebars.js',
|
|
// Exclude internal templates from the docs build
|
|
exclude: ['**/_templates/**'],
|
|
editUrl:
|
|
'https://github.com/deepset-ai/haystack/tree/main/docs-website/',
|
|
remarkPlugins: [require('./src/remark/versionedReferenceLinks')],
|
|
versions: {
|
|
current: {
|
|
label: '2.20-unstable',
|
|
path: 'next',
|
|
banner: 'unreleased',
|
|
},
|
|
},
|
|
lastVersion: '2.19',
|
|
},
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
|
|
plugins: [
|
|
[
|
|
'@docusaurus/plugin-ideal-image',
|
|
{
|
|
quality: 70,
|
|
max: 1030,
|
|
min: 640,
|
|
steps: 2,
|
|
disableInDev: false,
|
|
},
|
|
],
|
|
[
|
|
'@docusaurus/plugin-content-docs',
|
|
{
|
|
id: 'reference',
|
|
path: 'reference',
|
|
routeBasePath: 'reference',
|
|
sidebarPath: './reference-sidebars.js',
|
|
editUrl: 'https://github.com/deepset-ai/haystack/tree/main/docs-website/',
|
|
remarkPlugins: [require('./src/remark/versionedReferenceLinks')],
|
|
showLastUpdateAuthor: false,
|
|
showLastUpdateTime: false,
|
|
exclude: ['**/_templates/**'],
|
|
versions: {
|
|
current: {
|
|
label: '2.20-unstable',
|
|
path: 'next',
|
|
banner: 'unreleased',
|
|
},
|
|
},
|
|
lastVersion: '2.19',
|
|
},
|
|
],
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
navbar: {
|
|
title: 'Haystack Documentation',
|
|
logo: {
|
|
alt: 'Haystack Logo',
|
|
src: 'img/logo.svg',
|
|
},
|
|
items: [
|
|
{
|
|
type: 'docsVersionDropdown',
|
|
position: 'left',
|
|
dropdownItemsAfter: [
|
|
{to: '/versions', label: 'Docs versions'},
|
|
{to: '/reference/versions', label: 'API versions'},
|
|
],
|
|
dropdownActiveClassDisabled: true,
|
|
},
|
|
{
|
|
type: 'doc',
|
|
docId: 'overview/intro',
|
|
label: 'Docs',
|
|
position: 'left',
|
|
},
|
|
{
|
|
type: 'doc',
|
|
docsPluginId: 'reference',
|
|
docId: 'api-index',
|
|
label: 'API Reference',
|
|
position: 'left',
|
|
},
|
|
{
|
|
href: 'https://github.com/deepset-ai/haystack/tree/main/docs-website',
|
|
label: 'GitHub',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Community',
|
|
items: [
|
|
{ label: 'Discord', href: 'https://discord.com/invite/haystack' },
|
|
{ label: 'GitHub', href: 'https://github.com/deepset-ai/haystack' },
|
|
{ label: 'Twitter', href: 'https://twitter.com/haystack_ai' },
|
|
],
|
|
},
|
|
{
|
|
title: 'Learn',
|
|
items: [
|
|
{ label: 'Tutorials', href: 'https://haystack.deepset.ai/tutorials' },
|
|
{ label: 'Cookbooks', href: 'https://haystack.deepset.ai/cookbook' },
|
|
],
|
|
},
|
|
{
|
|
title: 'More',
|
|
items: [
|
|
{ label: 'Integrations', href: 'https://haystack.deepset.ai/integrations' },
|
|
{ label: 'Studio', href: 'https://landing.deepset.ai/deepset-studio-signup' },
|
|
],
|
|
},
|
|
{
|
|
title: 'Company',
|
|
items: [
|
|
{ label: 'About', href: 'https://deepset.ai/about' },
|
|
{ label: 'Careers', href: 'https://deepset.ai/careers' },
|
|
{ label: 'Blog', href: 'https://deepset.ai/blog' },
|
|
],
|
|
},
|
|
],
|
|
copyright: `© ${new Date().getFullYear()} deepset GmbH. All rights reserved.`,
|
|
},
|
|
prism: {
|
|
theme: prismThemes.github,
|
|
darkTheme: prismThemes.dracula,
|
|
additionalLanguages: ['python', 'bash', 'docker'],
|
|
},
|
|
}),
|
|
};
|
|
|
|
export default config;
|