9 Star 1 Fork 0

Gitee AI / docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docusaurus.config.ts 4.18 KB
一键复制 编辑 原始数据 按行查看 历史
红薯 提交于 2024-04-03 09:43 . 调整文档结构
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'Gitee AI',
tagline: '开发 AI 应用从此简单',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://ai.gitee.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/docs/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'gitee-ai', // Usually your GitHub org/user name.
projectName: 'docs', // 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: 'zh-Hans',
locales: ['zh-Hans'],
},
presets: [
[
'classic',
{
docs: {
routeBasePath: '/',
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: 'https://gitee.com/gitee-ai/docs/edit/main/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: 'https://gitee.com/gitee-ai/docs/edit/main/',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
// image: 'img/docusaurus-social-card.jpg',
navbar: {
// title: 'Gitee AI',
logo: {
alt: 'Gitee AI',
src: 'img/logo-full.svg',
srcDark: 'img/logo-full-white.svg',
},
items: [
{
label: '模型',
to: 'https://ai.gitee.com/models',
},
{
label: '数据集',
to: 'https://ai.gitee.com/datasets',
},
{
label: '应用',
to: 'https://ai.gitee.com/apps',
},
{
label: '解决方案',
items: [
{
label: '模型引擎',
to: 'https://ai.gitee.com/endpoints',
},
{
label: '算力网络',
to: 'https://ai.gitee.com/computing-network',
},
{
label: 'Serverless 推理引擎',
to: 'https://ai.gitee.com/serverless',
}
]
},
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: '文档',
},
{
href: 'https://ai.gitee.com',
label: 'Gitee AI',
position: 'right',
},
],
},
footer: {
style: 'light',
/*
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'Gitee AI',
href: 'https://ai.gitee.com',
},
],
},
],
*/
copyright: `Copyright © ${new Date().getFullYear()} Gitee AI`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;
1
https://gitee.com/gitee-ai/docs.git
git@gitee.com:gitee-ai/docs.git
gitee-ai
docs
docs
main

搜索帮助