From daf513f6a0e5c1ec5bd32262cfbbe32d78a41231 Mon Sep 17 00:00:00 2001 From: estel <690930@qq.com> Date: Fri, 25 Jul 2025 22:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E5=AF=BC=E8=88=AA=E6=A0=8F?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.config.ts | 3 +++ app/components/AppSidebar.vue | 36 ++++++++++++++++++------- app/components/ContentDirectory.vue | 30 ++++++++++++++++----- app/components/content/ButtonLink.vue | 22 ++++++++++++++++ app/components/content/SmartIcon.vue | 38 +++++++++++++++++++++++++++ content/1.简单文档/1.index.md | 25 ++++++++++++++++++ 6 files changed, 137 insertions(+), 17 deletions(-) create mode 100644 app/components/content/ButtonLink.vue create mode 100644 app/components/content/SmartIcon.vue diff --git a/app/app.config.ts b/app/app.config.ts index 01a05bb..f6b10db 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -3,6 +3,9 @@ export default defineAppConfig({ colors: { primary: 'blue', neutral: 'zinc' + }, + container: { + base: 'w-full h-full mx-auto px-2 sm:px-6 lg:px-8' } }, uiPro: { diff --git a/app/components/AppSidebar.vue b/app/components/AppSidebar.vue index 8cfc01d..1b10f25 100644 --- a/app/components/AppSidebar.vue +++ b/app/components/AppSidebar.vue @@ -37,8 +37,8 @@
@@ -68,18 +68,34 @@ /> -
- - - + + + - - + +
diff --git a/app/components/ContentDirectory.vue b/app/components/ContentDirectory.vue index b815f7d..c2d462e 100644 --- a/app/components/ContentDirectory.vue +++ b/app/components/ContentDirectory.vue @@ -1,12 +1,28 @@ diff --git a/app/components/content/ButtonLink.vue b/app/components/content/ButtonLink.vue new file mode 100644 index 0000000..8879c54 --- /dev/null +++ b/app/components/content/ButtonLink.vue @@ -0,0 +1,22 @@ + + + diff --git a/app/components/content/SmartIcon.vue b/app/components/content/SmartIcon.vue new file mode 100644 index 0000000..10b82ab --- /dev/null +++ b/app/components/content/SmartIcon.vue @@ -0,0 +1,38 @@ + + + diff --git a/content/1.简单文档/1.index.md b/content/1.简单文档/1.index.md index b74c700..7a29aa2 100644 --- a/content/1.简单文档/1.index.md +++ b/content/1.简单文档/1.index.md @@ -9,6 +9,31 @@ This template is a ready-to-use documentation template made with [Nuxt UI Pro](h There are already many websites based on this template: +::button-link{right-icon="lucide:arrow-up-right" to="/getting-started" target="_blank"} + Get Started +:: +::button-link{left-icon="lucide:github" variant="outline" to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank"} + GitHub +:: +::button-link{left-icon="lucide:ghost" variant="ghost" href="https://github.com/ZTL-UwU/shadcn-docs-nuxt" blank} + Ghost +:: + +::steps{level="4"} + #### Start a fresh new project + + ```bash [Terminal] + npx nuxi init -t github:nuxt-ui-pro/docus + ``` + + #### Run docus CLI to run your dev server + + ```bash [Terminal] + docus dev + ``` +:: + + ::card-group :::card ---