feat: 完善内容

This commit is contained in:
2025-03-03 22:53:14 +08:00
parent 91d5d83566
commit bd5204f7c1
4 changed files with 80 additions and 58 deletions

View File

@@ -6,15 +6,15 @@ import type * as Preset from '@docusaurus/preset-classic';
const config: Config = { const config: Config = {
title: '湖南科技学院 电子竞赛实验室', title: '湖南科技学院 电子竞赛实验室',
tagline: '公网文档', tagline: '公网文档(未完成...',
favicon: 'img/favicon.ico', favicon: 'img/favicon.ico',
// Set the production url of your site here // Set the production url of your site here
// url: 'https://huse-lab.online', url: 'https://huse-lab.online',
url: ' https://sayurinana.github.io', // url: ' https://sayurinana.github.io',
// Set the /<baseUrl>/ pathname under which your site is served // Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/' // For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/huse-lab_public', baseUrl: '/',
// GitHub pages deployment config. // GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these. // 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'}, // {to: '/blog', label: 'Blog', position: 'left'},
{ {
href: 'https://github.com/facebook/docusaurus', href: 'https://github.com/sayurinana/huse-lab_source',
label: 'GitHub', label: 'GitHub',
position: 'right', position: 'right',
}, },
@@ -96,38 +96,50 @@ const config: Config = {
title: 'Docs', title: 'Docs',
items: [ items: [
{ {
label: 'Tutorial', label: '快速引导',
to: '/docs/intro', to: '/docs/intro',
}, },
], {
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',
}, },
{ {
title: 'Community', label: '获奖统计',
items: [ 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',
{
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: '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', title: 'More',
items: [ items: [
{ // {
label: 'Blog', // label: 'Blog',
to: '/blog', // to: '/blog',
}, // },
{ {
label: 'GitHub', label: 'GitHub',
href: 'https://github.com/facebook/docusaurus', href: 'https://github.com/sayurinana/huse-lab_source',
},
{
label: '门户页',
href: 'https://kdocs.cn/l/cb7Vib8JKlgk',
}, },
], ],
}, },

View File

@@ -1,4 +1,4 @@
import type {ReactNode} from 'react'; import type { ReactNode } from 'react';
import clsx from 'clsx'; import clsx from 'clsx';
import Heading from '@theme/Heading'; import Heading from '@theme/Heading';
import styles from './styles.module.css'; import styles from './styles.module.css';
@@ -10,39 +10,48 @@ type FeatureItem = {
}; };
const FeatureList: FeatureItem[] = [ const FeatureList: FeatureItem[] = [
{ // {
title: 'Easy to Use', // title: 'Easy to Use',
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, // Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
description: ( // description: (
<> // <>
Docusaurus was designed from the ground up to be easily installed and // Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly. // used to get your website up and running quickly.
</> // </>
), // ),
}, // },
{ // {
title: 'Focus on What Matters', // title: 'Focus on What Matters',
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, // Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
description: ( // description: (
<> // <>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go // Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
ahead and move your docs into the <code>docs</code> directory. // ahead and move your docs into the <code>docs</code> directory.
</> // </>
), // ),
}, // },
{ // {
title: 'Powered by React', // title: 'Powered by React',
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, // Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
description: ( // description: (
<> // <>
Extend or customize your website layout by reusing React. Docusaurus can // Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer. // be extended while reusing the same header and footer.
</> // </>
), // ),
}, // },
// {
// title: '由 Docusaurus && React 强力驱动',
// Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
// description: (
// <>
// 使用 <a href='https://docusaurus.io/zh-CN/'>Docusaurus</a> 构建的内容核心网站
// </>
// ),
// },
]; ];
function Feature({title, Svg, description}: FeatureItem) { function Feature({ title, Svg, description }: FeatureItem) {
return ( return (
<div className={clsx('col col--4')}> <div className={clsx('col col--4')}>
<div className="text--center"> <div className="text--center">

View File

@@ -21,7 +21,7 @@ function HomepageHeader() {
<Link <Link
className="button button--secondary button--lg" className="button button--secondary button--lg"
to="/docs/intro"> to="/docs/intro">
Docusaurus Tutorial - 5min
</Link> </Link>
</div> </div>
</div> </div>
@@ -33,7 +33,7 @@ export default function Home(): ReactNode {
const {siteConfig} = useDocusaurusContext(); const {siteConfig} = useDocusaurusContext();
return ( return (
<Layout <Layout
title={`Hello from ${siteConfig.title}`} title={`${siteConfig.title}`}
description="Description will go into a meta tag in <head />"> description="Description will go into a meta tag in <head />">
<HomepageHeader /> <HomepageHeader />
<main> <main>

1
static/CNAME Normal file
View File

@@ -0,0 +1 @@
huse-lab.online