Skip to content

Commit 01b5f75

Browse files
authored
docs: upgrade to shadcn-docs v1 (#574)
Signed-off-by: ZTL-UwU <[email protected]>
1 parent 5ffe33f commit 01b5f75

File tree

5 files changed

+1237
-1207
lines changed

5 files changed

+1237
-1207
lines changed

docs/assets/css/tailwind.css

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
42

3+
@config '../../tailwind.config.js';
4+
@source '../../node_modules/shadcn-docs-nuxt';
5+
6+
@layer base {
7+
*,
8+
::after,
9+
::before,
10+
::backdrop,
11+
::file-selector-button {
12+
border-color: var(--color-gray-200, currentcolor);
13+
}
14+
}
515

616
@layer base {
717
:root {
@@ -29,7 +39,7 @@
2939
--destructive: 0 84.2% 60.2%;
3040
--destructive-foreground: 0 0% 98%;
3141

32-
--border:240 5.9% 10%;
42+
--border:240 5.9% 90%;
3343
--input:240 5.9% 90%;
3444
--ring:240 5.9% 10%;
3545
--radius: 0.5rem;
@@ -66,13 +76,10 @@
6676
}
6777
}
6878

79+
@utility step {
80+
counter-increment: step;
6981

70-
@layer utilities {
71-
.step {
72-
counter-increment: step;
73-
}
74-
75-
.step:before {
82+
&:before {
7683
@apply absolute w-9 h-9 bg-muted rounded-full font-mono font-medium text-center text-base inline-flex items-center justify-center -indent-px border-4 border-background;
7784
@apply -ml-[50px] -mt-1;
7885
content: counter(step);
@@ -81,7 +88,7 @@
8188

8289
@layer base {
8390
* {
84-
@apply border-border;
91+
@apply border-border outline-ring/50;
8592
}
8693

8794
body {

docs/nuxt.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ export default defineNuxtConfig({
55
modules: [
66
'@nuxtjs/plausible',
77
],
8+
i18n: {
9+
defaultLocale: 'en',
10+
locales: [
11+
{
12+
code: 'en',
13+
name: 'English',
14+
language: 'en-US',
15+
},
16+
],
17+
},
818
compatibilityDate: '2024-07-06',
919
plausible: {
1020
domain: 'regexp.dev',

docs/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"dev": "nuxt dev",
88
"generate": "nuxt generate",
99
"preview": "nuxt preview",
10-
"postinstall": "nuxt prepare"
10+
"postinstall": "cd .. && pnpm build --stub && cd docs && pnpm nuxt prepare"
1111
},
1212
"dependencies": {
1313
"@nuxtjs/plausible": "^1.2.0",
14-
"nuxt": "^3.16.0",
15-
"shadcn-docs-nuxt": "^0.8.21",
16-
"vue": "^3.5.13",
17-
"vue-router": "^4.5.0"
14+
"nuxt": "^3.17.4",
15+
"shadcn-docs-nuxt": "^1.0.1",
16+
"vue": "^3.5.16",
17+
"vue-router": "^4.5.1"
1818
}
1919
}

0 commit comments

Comments
 (0)