From bd5204f7c101a7c5087003a3198521931e1a293d Mon Sep 17 00:00:00 2001 From: sayurinana Date: Mon, 3 Mar 2025 22:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=AE=8C=E5=96=84=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.ts | 60 +++++++++++-------- src/components/HomepageFeatures/index.tsx | 73 +++++++++++++---------- src/pages/index.tsx | 4 +- static/CNAME | 1 + 4 files changed, 80 insertions(+), 58 deletions(-) create mode 100644 static/CNAME diff --git a/docusaurus.config.ts b/docusaurus.config.ts index ca15758..f2049c0 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -6,15 +6,15 @@ import type * as Preset from '@docusaurus/preset-classic'; const config: Config = { title: '湖南科技学院 电子竞赛实验室', - tagline: '公网文档', + tagline: '公网文档(未完成...)', favicon: 'img/favicon.ico', // Set the production url of your site here - // url: 'https://huse-lab.online', - url: ' https://sayurinana.github.io', + url: 'https://huse-lab.online', + // url: ' https://sayurinana.github.io', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/huse-lab_public', + baseUrl: '/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. @@ -83,7 +83,7 @@ const config: Config = { }, // {to: '/blog', label: 'Blog', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/sayurinana/huse-lab_source', label: 'GitHub', position: 'right', }, @@ -96,38 +96,50 @@ const config: Config = { title: 'Docs', items: [ { - label: 'Tutorial', + label: '快速引导', to: '/docs/intro', }, - ], - }, - { - title: 'Community', - items: [ { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/docusaurus', + label: '实验室守则', + to: '/docs/%E5%AE%9E%E9%AA%8C%E5%AE%A4%E5%AE%88%E5%88%99/%E5%AE%9E%E9%AA%8C%E5%AE%A4%E5%AE%88%E5%88%99%E8%AF%95%E8%A1%8C%E7%89%88', }, { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', - }, - { - label: 'X', - href: 'https://x.com/docusaurus', + label: '获奖统计', + to: '/docs/%E8%8E%B7%E5%A5%96%E7%BB%9F%E8%AE%A1/2025-03-03_%E5%BE%80%E5%B1%8A%E8%8E%B7%E5%A5%96%E7%BB%9F%E8%AE%A1', }, ], }, + // { + // title: 'Community', + // items: [ + // { + // label: 'Stack Overflow', + // href: 'https://stackoverflow.com/questions/tagged/docusaurus', + // }, + // { + // label: 'Discord', + // href: 'https://discordapp.com/invite/docusaurus', + // }, + // { + // label: 'X', + // href: 'https://x.com/docusaurus', + // }, + // ], + // }, { title: 'More', items: [ - { - label: 'Blog', - to: '/blog', - }, + // { + // label: 'Blog', + // to: '/blog', + // }, { label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/sayurinana/huse-lab_source', + }, + { + label: '门户页', + href: 'https://kdocs.cn/l/cb7Vib8JKlgk', }, ], }, diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index c2551fb..995f652 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -1,4 +1,4 @@ -import type {ReactNode} from 'react'; +import type { ReactNode } from 'react'; import clsx from 'clsx'; import Heading from '@theme/Heading'; import styles from './styles.module.css'; @@ -10,39 +10,48 @@ type FeatureItem = { }; const FeatureList: FeatureItem[] = [ - { - title: 'Easy to Use', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, - description: ( - <> - Docusaurus was designed from the ground up to be easily installed and - used to get your website up and running quickly. - - ), - }, - { - title: 'Focus on What Matters', - Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, - description: ( - <> - Docusaurus lets you focus on your docs, and we'll do the chores. Go - ahead and move your docs into the docs directory. - - ), - }, - { - title: 'Powered by React', - Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, - description: ( - <> - Extend or customize your website layout by reusing React. Docusaurus can - be extended while reusing the same header and footer. - - ), - }, + // { + // title: 'Easy to Use', + // Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + // description: ( + // <> + // Docusaurus was designed from the ground up to be easily installed and + // used to get your website up and running quickly. + // + // ), + // }, + // { + // title: 'Focus on What Matters', + // Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, + // description: ( + // <> + // Docusaurus lets you focus on your docs, and we'll do the chores. Go + // ahead and move your docs into the docs directory. + // + // ), + // }, + // { + // title: 'Powered by React', + // Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, + // description: ( + // <> + // Extend or customize your website layout by reusing React. Docusaurus can + // be extended while reusing the same header and footer. + // + // ), + // }, + // { + // title: '由 Docusaurus && React 强力驱动', + // Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, + // description: ( + // <> + // 使用 Docusaurus 构建的内容核心网站 + // + // ), + // }, ]; -function Feature({title, Svg, description}: FeatureItem) { +function Feature({ title, Svg, description }: FeatureItem) { return (
diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 2e006d1..7213713 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -21,7 +21,7 @@ function HomepageHeader() { - Docusaurus Tutorial - 5min ⏱️ + 进入快速引导
@@ -33,7 +33,7 @@ export default function Home(): ReactNode { const {siteConfig} = useDocusaurusContext(); return (
diff --git a/static/CNAME b/static/CNAME new file mode 100644 index 0000000..58b9a2e --- /dev/null +++ b/static/CNAME @@ -0,0 +1 @@ +huse-lab.online \ No newline at end of file