diff options
| -rw-r--r-- | .vitepress/config.mts | 6 | ||||
| -rw-r--r-- | api-examples.md | 49 | ||||
| -rw-r--r-- | index.md | 2 | ||||
| -rw-r--r-- | markdown-examples.md | 85 | ||||
| -rw-r--r-- | repos/i-miss-someone-vt.md (renamed from docs/i-miss-someone-vt.md) | 0 | ||||
| -rw-r--r-- | repos/patchwork-archive-api.md (renamed from docs/patchwork-archive-api.md) | 0 | ||||
| -rw-r--r-- | repos/vtuber-captcha.md (renamed from docs/vtuber-captcha.md) | 0 |
7 files changed, 4 insertions, 138 deletions
diff --git a/.vitepress/config.mts b/.vitepress/config.mts index ef8d676..a737e09 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -14,9 +14,9 @@ export default defineConfig({ { text: 'Projects', items: [ - { text: 'Patchwork Archive API', link: '/docs/patchwork-archive-api' }, - { text: 'I Miss Someone VT', link: '/docs/i-miss-someone-vt' }, - { text: 'VTuber Captcha', link: '/docs/vtuber-captcha' } + { text: 'Patchwork Archive API', link: '/repos/patchwork-archive-api' }, + { text: 'I Miss Someone VT', link: '/repos/i-miss-someone-vt' }, + { text: 'VTuber Captcha', link: '/repos/vtuber-captcha' } ] } ], diff --git a/api-examples.md b/api-examples.md deleted file mode 100644 index 6bd8bb5..0000000 --- a/api-examples.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -outline: deep ---- - -# Runtime API Examples - -This page demonstrates usage of some of the runtime APIs provided by VitePress. - -The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files: - -```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 - -Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata). @@ -8,7 +8,7 @@ hero: actions: - theme: brand text: Patchwork Archive API - link: /docs/patchwork-archive-api + link: /repos/patchwork-archive-api features: - title: Patchwork Archive API diff --git a/markdown-examples.md b/markdown-examples.md deleted file mode 100644 index f9258a5..0000000 --- a/markdown-examples.md +++ /dev/null @@ -1,85 +0,0 @@ -# Markdown Extension Examples - -This page demonstrates some of the built-in markdown extensions provided by VitePress. - -## Syntax Highlighting - -VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting: - -**Input** - -````md -```js{4} -export default { - data () { - return { - msg: 'Highlighted!' - } - } -} -``` -```` - -**Output** - -```js{4} -export default { - data () { - return { - msg: 'Highlighted!' - } - } -} -``` - -## Custom Containers - -**Input** - -```md -::: info -This is an info box. -::: - -::: tip -This is a tip. -::: - -::: warning -This is a warning. -::: - -::: danger -This is a dangerous warning. -::: - -::: details -This is a details block. -::: -``` - -**Output** - -::: info -This is an info box. -::: - -::: tip -This is a tip. -::: - -::: warning -This is a warning. -::: - -::: danger -This is a dangerous warning. -::: - -::: details -This is a details block. -::: - -## More - -Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown). diff --git a/docs/i-miss-someone-vt.md b/repos/i-miss-someone-vt.md index e172a5e..e172a5e 100644 --- a/docs/i-miss-someone-vt.md +++ b/repos/i-miss-someone-vt.md diff --git a/docs/patchwork-archive-api.md b/repos/patchwork-archive-api.md index 4ccff24..4ccff24 100644 --- a/docs/patchwork-archive-api.md +++ b/repos/patchwork-archive-api.md diff --git a/docs/vtuber-captcha.md b/repos/vtuber-captcha.md index 48dad08..48dad08 100644 --- a/docs/vtuber-captcha.md +++ b/repos/vtuber-captcha.md |
