Skip to content

Commit

Permalink
feat: use a more graceful index page
Browse files Browse the repository at this point in the history
  • Loading branch information
ozline committed Jun 4, 2024
1 parent d0a6604 commit e849b6f
Show file tree
Hide file tree
Showing 15 changed files with 186 additions and 183 deletions.
12 changes: 0 additions & 12 deletions blog/2019-05-28-first-blog-post.md

This file was deleted.

44 changes: 0 additions & 44 deletions blog/2019-05-29-long-blog-post.md

This file was deleted.

20 changes: 0 additions & 20 deletions blog/2021-08-01-mdx-blog-post.mdx

This file was deleted.

Binary file not shown.
25 changes: 0 additions & 25 deletions blog/2021-08-26-welcome/index.md

This file was deleted.

17 changes: 0 additions & 17 deletions blog/authors.yml

This file was deleted.

16 changes: 0 additions & 16 deletions blog/tags.yml

This file was deleted.

24 changes: 24 additions & 0 deletions docs/contact.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
sidebar_position: 5
---

# 联系我们

## 实体地点

:::warning

更多的还是以线上交流为主啦

:::

- 福州大学学生生活区 3 区 31 号楼 2 楼活动室
- 福州大学计算机与大数据学院 3 号楼 206
- 福州大学国家大学科技园 7 号楼 106 室

## 线上渠道

- 纳新交流群:765360777(QQ)
- 转专业交流群:1136717485(QQ)

- 邮箱:[[email protected]](mailto:[email protected])
5 changes: 5 additions & 0 deletions docs/member.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 3
---

# 成员列表
11 changes: 11 additions & 0 deletions docs/recruitment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
sidebar_position: 4
---

# 加入我们

:::tip

更多信息,欢迎访问:[west2-online's everything!](https://west2-online.feishu.cn/wiki/CFkrwmyUsi5lmVkCYjOcKX2znGb)

:::
46 changes: 27 additions & 19 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,38 @@ const config: Config = {
title: 'west2-online',
tagline: '福州大学西二在线工作室',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://site.west2.online',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',

// GitHub pages deployment config.
// Github pages 配置
organizationName: 'west2-online', // Github Organization 名称
projectName: 'website', // 仓库名称
deploymentBranch: 'gh-pages', // 部署分支
trailingSlash: false, // 是否保留尾部斜杠


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: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
editUrl: // 编辑路径前缀
'https://github.com/west2-online/website/tree/main/',
sidebarCollapsed: true,
},
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/',
},
Expand All @@ -56,8 +48,21 @@ const config: Config = {
],
],

// 插件
plugins: [

],

// 主题配置
themeConfig: {
image: 'img/docusaurus-social-card.jpg',

colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},

// 首页置顶的公告栏,尽量一句话结束
announcementBar: {
id: 'new_info',
Expand All @@ -67,18 +72,19 @@ const config: Config = {
textColor: '#091E42',
isCloseable: false,
},

// 导航栏
navbar: {
title: 'west2-online',
logo: {
alt: 'My Site Logo',
alt: 'west2-online logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
to: '/docs/member',
position: 'left',
label: '关于我们',
label: '成员列表',
},
{
type: 'dropdown',
Expand Down Expand Up @@ -139,10 +145,12 @@ const config: Config = {
},
],
},

// 页脚
footer: {
style: 'dark',
links: [],
copyright: `Copyright © ${new Date().getFullYear()} west2-online, Inc. Built with Docusaurus. <a href="https://beian.miit.gov.cn/#/Integrated/index">闽ICP备19020557号-3</a>`,
links: [], // 这部分可以从docusaurus 文档中复现,我们删除了
copyright: `Copyright © ${new Date().getFullYear()} west2-online, Inc. 网站使用 Docusaurus 构建. <a href="https://beian.miit.gov.cn/#/Integrated/index">闽ICP备19020557号-3</a>`,
},
prism: {
theme: prismThemes.github,
Expand Down
Loading

0 comments on commit e849b6f

Please sign in to comment.