Skip to content

Commit 4b26b06

Browse files
committed
feat: add support for vitepress
1 parent 1699e05 commit 4b26b06

72 files changed

Lines changed: 1684 additions & 485 deletions

Some content is hidden

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

‎.npmrc‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# store-dir=~/.pnpm-store
2+
virtual-store-dir=/Users/wwfyde/.cache/pnpm-virtual-store/TechNotes
3+
#modules-dir=/Users/wwfyde/pnpm-module/TechNotes
4+

‎.vitepress/config.ts‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ import {defineConfig} from 'vitepress'
22

33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
5-
5+
markdown: {
6+
math: true
7+
},
68
title: "技术笔记",
7-
description: "Kayn的个人技术笔记",
9+
description: "个人技术笔记",
10+
cleanUrls: true, // 强烈建议开启,去掉 .html 后缀
11+
ignoreDeadLinks: true,
812
lastUpdated: true,
13+
// srcDir: ".",
914
themeConfig: {
1015
// https://vitepress.dev/reference/default-theme-config
1116
// search: {
@@ -104,13 +109,14 @@ export default defineConfig({
104109
copyright: 'Copyright © 2019-present Evan You'
105110
}
106111
},
112+
rewrites: {
113+
'领域术语/服装.md': 'pkg-a/index.md',
114+
'packages/pkg-a/src/foo.md': 'pkg-a/foo.md',
115+
'packages/pkg-b/src/index.md': 'pkg-b/index.md',
116+
'packages/pkg-b/src/bar.md': 'pkg-b/bar.md'
117+
},
107118
srcExclude: [
108-
"Web-技术参考.md",
109119
"interview/**",
110-
"参考手册.md",
111-
"图形设计.md",
112-
"数学题.md",
113-
"数学.md",
114120
"resume/**",
115121
"temp/**",
116122
"Archived/**"

‎API.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
### Pictures
2929

30-
![D859272B-5D73-433E-B33F-3A47FFF56BED_1_102_o](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/202403181012708.jpeg)
30+
![D859272B-5D73-433E-B33F-3A47FFF56BED_1_102_o](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/202403181012708.jpeg)
3131

3232
## API References
3333

@@ -38,6 +38,7 @@
3838
- https://docs.stripe.com/api
3939
- https://docs.digitalocean.com/reference/api/digitalocean
4040
- https://developer.paypal.com/api/rest/current-resources/
41+
- https://chatgpt.com/codex/cloud/settings/apireference
4142

4243
## 设计原则
4344

@@ -49,7 +50,7 @@
4950

5051

5152

52-
![No alternative text description for this image](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/202312241525349.jpeg)
53+
![No alternative text description for this image](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/202312241525349.jpeg)
5354

5455

5556

@@ -324,7 +325,7 @@ APP_ENV
324325

325326
- [How to Design a Good API?](https://blog.bytebytego.com/p/how-to-design-a-good-api)
326327

327-
![img](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/202505091535830.jpeg)
328+
![img](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/202505091535830.jpeg)
328329

329330

330331

‎Agent.md‎

Lines changed: 187 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### Links
88

9-
- [微信::觉学社::智能体软件工程 #3 |重新思考版本控制](https://mp.weixin.qq.com/s/-kZ-xyj_RZgCB7JgMkAeOw)
9+
- [微信==觉学社==智能体软件工程 #3 |重新思考版本控制](https://mp.weixin.qq.com/s/-kZ-xyj_RZgCB7JgMkAeOw)
1010

1111

1212

@@ -30,11 +30,196 @@
3030

3131
### Links
3232

33-
- [docs::official::agent-skills](https://agentskills.io/home)
33+
- [docs==official==agent-skills](https://agentskills.io/home)
3434

3535
### what
3636

3737
- A skill is a set of instructions - packaged as a simple folder - that teaches Claude how to handle specific tasks or workflows. Skills are one of the most powerful ways to customize Claude for your specific needs.
3838

3939

4040

41+
## gemini enterprise agent platform
42+
43+
44+
45+
### links
46+
47+
- [**ntroducing Gemini Enterprise Agent Platform**](https://cloud.google.com/blog/products/ai-machine-learning/introducing-gemini-enterprise-agent-platform)
48+
49+
50+
51+
![https://storage.googleapis.com/gweb-cloudblog-publish/images/1_0_gemini_enterprise_agent_platform.max-2200x2200.jpg](https://storage.googleapis.com/gweb-cloudblog-publish/images/1_0_gemini_enterprise_agent_platform.max-2200x2200.jpg)
52+
53+
# API
54+
55+
56+
57+
## Chat Completions
58+
59+
60+
61+
## Responses API
62+
63+
64+
65+
## Messages API
66+
67+
> links
68+
>
69+
> - [anthropic-sdk-typescript](https://github.com/anthropics/anthropic-sdk-typescript)
70+
71+
### Content
72+
73+
https://github.com/anthropics/anthropic-sdk-typescript/blob/main/src/resources/messages/messages.ts
74+
75+
```typescript
76+
export type ContentBlock =
77+
| TextBlock
78+
| ThinkingBlock
79+
| RedactedThinkingBlock
80+
| ToolUseBlock
81+
| ServerToolUseBlock
82+
| WebSearchToolResultBlock
83+
| WebFetchToolResultBlock
84+
| CodeExecutionToolResultBlock
85+
| BashCodeExecutionToolResultBlock
86+
| TextEditorCodeExecutionToolResultBlock
87+
| ToolSearchToolResultBlock
88+
| ContainerUploadBlock;
89+
```
90+
91+
### Message
92+
93+
```typescript
94+
export interface Message {
95+
/**
96+
* Unique object identifier.
97+
*
98+
* The format and length of IDs may change over time.
99+
*/
100+
id: string;
101+
102+
/**
103+
* Information about the container used in the request (for the code execution
104+
* tool)
105+
*/
106+
container: Container | null;
107+
108+
/**
109+
* Content generated by the model.
110+
*
111+
* This is an array of content blocks, each of which has a `type` that determines
112+
* its shape.
113+
*
114+
* Example:
115+
*
116+
* ```json
117+
* [{ "type": "text", "text": "Hi, I'm Claude." }]
118+
* ```
119+
*
120+
* If the request input `messages` ended with an `assistant` turn, then the
121+
* response `content` will continue directly from that last turn. You can use this
122+
* to constrain the model's output.
123+
*
124+
* For example, if the input `messages` were:
125+
*
126+
* ```json
127+
* [
128+
* {
129+
* "role": "user",
130+
* "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
131+
* },
132+
* { "role": "assistant", "content": "The best answer is (" }
133+
* ]
134+
* ```
135+
*
136+
* Then the response `content` might be:
137+
*
138+
* ```json
139+
* [{ "type": "text", "text": "B)" }]
140+
* ```
141+
*/
142+
content: Array<ContentBlock>;
143+
144+
/**
145+
* The model that will complete your prompt.
146+
*
147+
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
148+
* details and options.
149+
*/
150+
model: Model;
151+
152+
/**
153+
* Conversational role of the generated message.
154+
*
155+
* This will always be `"assistant"`.
156+
*/
157+
role: 'assistant';
158+
159+
/**
160+
* Structured information about a refusal.
161+
*/
162+
stop_details: RefusalStopDetails | null;
163+
164+
/**
165+
* The reason that we stopped.
166+
*
167+
* This may be one the following values:
168+
*
169+
* - `"end_turn"`: the model reached a natural stopping point
170+
* - `"max_tokens"`: we exceeded the requested `max_tokens` or the model's maximum
171+
* - `"stop_sequence"`: one of your provided custom `stop_sequences` was generated
172+
* - `"tool_use"`: the model invoked one or more tools
173+
* - `"pause_turn"`: we paused a long-running turn. You may provide the response
174+
* back as-is in a subsequent request to let the model continue.
175+
* - `"refusal"`: when streaming classifiers intervene to handle potential policy
176+
* violations
177+
*
178+
* In non-streaming mode this value is always non-null. In streaming mode, it is
179+
* null in the `message_start` event and non-null otherwise.
180+
*/
181+
stop_reason: StopReason | null;
182+
183+
/**
184+
* Which custom stop sequence was generated, if any.
185+
*
186+
* This value will be a non-null string if one of your custom stop sequences was
187+
* generated.
188+
*/
189+
stop_sequence: string | null;
190+
191+
/**
192+
* Object type.
193+
*
194+
* For Messages, this is always `"message"`.
195+
*/
196+
type: 'message';
197+
198+
/**
199+
* Billing and rate-limit usage.
200+
*
201+
* Anthropic's API bills and rate-limits by token counts, as tokens represent the
202+
* underlying cost to our systems.
203+
*
204+
* Under the hood, the API transforms requests into a format suitable for the
205+
* model. The model's output then goes through a parsing stage before becoming an
206+
* API response. As a result, the token counts in `usage` will not match one-to-one
207+
* with the exact visible content of an API request or response.
208+
*
209+
* For example, `output_tokens` will be non-zero, even for an empty string response
210+
* from Claude.
211+
*
212+
* Total input tokens in a request is the summation of `input_tokens`,
213+
* `cache_creation_input_tokens`, and `cache_read_input_tokens`.
214+
*/
215+
usage: Usage;
216+
}
217+
```
218+
219+
220+
221+
222+
223+
224+
225+
## Interaction API
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ export default {
831831

832832
- 默认匹配:`/\.css$/`。
833833
- 一个 `.vue` 文件可以包含多个 `` 标签。
834-
- <style> 标签可以有 scoped 或者 module 属性 (查看 scoped CSS和 CSS Modules) 以帮助你将样式封装到当前组件。具有不同封装模式的多个 <style> 标签可以在同一个组件中混合使用。
834+
- `<style>`标签可以有scoped或者module属性 (查看scoped CSS和CSS Modules) 以帮助你将样式封装到当前组件。具有不同封装模式的多个`<style>`标签可以在同一个组件中混合使用。
835835
- 任何匹配 `.css` 文件 (或通过它的 `lang` 特性指定的扩展名) 的 webpack 规则都将会运用到这个 `` 块的内容中。
836836

837837
#### [#](https://vue-loader.vuejs.org/zh/spec.html#自定义块)自定义块
@@ -916,11 +916,11 @@ export default {
916916
917917
918918
919-
![Component Tree](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/20210426193541.jpg)
919+
![Component Tree](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/20210426193541.jpg)
920920
921-
![](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/20210426193545.png)
921+
![](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/20210426193545.png)
922922
923-
![](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/20210426193550.png)
923+
![](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/20210426193550.png)
924924
925925
[官方链接](https://cn.vuejs.org/v2/guide/components)
926926
@@ -952,7 +952,12 @@ Vue.component('button-counter', {
952952
953953
{% raw %}
954954
955-
<script> Vue.component('button-counter', { data: function () { return { count: 0 } }, template: 'You clicked me {{ count }} times.' }) new Vue({ el: '#components-demo' }) </script> {% endraw %}
955+
<script>
956+
Vue.component('button-counter',
957+
{ data: function () { return { count: 0 } }, template: 'You clicked me {{ count }} times.' })
958+
new Vue({ el: '#components-demo' })
959+
</script>
960+
{% endraw %}
956961
957962
因为组件是可复用的 Vue 实例,所以它们与 `new Vue` 接收相同的选项,例如 `data`、`computed`、`watch`、`methods` 以及生命周期钩子等。仅有的例外是像 `el` 这样根实例特有的选项。
958963
@@ -1718,7 +1723,7 @@ requireComponent.keys().forEach(fileName => {
17181723
17191724
# 属性 - Prop
17201725
1721-
![](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/20210426193627.png)
1726+
![](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/20210426193627.png)
17221727
17231728
## Prop 的大小写 (camelCase vs kebab-case)
17241729
@@ -2069,7 +2074,7 @@ Vue.component('base-input', {
20692074
20702075
子组件里面通过 this.$emit('event-name') 触发
20712076
2072-
![](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/20210426193608.jpg)
2077+
![](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/20210426193608.jpg)
20732078
20742079
## 事件名
20752080
@@ -4521,7 +4526,7 @@ Vue 实例销毁后调用。调用后,Vue 实例指示的所有东西都会解
45214526
45224527
### 生命周期图示
45234528
4524-
![官方图片](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/20210426193619.png)
4529+
![官方图片](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/20210426193619.png)
45254530
45264531
45274532

‎Courses/概率论与数理统计.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
**第 6 部分:概率模型。**这里我们将介绍概率图模型中的一种典型模型:隐马尔科夫模型,熟悉状态序列的概率估计和状态解码的基本方法,为后续学习的概率图模型打好基础。知识图谱如下:
3434

35-
![img](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/20210426194753.jpg)
35+
![img](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/20210426194753.jpg)
3636

3737
针对上述大纲,我们花费近半年,在**gitchat平台**上精心推出了专栏**《机器学习中的数学:概率统计》**,揭示和反映了与机器学习紧密相关的概率统计核心内容。
3838

‎Courses/考试安排.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
# 2022下
88

9-
![20220701](https://wwfyde.oss-cn-hangzhou.aliyuncs.com/images/202208020833703.jpg)
9+
![20220701](https://pub-5cc26807d034413896ac8a50566eec62.r2.dev/images/202208020833703.jpg)

0 commit comments

Comments
 (0)