Skip to content

Commit 624d101

Browse files
committed
Initial commit
0 parents  commit 624d101

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

+4625
-0
lines changed

.github/workflows/deploy.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy Rspress site to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
# Build job
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
27+
- uses: pnpm/action-setup@v3 # pnpm is optional but recommended, you can also use npm / yarn
28+
with:
29+
version: 9
30+
- name: Setup Node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: pnpm
35+
- name: Setup Pages
36+
uses: actions/configure-pages@v5
37+
- name: Install dependencies
38+
run: pnpm install
39+
- name: Build with Rspress
40+
run: |
41+
pnpm run build
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: doc_build
46+
47+
# Deployment job
48+
deploy:
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
needs: build
53+
runs-on: ubuntu-latest
54+
name: Deploy
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

.gitignore

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
.DS_Store
2+
3+
.pnp
4+
.pnp.js
5+
.env.local
6+
.env.*.local
7+
.history
8+
.rts*
9+
*.log*
10+
*.pid
11+
*.pid.*
12+
*.report
13+
*.lcov
14+
lib-cov
15+
16+
node_modules/
17+
.npm
18+
.lock-wscript
19+
.yarn-integrity
20+
.node_repl_history
21+
.nyc_output
22+
*.tsbuildinfo
23+
.sonarlint
24+
25+
dist/
26+
coverage/
27+
release/
28+
output/
29+
output_resource/
30+
log/
31+
32+
.vscode/**/*
33+
!.vscode/settings.json
34+
!.vscode/extensions.json
35+
.idea/
36+
37+
**/*/typings/auto-generated
38+
39+
.pnpm-store/
40+
41+
doc_build/

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["biomejs.biome", "unifiedjs.vscode-mdx"]
3+
}

.vscode/settings.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"[javascript]": {
3+
"editor.defaultFormatter": "biomejs.biome"
4+
},
5+
"[typescript]": {
6+
"editor.defaultFormatter": "biomejs.biome"
7+
},
8+
"[json]": {
9+
"editor.defaultFormatter": "vscode.json-language-features"
10+
},
11+
"[jsonc]": {
12+
"editor.defaultFormatter": "biomejs.biome"
13+
},
14+
"editor.formatOnSave": true,
15+
"editor.codeActionsOnSave": {
16+
"quickfix.biome": "explicit",
17+
"source.organizeImports.biome": "explicit"
18+
}
19+
}
20+
72.2 KB
Binary file not shown.
54.9 KB
Binary file not shown.

assets/fonts/SFPRODISPLAYBOLD.woff

131 KB
Binary file not shown.

assets/fonts/SFPRODISPLAYBOLD.woff2

95.8 KB
Binary file not shown.
79.7 KB
Binary file not shown.
60.6 KB
Binary file not shown.
80.3 KB
Binary file not shown.
61.3 KB
Binary file not shown.

assets/fonts/SFPRODISPLAYMEDIUM.woff

133 KB
Binary file not shown.

assets/fonts/SFPRODISPLAYMEDIUM.woff2

97.4 KB
Binary file not shown.

assets/fonts/SFPRODISPLAYREGULAR.woff

119 KB
Binary file not shown.
87.3 KB
Binary file not shown.
80.3 KB
Binary file not shown.
61 KB
Binary file not shown.
79.8 KB
Binary file not shown.
61.3 KB
Binary file not shown.
78.9 KB
Binary file not shown.
60.3 KB
Binary file not shown.

assets/styles/global.css

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
@font-face {
2+
font-family: sf pro display;
3+
font-style: italic;
4+
font-weight: 100;
5+
src: local('SF Pro Display'), url(../fonts/SFPRODISPLAYULTRALIGHTITALIC.woff2) format('woff2'), url(../fonts/SFPRODISPLAYULTRALIGHTITALIC.woff) format('woff');
6+
}
7+
8+
@font-face {
9+
font-family: sf pro display;
10+
font-style: italic;
11+
font-weight: 200;
12+
src: local('SF Pro Display'), url(../fonts/SFPRODISPLAYTHINITALIC.woff2) format('woff2'), url(../fonts/SFPRODISPLAYTHINITALIC.woff) format('woff');
13+
}
14+
15+
@font-face {
16+
font-family: sf pro display;
17+
font-style: italic;
18+
font-weight: 300;
19+
src: local('SF Pro Display'), url(../fonts/SFPRODISPLAYLIGHTITALIC.woff2) format('woff2'), url(../fonts/SFPRODISPLAYLIGHTITALIC.woff) format('woff');
20+
}
21+
22+
@font-face {
23+
font-family: sf pro display;
24+
font-style: normal;
25+
font-weight: 400;
26+
src: local('SF Pro Display'), url(../fonts/SFPRODISPLAYREGULAR.woff2) format('woff2'), url(../fonts/SFPRODISPLAYREGULAR.woff) format('woff');
27+
}
28+
29+
@font-face {
30+
font-family: sf pro display;
31+
font-style: normal;
32+
font-weight: 500;
33+
src: local('SF Pro Display'), url(../fonts/SFPRODISPLAYMEDIUM.woff2) format('woff2'), url(../fonts/SFPRODISPLAYMEDIUM.woff) format('woff');
34+
}
35+
36+
@font-face {
37+
font-family: sf pro display;
38+
font-style: italic;
39+
font-weight: 600;
40+
src: local('SF Pro Display'), url(../fonts/SFPRODISPLAYSEMIBOLDITALIC.woff2) format('woff2'), url(../fonts/SFPRODISPLAYSEMIBOLDITALIC.woff) format('woff');
41+
}
42+
43+
@font-face {
44+
font-family: sf pro display;
45+
font-style: normal;
46+
font-weight: 700;
47+
src: local('SF Pro Display'), url(../fonts/SFPRODISPLAYBOLD.woff2) format('woff2'), url(../fonts/SFPRODISPLAYBOLD.woff) format('woff');
48+
}
49+
50+
@font-face {
51+
font-family: sf pro display;
52+
font-style: italic;
53+
font-weight: 800;
54+
src: local('SF Pro Display'), url(../fonts/SFPRODISPLAYHEAVYITALIC.woff2) format('woff2'), url(../fonts/SFPRODISPLAYHEAVYITALIC.woff) format('woff');
55+
}
56+
57+
@font-face {
58+
font-family: sf pro display;
59+
font-style: italic;
60+
font-weight: 900;
61+
src: local('SF Pro Display'), url(../fonts/SFPRODISPLAYBLACKITALIC.woff2) format('woff2'), url(../fonts/SFPRODISPLAYBLACKITALIC.woff) format('woff');
62+
}
63+
64+
:root {
65+
--rp-font-family-base: 'SF Pro Display', 'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans',
66+
'Helvetica Neue', sans-serif;
67+
}

biome.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
3+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
4+
"files": { "ignoreUnknown": false, "ignore": [] },
5+
"formatter": {
6+
"enabled": true,
7+
"useEditorconfig": true,
8+
"formatWithErrors": false,
9+
"indentStyle": "space",
10+
"indentWidth": 2,
11+
"lineEnding": "lf",
12+
"lineWidth": 120,
13+
"attributePosition": "auto",
14+
"bracketSpacing": true
15+
},
16+
"organizeImports": { "enabled": true },
17+
"linter": {
18+
"enabled": true,
19+
"rules": {
20+
"recommended": true,
21+
"suspicious": {
22+
"noExplicitAny": "warn"
23+
},
24+
"complexity": {
25+
"noForEach": "off"
26+
}
27+
}
28+
},
29+
"javascript": {
30+
"formatter": {
31+
"jsxQuoteStyle": "double",
32+
"quoteProperties": "asNeeded",
33+
"trailingCommas": "all",
34+
"semicolons": "always",
35+
"arrowParentheses": "always",
36+
"bracketSameLine": false,
37+
"quoteStyle": "single",
38+
"attributePosition": "auto",
39+
"bracketSpacing": true
40+
}
41+
}
42+
}

changelog.handlebars

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: {{title}} - Changelog
3+
---
4+
5+
import { Badge } from '@theme';
6+
7+
8+
# {{title}}
9+
10+
11+
{{#each releases}}
12+
## [{{{this.name}}}]({{{this.html_url}}}) <span className='ml-2'>{{#if this.draft}}<Badge text='草稿' type='danger' outline />{{else if this.prerelease}}<Badge text='预发布' type='warning' outline />{{else}}<Badge text='正式版' type='tip' outline />{{/if}}</span>
13+
14+
{{{this.body}}}
15+
16+
17+
{{/each}}

docs/_meta.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[
2+
{
3+
"text": "文档",
4+
"link": "/guide/index",
5+
"activeMatch": "^/guide/"
6+
},
7+
{
8+
"text": "更新日志",
9+
"link": "/changelog/enhanced",
10+
"activeMatch": "^/changelog/"
11+
},
12+
{
13+
"text": "论坛",
14+
"link": "https://github.com/orgs/BiliUniverse/discussions",
15+
"activeMatch": "^/discussions/"
16+
},
17+
{
18+
"type": "custom-link",
19+
"text": "赞助",
20+
"link": "https://afdian.com/a/HashBrown",
21+
"activeMatch": "^/a/HashBrown"
22+
}
23+
]

docs/guide/1.1.1.1.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { ModuleInstall } from "@theme";
2+
import _Footer from "./_Footer.md";
3+
4+
# 1️⃣ 1.1.1.1 + WARP
5+
6+
<_Footer />

docs/guide/DNS.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { ModuleInstall } from "@theme";
2+
import _Footer from "./_Footer.md";
3+
4+
# 🇩 (D)DNS
5+
6+
<_Footer />

docs/guide/_Footer.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 相关链接
2+
3+
| [🇩<br/>(D)DNS](/guide/DNS) | [1️⃣<br/>1.1.1.1 + WARP](/guide/1.1.1.1) | [🧰<br/>BoxJs](/guide/box-js) |
4+
| :-------------------------: | :-------------------------------------: | :---------------------------: |

docs/guide/_meta.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"type": "file",
4+
"name": "index",
5+
"label": "预览"
6+
},
7+
"DNS",
8+
"1.1.1.1",
9+
"box-js",
10+
{
11+
"type": "dir",
12+
"name": "appendix",
13+
"label": "📖 附录",
14+
"collapsible": false
15+
}
16+
]
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import _Footer from "../_Footer.md";
2+
3+
# 鸣谢
4+
* [@app2smile](https://github.com/app2smile)
5+
* [@BlveRiv](https://github.com/Maasea)
6+
* [@chavyleung](https://github.com/chavyleung)
7+
* [@Choler](https://github.com/Choler)
8+
* [@fengchang](https://github.com/fengchang)
9+
* [@Hackl0us](https://github.com/Hackl0us)
10+
* [@Koolson](https://github.com/Koolson)
11+
* [@Loon0x00](https://github.com/Loon0x00)
12+
* [@LucaLin](https://github.com/LucaLin233)
13+
* [@mieq](https://github.com/mieqq)
14+
* [@MuTu](https://github.com/githubdulong)
15+
* [@NobyDa](https://github.com/NobyDa)
16+
* [@notoaus](https://github.com/notoaus)
17+
* [@Peng-YM](https://github.com/Peng-YM)
18+
* [@Shawn](https://github.com/KOP-XIAO)
19+
* [@shindgewongxj](https://github.com/shindgewongxj)
20+
* [STASH NETWORKS LIMITED](https://github.com/STASH-NETWORKS-LIMITED)
21+
* [@viannalau](https://github.com/StashNetworks)
22+
* [@Tartarus2014](https://github.com/Tartarus2014)
23+
* [@yichahucha](https://github.com/yichahucha)
24+
* [@zZPiglet](https://github.com/zZPiglet)
25+
26+
<_Footer />
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import _Footer from "../_Footer.md";
2+
3+
# 组件列表
4+
5+
| 组件名称 | 描述 |
6+
| :---: | :---: |
7+
| [utils](https://github.com/NSNanoCat/utils) | 基于 JavaScript 的通用环境 |
8+
| [URL](https://github.com/NSNanoCat/URL) | 基于 JavaScript 的 URL 解析工具 |
9+
10+
<_Footer />

0 commit comments

Comments
 (0)