Skip to content

Commit 8e6fa03

Browse files
committed
feat: init
0 parents  commit 8e6fa03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4066
-0
lines changed

.browserslistrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
> 1%
2+
last 2 versions
3+
not dead
4+
not ie 11

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build:
12+
name: Build
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0 # if lastUpdated is not enabled, no need to set
19+
20+
- uses: pnpm/action-setup@v4
21+
with:
22+
version: 8
23+
run_install: false
24+
# - uses: oven-sh/setup-bun@v2
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: pnpm
31+
32+
- name: Install dependencies
33+
run: pnpm install
34+
35+
- name: Build
36+
run: pnpm docs:build

.github/workflows/deploy.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
# manual trigger
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# only allow one deployment at a time, skip the queue if there's one running and the latest in queue
18+
concurrency:
19+
group: pages
20+
cancel-in-progress: false
21+
22+
jobs:
23+
build:
24+
name: Build
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0 # if lastUpdated is not enabled, no need to set
31+
32+
- uses: pnpm/action-setup@v4
33+
with:
34+
version: 8
35+
run_install: false
36+
# - uses: oven-sh/setup-bun@v2
37+
38+
- name: Setup Node.js
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: 20
42+
cache: pnpm
43+
44+
- name: Setup Pages
45+
uses: actions/configure-pages@v4
46+
47+
- name: Install dependencies
48+
run: pnpm install
49+
50+
- name: Build
51+
run: pnpm docs:build
52+
53+
- name: Upload artifact
54+
uses: actions/upload-pages-artifact@v3
55+
with:
56+
path: dist
57+
58+
59+
deploy:
60+
name: Deploy
61+
runs-on: ubuntu-latest
62+
needs: build
63+
environment:
64+
name: github-pages
65+
url: ${{ steps.deployment.outputs.page_url }}
66+
steps:
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
3+
/.cache/
4+
/dist/

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
public-hoist-pattern[]=@vue/runtime-core
2+
public-hoist-pattern[]=@types/*

.vitepress/config.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import VitePressConfig from '../vitepress.config'
2+
3+
export default VitePressConfig

.vitepress/theme/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import Theme from '@/index.ts'
2+
export default Theme

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 NewStar CTF
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# NewStar CTF
2+
3+
This project is a documentation website for NewStar CTF.
4+
5+
## Build the project
6+
7+
Clone the project and install the dependencies with your preferred package manager.
8+
9+
```shell
10+
pnpm install
11+
```
12+
13+
Run package command to build the document.
14+
15+
```shell
16+
pnpm run docs:build
17+
```
18+
19+
Files will be generated in the `dist` directory at the root of the project.
20+
21+
## Development
22+
23+
VitePress configuration is located at [vitepress.config.ts](./vitepress.config.ts).
24+
25+
Theme configuration is located at [theme-config.yml](./theme-config.yml). It's mostly nav and sitebar configuration. For other theme configurations, it's recommended to modify [vitepress.config.ts](./vitepress.config.ts) with type hints.
26+
27+
Theme at [theme/](./theme/), which has path alias `@`.
28+
29+
All the documentations are located at [docs/](./docs/), which has the path alias `@docs`.
30+
31+
To use Vue in markdown, related components are most defined at [theme/components/docs/](./theme/components/docs/).
32+
33+
## License
34+
35+
Copyright (c) NewStar CTF. All rights reserved.
36+
37+
Licensed under the [MIT](LICENSE) License.

docs/guide/2024/index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: 参考文档
3+
titleTemplate: ':title - NewStar CTF 2024'
4+
---
5+
6+
# NewStar CTF 2024 × 春秋杯
7+
8+
赛事 QQ 群:1169651901
9+
10+
## 赛事时间
11+
12+
公开赛道:2024 年 9 月 30 日 09:00 - 2024 年 11 月 3 日 21:00
13+
14+
校内赛道:2024 年 9 月 23 日 09:00 - 2024 年 10 月 27 日 21:00
15+
16+
## 组织方式
17+
18+
### 发起方
19+
20+
西安工业大学、中国矿业大学、中国人民公安大学、东北大学秦皇岛分校、海南大学、南京理工大学、广东工业大学、江南大学、浙江师范大学、福建师范大学、中山大学、太原理工大学、中国人民警察大学
21+
22+
### 赞助及合作名单
23+
24+
永信至诚、京东安全

0 commit comments

Comments
 (0)