website: 首页增加下载卡片,整理文档内容
TDevOpsCICD / build-kit (push) Successful in 5m33s

This commit is contained in:
jif2.zhang
2026-09-11 11:06:39 +08:00
parent 297c2366f2
commit e5e38a16eb
15 changed files with 255 additions and 198 deletions
+31 -40
View File
@@ -1,8 +1,4 @@
// @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';
@@ -12,23 +8,15 @@ const config = {
tagline: '手边的开发运维工具',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'http://kit.fullstack.club',
// 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: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'Fullstack',
projectName: 'kit.program',
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',
locales: ['zh'],
@@ -41,18 +29,8 @@ const config = {
({
docs: {
sidebarPath: './sidebars.js',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
@@ -63,45 +41,57 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Kit 项目主页',
title: 'Kit',
logo: {
alt: 'kit logo is still in production',
alt: 'Kit logo',
src: 'img/logo.svg',
},
items: [
{ href: 'https://flowus.cn/fullstack/share/9e90b5b7-cea7-44d7-9231-e5d8a6c807f9', label: '文档', position: 'right'}
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: '文档',
},
{
href: 'http://git.honor3.com/Fullstack/kit.program',
label: '仓库',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'More',
title: 'Kit',
items: [
{
label: '代码仓库',
href: 'https://gitee.com/fullstackclub/kit.git',
label: '下载',
to: '/',
},
{
label: '开发者博客',
to: 'http://gpio.me',
label: '文档',
to: '/docs/intro',
},
{
label: '反馈',
to: 'mailto:hq@gpio.me',
label: '功能概览',
to: '/docs/features',
},
],
},
{
title: 'Docs',
title: '社区',
items: [
{
label: '文档',
to: 'https://flowus.cn/fullstack/share/9e90b5b7-cea7-44d7-9231-e5d8a6c807f9',
label: '代码仓库',
href: 'http://git.honor3.com/Fullstack/kit.program',
},
{
label: '反馈',
href: 'mailto:hq@gpio.me',
},
],
},
@@ -111,6 +101,7 @@ const config = {
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash'],
},
}),
};