mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
docs
This commit is contained in:
78
docSite/docusaurus.config.js
Normal file
78
docSite/docusaurus.config.js
Normal file
@@ -0,0 +1,78 @@
|
||||
// @ts-check
|
||||
// Note: type annotations allow type checking and IDEs autocompletion
|
||||
|
||||
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
||||
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
||||
|
||||
/** @type {import('@docusaurus/types').Config} */
|
||||
const config = {
|
||||
title: 'FastGpt',
|
||||
tagline: 'FastGpt',
|
||||
favicon: 'img/favicon.ico',
|
||||
url: 'https://fastgpt.run',
|
||||
baseUrl: '/',
|
||||
organizationName: 'labring',
|
||||
projectName: 'FastGpt',
|
||||
onBrokenLinks: 'throw',
|
||||
onBrokenMarkdownLinks: 'warn',
|
||||
|
||||
i18n: {
|
||||
defaultLocale: 'en',
|
||||
locales: ['en', 'zh-Hans']
|
||||
},
|
||||
|
||||
presets: [
|
||||
[
|
||||
'classic',
|
||||
/** @type {import('@docusaurus/preset-classic').Options} */
|
||||
({
|
||||
docs: {
|
||||
sidebarPath: require.resolve('./sidebars.js'),
|
||||
editUrl:
|
||||
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/'
|
||||
},
|
||||
theme: {
|
||||
customCss: require.resolve('./src/css/custom.css')
|
||||
}
|
||||
})
|
||||
]
|
||||
],
|
||||
|
||||
themeConfig:
|
||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||
({
|
||||
image: 'img/docusaurus-social-card.jpg',
|
||||
navbar: {
|
||||
title: 'FastGpt',
|
||||
logo: {
|
||||
alt: 'My Logo',
|
||||
src: 'img/logo.png'
|
||||
},
|
||||
items: [
|
||||
{
|
||||
type: 'doc',
|
||||
docId: 'intro',
|
||||
position: 'left',
|
||||
label: 'Docs',
|
||||
to: '/docs/Intro'
|
||||
},
|
||||
{ to: 'https://fastgpt.run', label: 'Start Now', position: 'left' },
|
||||
{
|
||||
href: 'https://github.com/labring/FastGPT',
|
||||
label: 'GitHub',
|
||||
position: 'right'
|
||||
},
|
||||
{
|
||||
type: 'localeDropdown',
|
||||
position: 'right'
|
||||
}
|
||||
]
|
||||
},
|
||||
prism: {
|
||||
theme: lightCodeTheme,
|
||||
darkTheme: darkCodeTheme
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
module.exports = config;
|
Reference in New Issue
Block a user