-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5e66267
Showing
602 changed files
with
29,234 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: 部署文档 | ||
|
||
on: | ||
push: | ||
branches: | ||
# 确保这是你正在使用的分支名称 | ||
- v2 | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy-gh-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
# 如果你文档需要 Git 子模块,取消注释下一行 | ||
# submodules: true | ||
|
||
- name: 安装 pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
run_install: true | ||
version: 8 | ||
|
||
- name: 设置 Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
|
||
- name: 构建文档 | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
run: |- | ||
pnpm run docs:build | ||
> src/.vuepress/dist/.nojekyll | ||
- name: 部署文档 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
# 这是文档部署到的分支名称 | ||
branch: gh-pages | ||
folder: src/.vuepress/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# /.github | ||
/node_modules | ||
/src/.vuepress/.* | ||
/src/.vuepress/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# XMU-SmartDSP Website V2 | ||
|
||
## Introduction | ||
|
||
This project is for the website of LAB OF SMART DATA AND SIGNAL PROCESSING, XIAMEN UNIVERSITY, FUJIAN CHINA (SmartDSP). | ||
|
||
The first html version is built in 2018 and this V2 is built in 2023. | ||
|
||
This project is drived by [VuePress](https://v2.vuepress.vuejs.org/zh/) and [VuePress Theme Hope](https://theme-hope.vuejs.press/) | ||
|
||
It's builded by [HUII](https://github.com/huiiz). | ||
Refounded Date: 2023.10.31 | ||
|
||
## Run it | ||
|
||
You can start with: | ||
|
||
```sh | ||
git clone -b v2 https://github.com/XMU-smartdsp/XMU-smartdsp.github.io.git | ||
cd XMU-smartdsp.github.io | ||
pnpm install | ||
``` | ||
Then you can run it with | ||
```sh | ||
npm run docs:dev | ||
``` | ||
and build it with | ||
```sh | ||
npm run docs:build | ||
``` | ||
## Attenetion | ||
|
||
- Although there are some image files that have an uppercase suffix (e.g. IMG_8752.JPG), you need to change them to **lowercase** (e.g. IMG_8752.jpg) and reference them correctly in markdown. Please make sure that the images with the **correct filenames have been updated in GitHub**, otherwise the build may **fail** in GitHub. | ||
|
||
- You can get some help about the website config from [here](https://theme-hope.vuejs.press/zh/config/intro.html) | ||
|
||
## How to update the website? 如何更新网站? | ||
|
||
### News 新闻 | ||
|
||
新闻文件位于```src\news```文件夹下,命名按照```news日期.md```格式,参考文件夹下文件。如果一天内有多篇,可在后面加```_序号```,如```news20160308_2.md```表示2016年3月8日的第二篇。 | ||
|
||
新闻内容使用markdown格式,头部是新闻的基本信息: | ||
```markdown | ||
date: 日期,如:2022-07-18 | ||
category: | ||
- 分类 | ||
editLink: false(默认,无需更改) | ||
cover: 封面图,如:/news/newsimage0718/IMG_8752.jpg,可不填 | ||
``` | ||
|
||
注意: | ||
- 静态文件根目录为```src\.vuepress\public```,新闻图片统一放在```src\.vuepress\public\news```下。 | ||
- 图像文件后缀名以小写为宜,如```.jpg```,```.png```(大写后缀名可能导致报错) | ||
|
||
### 学术团队和毕业生资料维护 | ||
分别对应```src\team.md```和```src\graduate.md```文件,硕博与毕业生数据存放格式均为 | ||
```js | ||
{ | ||
入学/毕业年份: [ | ||
{ | ||
name: "姓名", | ||
avatar: "头像地址,这里只要填文件名即可,如fanzhiwen.jpg", | ||
title: "毕业去向", | ||
link: "个人主页", | ||
}, | ||
] | ||
} | ||
``` | ||
头像文件夹位于```src\.vuepress\public\assets\images\memberimage``` | ||
|
||
### 网站基础信息 | ||
|
||
网站相关配置位于```src\.vuepress```文件夹下的四个```.ts```文件中。 | ||
其他信息可以自行了解。 | ||
|
||
--- | ||
|
||
Welcome to our website: [https://xmu-smartdsp.github.io/](https://xmu-smartdsp.github.io/) | ||
|
||
All rights received by SmartDSP. |
Oops, something went wrong.