This commit is contained in:
mei 2025-01-01 17:24:22 +08:00
parent 7ccc754e1a
commit 7c17b0dcd1
12 changed files with 167 additions and 63 deletions

View File

@ -2,5 +2,5 @@
```shell
npm i
npm run dev
npm run docs:dev
```

View File

@ -17,8 +17,13 @@ export default defineConfig({
description: "杂乱的收获,不想失去",
srcDir: './src',
themeConfig: {
logo: '/favicon.ico',
footer: {
message: 'Released under the <a href="https://git.mei.lv/mei/kb/src/branch/main/LICENSE">CC-BY-NC-SA-4.0</a> License.',
copyright: 'Copyright © 2009-2025 <a href="https://github.com/ssdomei232">mei</a>'
},
editLink: {
pattern: 'https://git.mei.lv/mei/kb/_edit/main/docs/:path'
pattern: 'https://git.mei.lv/mei/kb/_edit/main/docs/src/:path'
},
search: {
provider: 'local'
@ -26,11 +31,11 @@ export default defineConfig({
sidebar: generateSidebar(vitepressSidebarOptions),
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }
{ text: '首页', link: '/' },
{ text: '关于', link: '/01_about' }
],
socialLinks: [
{ icon: 'github', link: 'https://git.mei.lv/mei/kb' }
{ icon: 'gitea', link: 'https://git.mei.lv/mei/kb' }
]
}
})

13
docs/src/01_about.md Normal file
View File

@ -0,0 +1,13 @@
## **关于**
本站用于收集一些零散的知识和经验
### 痛恨手册
下面这个是我个人的“痛恨手册”,这足以证明,这是一个愚蠢的时代。
* 抖音
* 痛恨中国的C2C式的那种简单的抄袭和复制。
* 痛恨互联网上的那个墙,还有那些烦得不能再烦的审查机制。
[状态监测](https://status.mmeiblog.cn/status/website)
[赛博斗蛐蛐](https://status.linuxcat.top/)

View File

@ -0,0 +1,7 @@
## 安装
skip
## 添加模块
```
npx shadcn@latest add [moudle_name]
```

View File

@ -0,0 +1,81 @@
## 在 Hexo 中
### NOTE 提示块
#### 基本语法
```md
{% note success %}
[内容]
{% endnote %}
```
提示块可以实现折叠
```md
{% note success [标题] %}
[内容]
{% endnote %}
```
#### 更多风格
```md
{% note default %}
一个 default 提示
{% endnote %}
{% note primary %}
一个 primary 提示
{% endnote %}
{% note success %}
一个 success 提示
{% endnote %}
{% note info %}
一个 info 提示
{% endnote %}
{% note warning %}
一个 warning 提示
{% endnote %}
{% note danger %}
一个 danger 提示
{% endnote %}
```
### Tabs 标签
用于在文章内设置选项卡
```md
{% tabs 标签, 1 %}
<!-- tab -->
**选项卡 1**
<!-- endtab -->
<!-- tab -->
**选项卡 2**
<!-- endtab -->
<!-- tab 标签三 -->
**选项卡 3** , 名字为 `TAB三`
<!-- endtab -->
{% endtabs %}
```
第一行 `{% tabs 标签, 1 %}` 设置每个子标签在不指定标题时显示为 `标签 + 数字序号`
`1` 表示默认展开第 1 个选项卡,如果是 `-1` 则只显示标签标题,隐藏内容,点击可以显示内容
## 在 Github 中
在Github上使用特殊markdown来强调警报样式内容块中的内容
```md
> [!NOTE]
> 强调用户在浏览时应考虑的信息。
> [!TIP]
> 可选信息,可帮助用户更成功。
> [!IMPORTANT]
> 用户成功所必需的关键信息。
> [!WARNING]
> 由于潜在风险,需要用户立即注意的关键内容。
> [!CAUTION]
> 行动的负面潜在后果。
```
## 参考
[在 Hexo 中使用 NOTE 提示块](https://homulilly.com/post/hexo-use-note-and-tabs-block.html)
[GitHub上的Markdown警示样式内容块](https://typorachina.com/articles/1714104012888.html)

View File

@ -0,0 +1,8 @@
这里收集了一些存在可供利用的功能的 gov.cn 站点,切勿滥用
1. **图床 www.mxdjfm.gov.cn (已失效)**
可以上传图片,目前已经删解析了: `http://www.mxdjfm.gov.cn/website/fileinput.html`
2. **ipv6反代**
`http://ex1.https.443.g0.ipv6.zhuhai.gov.cn/`
使用示例(貌似已经寄了): `http://aliyun.ex1.https.443.g0.ipv6.zhuhai.gov.cn/`

View File

@ -0,0 +1,36 @@
1. **默认表情**
```
..\nt_qq\global\nt_data\Emoji\emoji-resource\sysface_res\apng
```
2. **关联推荐表情**
```
..\[QQ号]\nt_qq\nt_data\Emoji\emoji-related\emoji\
```
3. **自定义表情(漫游表情)**
```
..\[QQ号]\nt_qq\nt_data\Emoji\personal_emoji\Ori
```
4. **表情商店**
```
..\[QQ号]\nt_qq\nt_data\Emoji\marketface
```
这里能看到出现在聊天框过的商城表情包
会按照表情包合集区分文件夹
5. 表情商店图片
```
..\[QQ号]\nt_qq\nt_data\Emoji\emoji-recv
```
这里就是接收的表情包啦(应该也包括自己发出去的)
会按照月份分开文件夹保存。
6. 聊天图片
```
..\[QQ号]\nt_qq\nt_data\Pic\2023-10\Ori
```
和上面的表情包 Emote区分开来的其他图片。
Source: [QQ NT 版的一些文件结构探索](https://moyf.github.io/p/qq-nt-%E7%89%88%E7%9A%84%E4%B8%80%E4%BA%9B%E6%96%87%E4%BB%B6%E7%BB%93%E6%9E%84%E6%8E%A2%E7%B4%A2/)

View File

@ -1,49 +0,0 @@
---
outline: deep
---
# 运行时 API 示例
本页演示了 VitePress 提供的一些运行时 API 的使用。
主要的 'useData' API 可用于访问当前页面的站点、主题和页面数据。它适用于 '.md' 和 '.vue' 文件:
```md
<script setup>
import { useData } from 'vitepress'
const { theme, page, frontmatter } = useData()
</script>
## Results
### Theme Data
<pre>{{ theme }}</pre>
### Page Data
<pre>{{ page }}</pre>
### Page Frontmatter
<pre>{{ frontmatter }}</pre>
```
<script setup>
import { useData } from 'vitepress'
const { site, theme, page, frontmatter } = useData()
</script>
## Results
### Theme Data
<pre>{{ theme }}</pre>
### Page Data
<pre>{{ page }}</pre>
### Page Frontmatter
<pre>{{ frontmatter }}</pre>
## More
查看 [运行时 API 的完整列表](https://vitepress.dev/reference/runtime-api#usedata) 的文档。

View File

@ -6,20 +6,23 @@ hero:
name: "杂乱的收获"
text: "你想看看吗"
tagline: My best project
image:
src: /tianyi.png
alt: 背景图
actions:
- theme: brand
text: 开始阅读
link: /example/markdown-examples
link: /01_about
- theme: alt
text: API Examples
link: /example/api-examples
text: 网络日志
link: https://mei.lv
features:
- title: Feature A
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature B
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature C
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: 学习全栈
details: 很有趣的,相信你也会迷上它:)
- title: As a geek
details: 折腾东西会带来无穷无尽的乐趣!
- title: 奇奇怪怪的小知识
details: 你大概率不知道
---

BIN
docs/src/public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

BIN
docs/src/public/tianyi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 KiB