Skip to content

Commit 17b8390

Browse files
author
igyfhc
committed
帖子
1 parent 672b611 commit 17b8390

File tree

7 files changed

+27
-2
lines changed

7 files changed

+27
-2
lines changed

.apps/blog/docs/.vitepress/config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,16 @@ export default defineConfig({
1515
// https://vitepress.dev/reference/default-theme-config
1616
nav: [
1717
{text: '首页', link: '/'},
18+
{text: '帖子', link: '/posts'},
1819
{text: '示例', link: '/markdown-examples'},
1920
],
2021

2122
sidebar: [
2223
{
2324
text: '示例',
2425
items: [
25-
{text: 'js数组访问元素过程', link: '/array-get-element-process'},
2626
{text: 'Markdown 示例', link: '/markdown-examples'},
2727
{text: '运行时 API 示例', link: '/api-examples'},
28-
{text: '学习使用Github actions', link: '/learn-github-actions'},
2928
],
3029
},
3130
],

.apps/blog/docs/posts.data.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { createContentLoader } from 'vitepress';
2+
3+
export default createContentLoader('posts/*.md');

.apps/blog/docs/posts.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script setup>
2+
import { withBase } from 'vitepress';
3+
import { data as posts } from './posts.data.js';
4+
</script>
5+
6+
<ol>
7+
<li v-for="post of posts"><a :href="withBase(post.url)">{{ post.frontmatter.title }}</a></li>
8+
</ol>

.apps/blog/docs/array-get-element-process.md renamed to .apps/blog/docs/posts/array-get-element-process.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: 数组获取通过下标获取元素的过程
3+
---
4+
15
js 数组通过下标访问元素时,会调用下标数字的`toString()`方法。通过以下代码可测试:
26

37
```js

.apps/blog/docs/learn-github-actions.md renamed to .apps/blog/docs/posts/learn-github-actions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: 学习使用 github actions
3+
---
4+
15
## 学习使用 Github actions 自动部署静态网页。
26

37
`.github/workflows`目录下定义`.yml`文件,即可自动执行逻辑。写本文的时候,已经测试可以。
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: 开发NES模拟器笔记
3+
---
4+
5+
Name Table 的不同排列方式,导致不同的镜像。水平排列,导致垂直镜像;垂直排列,导致水平镜像。
6+
参考[https://www.nesdev.org/wiki/Mirroring#Nametable_Mirroring](https://www.nesdev.org/wiki/Mirroring#Nametable_Mirroring)

.apps/blog/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"type": "module",
23
"scripts": {
34
"docs:dev": "vitepress dev docs",
45
"docs:build": "vitepress build docs",

0 commit comments

Comments
 (0)