rearrange blog project
partially refered frg2089's blog. Those vuepress.*.ts have to be deployed at project root, according to vuepress docs.
This commit is contained in:
parent
f943cb484e
commit
58b0be9ea1
1
.github/workflows/deploy-docs.yml
vendored
1
.github/workflows/deploy-docs.yml
vendored
@ -8,6 +8,7 @@ on:
|
||||
paths:
|
||||
- .github/**
|
||||
- src/**
|
||||
- docs/**
|
||||
- public/**
|
||||
- package.json
|
||||
|
||||
|
13
docs/archives/README.md
Normal file
13
docs/archives/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
title: 结论归档
|
||||
index: false
|
||||
article: false
|
||||
timeline: false
|
||||
icon: folder-open
|
||||
category: ''
|
||||
---
|
||||
|
||||
<Catalog />
|
||||
|
||||
> [!note]
|
||||
> 这边的文档格式上更接近经管毕业论文。毕竟我不是工科伸,没写过真正的「实验报告」。
|
@ -308,8 +308,10 @@ def selection_getC():
|
||||
|
||||
首先考虑局部变量的位置。C 语言里的局部变量不允许在声明之前就使用:
|
||||
```c
|
||||
// 我们就假定你的 main.cpp 就这么点,
|
||||
// 甭纠结全局有没有 i 了。
|
||||
int main(void) { // buxv
|
||||
i += 1; // 全局也没有 i,我们就假定你的 main.cpp 就这么点。别杠了。
|
||||
i += 1;
|
||||
int i;
|
||||
}
|
||||
```
|
@ -14,5 +14,5 @@ article: false
|
||||
> [!tip]
|
||||
> ::: center
|
||||
> 愿意跟窝贴贴的萌萌壬们……
|
||||
> [Pull Request 大欢迎(?)](https://github.com/ChlorideP/ChlorideP.github.io/edit/main/src/.vuepress/friends.ts)
|
||||
> [Pull Request 大欢迎(?)](https://github.com/ChlorideP/ChlorideP.github.io/edit/main/src/friends.ts)
|
||||
> :::
|
@ -3,7 +3,6 @@ category:
|
||||
- 逆向工程
|
||||
- RA2
|
||||
tag:
|
||||
- 地图编辑
|
||||
- Syringe
|
||||
- 进程注入
|
||||
---
|
@ -8,7 +8,7 @@ tag:
|
||||
- 设计模型
|
||||
---
|
||||
|
||||
# 抛砖引玉 ——「单刀双掷开关」触发模型
|
||||
# 「单刀双掷开关」触发模型
|
||||
|
||||
::: note
|
||||
本文探讨的「单刀双掷开关」模型系笔者实现抢电厂的触发逻辑之后,得出的一个名字。相比起「状态机」,前者更精确地描述了抢电厂的实际情况。
|
||||
@ -123,7 +123,7 @@ if (switchVarIdx > 1024 && switchVarIdx <= 2048) { // 即 1024 < switchVarIdx <
|
||||
不单单是物理,像「状态机」原本也是个数学模型,用在程序设计里倒是也有,但用在触发实现的应该不多。
|
||||
总而言之,还是那句话,触发这玩意很考验逻辑思维。而通过不断地解构需求、得出思路,最终用「实现」去达成目的,这正是做触发与敲代码的乐趣。
|
||||
|
||||
当然,写下这篇笔记一是为了整理自己的认识,免得久而不用日渐生疏,如过眼云烟;二如标题所述,「抛砖引玉」。
|
||||
当然,写下这篇笔记一是为了整理自己的认识,免得久而不用日渐生疏,如过眼云烟;二嘛,正所谓「抛砖引玉」。
|
||||
我自知自己学艺不精,玩的都是别人早就搞出来的东西,止增笑耳。这次整理也算是个契机,让我主动了解别的程序设计模型,也算是给我长长见识。
|
||||
|
||||
Thanks for reading.
|
13
docs/notes/README.md
Normal file
13
docs/notes/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
title: 实验笔记
|
||||
index: false
|
||||
article: false
|
||||
timeline: false
|
||||
icon: book
|
||||
category: ''
|
||||
---
|
||||
|
||||
<Catalog />
|
||||
|
||||
> [!note]
|
||||
> 虽然说是笔记,但规格大概也和 CSDN、知乎之流的文章差不多。主要是些零星的发现。
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "chloridep-blog",
|
||||
"version": "0.0.1",
|
||||
"version": "0.1.0",
|
||||
"description": "ChlorideP Personal Blogs",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"docs:build": "vuepress-vite build src",
|
||||
"docs:clean-dev": "vuepress-vite dev src --clean-cache",
|
||||
"docs:dev": "vuepress-vite dev src",
|
||||
"docs:build": "vuepress-vite build docs",
|
||||
"docs:clean-dev": "vuepress-vite dev docs --clean-cache",
|
||||
"docs:dev": "vuepress-vite dev docs",
|
||||
"docs:update-package": "pnpm dlx vp-update"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -1,10 +0,0 @@
|
||||
---
|
||||
title: 结论归档
|
||||
index: false
|
||||
article: false
|
||||
timeline: false
|
||||
icon: folder-open
|
||||
category: ''
|
||||
---
|
||||
|
||||
<Catalog />
|
@ -1,10 +0,0 @@
|
||||
---
|
||||
title: 实验笔记
|
||||
index: false
|
||||
article: false
|
||||
timeline: false
|
||||
icon: book
|
||||
category: ''
|
||||
---
|
||||
|
||||
<Catalog />
|
@ -5,8 +5,9 @@
|
||||
"target": "ES2022"
|
||||
},
|
||||
"include": [
|
||||
"src/.vuepress/**/*.ts",
|
||||
"src/.vuepress/**/*.vue"
|
||||
"vuepress.*.ts",
|
||||
"src/**/*.ts",
|
||||
"src/**/*.vue"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { defineClientConfig } from 'vuepress/client'
|
||||
import FriendsHome from './layouts/FriendsHome.vue'
|
||||
import FriendsHome from './src/layouts/FriendsHome.vue'
|
||||
|
||||
export default defineClientConfig({
|
||||
layouts: { FriendsHome },
|
@ -1,5 +1,5 @@
|
||||
import { defineUserConfig } from "vuepress";
|
||||
import theme from "./theme.js";
|
||||
import theme from "./vuepress.theme.js";
|
||||
|
||||
export default defineUserConfig({
|
||||
base: "/",
|
@ -1,6 +1,6 @@
|
||||
import { hopeTheme } from "vuepress-theme-hope";
|
||||
import navbar from "./navbar.js";
|
||||
import sidebar from "./sidebar.js";
|
||||
import navbar from "./src/navbar.js";
|
||||
import sidebar from "./src/sidebar.js";
|
||||
|
||||
export default hopeTheme(
|
||||
{
|
||||
@ -17,7 +17,7 @@ export default hopeTheme(
|
||||
|
||||
repo: "ChlorideP/chloridep.github.io",
|
||||
|
||||
docsDir: "src",
|
||||
docsDir: "docs",
|
||||
|
||||
// 导航栏
|
||||
navbar,
|
Loading…
x
Reference in New Issue
Block a user