From 3adc965dd09490b7efa1cce9f09b0a3b30970277 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 19 Apr 2023 17:30:39 +0800 Subject: ✨优化文档 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.playground/app.config.ts | 15 +++++++++++++++ docs/.playground/components/content/CounterButton.vue | 17 +++++++++++++++++ docs/.playground/content/0.index.md | 18 ++++++++++++++++++ docs/.playground/nuxt.config.ts | 4 ++++ docs/.playground/public/cover.png | Bin 0 -> 219401 bytes docs/.playground/public/favicon.ico | Bin 0 -> 15406 bytes docs/.playground/tsconfig.json | 4 ++++ 7 files changed, 58 insertions(+) create mode 100644 docs/.playground/app.config.ts create mode 100644 docs/.playground/components/content/CounterButton.vue create mode 100644 docs/.playground/content/0.index.md create mode 100644 docs/.playground/nuxt.config.ts create mode 100644 docs/.playground/public/cover.png create mode 100644 docs/.playground/public/favicon.ico create mode 100644 docs/.playground/tsconfig.json (limited to 'docs/.playground') diff --git a/docs/.playground/app.config.ts b/docs/.playground/app.config.ts new file mode 100644 index 0000000..7c39a6e --- /dev/null +++ b/docs/.playground/app.config.ts @@ -0,0 +1,15 @@ +export default defineAppConfig({ + docus: { + title: 'MDC', + socials: { + github: 'nuxt-themes/docus', + }, + github: { + dir: '.playground/content', + branch: 'dev', + repo: 'docus', + owner: 'nuxt-themes', + edit: true, + } + } +}) diff --git a/docs/.playground/components/content/CounterButton.vue b/docs/.playground/components/content/CounterButton.vue new file mode 100644 index 0000000..35ef97b --- /dev/null +++ b/docs/.playground/components/content/CounterButton.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/docs/.playground/content/0.index.md b/docs/.playground/content/0.index.md new file mode 100644 index 0000000..96ffe98 --- /dev/null +++ b/docs/.playground/content/0.index.md @@ -0,0 +1,18 @@ +# Markdown meets Vue Components + +MDC is Markdown with a way to use Vue components with a `:component` syntax fitting perfectly into your markup. No import needed, just use the component name as a tag, supporting props and slots. Writing interative content with Vue is now a breeze. + +::code-group + +```md [MDC] +# Hello MDC + +I am using an inline component :counter-button. +``` +::code-block{label="Preview" preview} + # Hello MDC + +I am using an inline component :counter-button. +:: + +:: diff --git a/docs/.playground/nuxt.config.ts b/docs/.playground/nuxt.config.ts new file mode 100644 index 0000000..61b1b07 --- /dev/null +++ b/docs/.playground/nuxt.config.ts @@ -0,0 +1,4 @@ +export default defineNuxtConfig({ + extends: '../', + modules: ['@nuxt/devtools'] +}) diff --git a/docs/.playground/public/cover.png b/docs/.playground/public/cover.png new file mode 100644 index 0000000..c8b3473 Binary files /dev/null and b/docs/.playground/public/cover.png differ diff --git a/docs/.playground/public/favicon.ico b/docs/.playground/public/favicon.ico new file mode 100644 index 0000000..a99a983 Binary files /dev/null and b/docs/.playground/public/favicon.ico differ diff --git a/docs/.playground/tsconfig.json b/docs/.playground/tsconfig.json new file mode 100644 index 0000000..a7bfa18 --- /dev/null +++ b/docs/.playground/tsconfig.json @@ -0,0 +1,4 @@ +{ + // https://v3.nuxtjs.org/concepts/typescript + "extends": "./.nuxt/tsconfig.json" +} -- cgit v1.2.3-70-g09d2