Merge pull request '更新依赖;添加2022级特刊空模板;迁移包管理器至pnpm' (#1) from dev into main
Reviewed-on: jjnwxs/jingji_spbook_vue#1
This commit is contained in:
commit
213b03ac48
47
.gitea/workflows/deploy.yaml
Normal file
47
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,47 @@
|
||||
name: deploying-doc
|
||||
run-name: Deploying doc — ${{ gitea.run_id }}
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: 45 00 * * 1
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
steps:
|
||||
- name: 🚚 Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: 🔧Install pnpm
|
||||
with:
|
||||
version: 10
|
||||
run_install: false
|
||||
|
||||
- name: 🔧Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: 🔧Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: 🔴Build doc
|
||||
run: pnpm run docs:build
|
||||
|
||||
- name: 🚀 Deploy to Cloudflare Pages
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy ./src/.vuepress/dist --project-name=jingji-spbook-vue --branch=main
|
@ -6,17 +6,17 @@
|
||||
- volta
|
||||
1. 建议使用 [volta](https://volta.sh/) 安装 [Node.js](https://nodejs.org/)
|
||||
```sh
|
||||
volta install node@16
|
||||
volta install node@20
|
||||
```
|
||||
2. 安装依赖
|
||||
```sh
|
||||
npm i
|
||||
pnpm i
|
||||
```
|
||||
3. 本地预览
|
||||
```sh
|
||||
npm run docs:dev
|
||||
pnpm run docs:dev
|
||||
```
|
||||
4. 构建静态页面。构建完成的网页会保存在 ``src\.vuepress\dist``
|
||||
```sh
|
||||
npm run docs:build
|
||||
pnpm run docs:build
|
||||
```
|
||||
|
4712
package-lock.json
generated
4712
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -10,12 +10,16 @@
|
||||
"docs:update-package": "npx vp-update"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.13",
|
||||
"vue": "^3.4.27",
|
||||
"vuepress": "2.0.0-rc.13",
|
||||
"vuepress-theme-hope": "2.0.0-rc.48"
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.21",
|
||||
"vue": "^3.5.13",
|
||||
"vuepress": "2.0.0-rc.21",
|
||||
"vuepress-theme-hope": "2.0.0-rc.82"
|
||||
},
|
||||
"volta": {
|
||||
"node": "20.11.0"
|
||||
},
|
||||
"packageManager": "pnpm@10.8.1+sha512.c50088ba998c67b8ca8c99df8a5e02fd2ae2e2b29aaf238feaa9e124248d3f48f9fb6db2424949ff901cffbb5e0f0cc1ad6aedb602cd29450751d11c35023677",
|
||||
"dependencies": {
|
||||
"mathjax-full": "^3.2.2"
|
||||
}
|
||||
}
|
||||
|
4382
pnpm-lock.yaml
generated
Normal file
4382
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -5,6 +5,7 @@ export default navbar([
|
||||
{
|
||||
text: '高三特刊',
|
||||
children: [
|
||||
{ text: "2022级特刊", link: '/2022/' },
|
||||
{ text: '2021级特刊', link: '/2021/' },
|
||||
{ text: '2020级特刊', link: '/2020/' },
|
||||
]
|
||||
|
@ -7,6 +7,13 @@ export default sidebar({
|
||||
text: '简介',
|
||||
link: "introduce.md"
|
||||
},
|
||||
{
|
||||
text: "2022级特刊",
|
||||
prefix: "2022/",
|
||||
link: "2022/",
|
||||
children: "structure",
|
||||
collapsible: true
|
||||
},
|
||||
{
|
||||
text: "2021级特刊",
|
||||
prefix: "2021/",
|
||||
|
@ -1,3 +1,2 @@
|
||||
// you can change config here
|
||||
$colors: #c0392b, #d35400, #f39c12, #27ae60, #16a085, #2980b9, #8e44ad, #2c3e50,
|
||||
#7f8c8d !default;
|
||||
$theme-color: #096dd9 !default;
|
||||
|
@ -3,23 +3,15 @@ import navbar from "./navbar.js";
|
||||
import sidebar from "./sidebar.js";
|
||||
|
||||
export default hopeTheme({
|
||||
hostname: "http://szhh.hr98.net/",
|
||||
hostname: "https://sp.jjnwxs.cn",
|
||||
|
||||
author: {
|
||||
name: "荆棘鸟文学社",
|
||||
url: "https://github.com/szhhwh/",
|
||||
url: "https://gitee.com/jjnwxs_official/jingji_spbook_vue",
|
||||
},
|
||||
|
||||
iconAssets: "fontawesome-with-brands",
|
||||
|
||||
logo: "/logo.png",
|
||||
logoDark: '/logo-dark.png',
|
||||
|
||||
// Github
|
||||
repo: "szhhwh/jingji_spbook_vue",
|
||||
lastUpdated: false,
|
||||
contributors: false,
|
||||
editLink: false,
|
||||
repoDisplay: false,
|
||||
|
||||
docsDir: "src",
|
||||
@ -37,65 +29,36 @@ export default hopeTheme({
|
||||
|
||||
displayFooter: true,
|
||||
|
||||
// encrypt: {
|
||||
// config: {
|
||||
// "/demo/encrypt.html": ["1234"],
|
||||
// },
|
||||
// },
|
||||
|
||||
// page meta
|
||||
metaLocales: {
|
||||
editLink: "在 GitHub 上编辑此页",
|
||||
editLink: "在 Gitee 上查看此页",
|
||||
},
|
||||
|
||||
plugins: {
|
||||
// You should generate and use your own comment service
|
||||
// comment: {
|
||||
// provider: "Giscus",
|
||||
// repo: "vuepress-theme-hope/giscus-discussions",
|
||||
// repoId: "R_kgDOG_Pt2A",
|
||||
// category: "Announcements",
|
||||
// categoryId: "DIC_kwDOG_Pt2M4COD69",
|
||||
// },
|
||||
icon: { assets: "fontawesome" },
|
||||
|
||||
// All features are enabled for demo, only preserve features you need here
|
||||
mdEnhance: {
|
||||
align: false,
|
||||
attrs: false,
|
||||
chart: false,
|
||||
codetabs: false,
|
||||
demo: false,
|
||||
echarts: false,
|
||||
},
|
||||
markdown: {
|
||||
include: true,
|
||||
vPre: true,
|
||||
figure: true,
|
||||
flowchart: false,
|
||||
gfm: true,
|
||||
imgLazyload: true,
|
||||
imgSize: true,
|
||||
include: true,
|
||||
katex: false,
|
||||
math: {
|
||||
type: "mathjax"
|
||||
},
|
||||
codeTabs: false,
|
||||
tabs: true,
|
||||
align: false,
|
||||
attrs: false,
|
||||
mark: true,
|
||||
mermaid: false,
|
||||
playground: {
|
||||
presets: ["ts", "vue"],
|
||||
},
|
||||
stylize: [
|
||||
{
|
||||
matcher: "Recommended",
|
||||
replacer: ({ tag }) => {
|
||||
if (tag === "em")
|
||||
return {
|
||||
tag: "Badge",
|
||||
attrs: { type: "tip" },
|
||||
content: "Recommended",
|
||||
};
|
||||
},
|
||||
},
|
||||
],
|
||||
sub: true,
|
||||
sup: true,
|
||||
tabs: true,
|
||||
vPre: true,
|
||||
chartjs: false,
|
||||
demo: false,
|
||||
echarts: false,
|
||||
flowchart: false,
|
||||
mermaid: false,
|
||||
vuePlayground: false,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
7
src/2022/2201.md
Normal file
7
src/2022/2201.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2201班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2201班
|
||||
---
|
7
src/2022/2202.md
Normal file
7
src/2022/2202.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2202班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2202班
|
||||
---
|
7
src/2022/2203.md
Normal file
7
src/2022/2203.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2203班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2203班
|
||||
---
|
7
src/2022/2204.md
Normal file
7
src/2022/2204.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2204班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2204班
|
||||
---
|
7
src/2022/2205.md
Normal file
7
src/2022/2205.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2205班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2205班
|
||||
---
|
7
src/2022/2206.md
Normal file
7
src/2022/2206.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2206班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2206班
|
||||
---
|
7
src/2022/2207.md
Normal file
7
src/2022/2207.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2207班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2207班
|
||||
---
|
7
src/2022/2208.md
Normal file
7
src/2022/2208.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2208班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2208班
|
||||
---
|
7
src/2022/2209.md
Normal file
7
src/2022/2209.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2209班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2209班
|
||||
---
|
7
src/2022/2210.md
Normal file
7
src/2022/2210.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2210班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2210班
|
||||
---
|
7
src/2022/2211.md
Normal file
7
src/2022/2211.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2211班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2211班
|
||||
---
|
7
src/2022/2212.md
Normal file
7
src/2022/2212.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2212班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2212班
|
||||
---
|
7
src/2022/2213.md
Normal file
7
src/2022/2213.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2213班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2213班
|
||||
---
|
7
src/2022/2214.md
Normal file
7
src/2022/2214.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2214班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2214班
|
||||
---
|
7
src/2022/2215.md
Normal file
7
src/2022/2215.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2215班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2215班
|
||||
---
|
7
src/2022/2216.md
Normal file
7
src/2022/2216.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2216班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2216班
|
||||
---
|
7
src/2022/2217.md
Normal file
7
src/2022/2217.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2217班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2217班
|
||||
---
|
7
src/2022/2218.md
Normal file
7
src/2022/2218.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2218班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2218班
|
||||
---
|
7
src/2022/2219.md
Normal file
7
src/2022/2219.md
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 2219班
|
||||
category:
|
||||
- 2022级特刊
|
||||
tag:
|
||||
- 2219班
|
||||
---
|
8
src/2022/README.md
Normal file
8
src/2022/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: 2022 级高三特刊
|
||||
index: false
|
||||
---
|
||||
|
||||
因篇幅受限未能编入特刊的部分可以在此查看。
|
||||
|
||||
如有发现本班内容存在错误/缺漏,请邮件联系 szhhlionhao@qq.com
|
@ -2,13 +2,20 @@
|
||||
title: 荆棘鸟文学社高三特刊
|
||||
index: false
|
||||
---
|
||||
|
||||
因篇幅受限未能编入特刊的部分可以在此查看。
|
||||
|
||||
## 近期更新
|
||||
|
||||
### 2025.4.25
|
||||
|
||||
- 添加 2022 级高三特刊
|
||||
|
||||
### 2024.3.15
|
||||
|
||||
- 添加 2021 级高三特刊内容
|
||||
|
||||
### 2024.2.12
|
||||
|
||||
- 迁移 [VuePress Theme Hope](https://theme-hope.vuejs.press/zh/) 至 V2
|
||||
- 关闭打印按钮/Github 相关信息显示
|
||||
- 更新主页版权信息
|
||||
|
Loading…
x
Reference in New Issue
Block a user