Skip to content

Commit a3a5793

Browse files
committed
🎉 feat: correct border color for twoslash on dark mode
1 parent 38a784a commit a3a5793

File tree

8 files changed

+44
-64
lines changed

8 files changed

+44
-64
lines changed

docs/.vitepress/config.ts

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -288,32 +288,6 @@ export default defineConfig({
288288
}
289289
]
290290
},
291-
{
292-
text: 'Recipe',
293-
collapsed: true,
294-
items: [
295-
{
296-
text: 'Better Auth',
297-
link: '/recipe/better-auth'
298-
},
299-
{
300-
text: 'Drizzle',
301-
link: '/recipe/drizzle'
302-
},
303-
{
304-
text: 'OpenAPI',
305-
link: '/recipe/openapi'
306-
},
307-
{
308-
text: 'Opentelemetry',
309-
link: '/recipe/opentelemetry'
310-
},
311-
{
312-
text: 'React Email',
313-
link: '/recipe/react-email'
314-
}
315-
]
316-
},
317291
{
318292
text: 'Eden',
319293
collapsed: true,
@@ -433,21 +407,41 @@ export default defineConfig({
433407
collapsed: true,
434408
items: [
435409
{
436-
text: 'Nextjs',
437-
link: '/integrations/nextjs'
410+
text: 'Astro',
411+
link: '/integrations/astro'
412+
},
413+
{
414+
text: 'Better Auth',
415+
link: '/recipe/better-auth'
416+
},
417+
{
418+
text: 'Drizzle',
419+
link: '/recipe/drizzle'
438420
},
439421
{
440422
text: 'Expo',
441423
link: '/integrations/expo'
442424
},
443425
{
444-
text: 'Astro',
445-
link: '/integrations/astro'
426+
text: 'Nextjs',
427+
link: '/integrations/nextjs'
428+
},
429+
{
430+
text: 'OpenAPI',
431+
link: '/recipe/openapi'
432+
},
433+
{
434+
text: 'Opentelemetry',
435+
link: '/recipe/opentelemetry'
436+
},
437+
{
438+
text: 'React Email',
439+
link: '/recipe/react-email'
446440
},
447441
{
448442
text: 'SvelteKit',
449443
link: '/integrations/sveltekit'
450-
}
444+
},
451445
]
452446
}
453447
],

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,40 +48,17 @@ export default {
4848
strict: '0',
4949
reactionsEnabled: '0',
5050
emitMetadata: '0',
51-
inputPosition: 'top',
51+
inputPosition: 'bottom',
5252
lang: 'en',
5353
loading: 'lazy',
5454
crossorigin: 'anonymous',
5555
lightTheme: 'light',
5656
darkTheme: 'transparent_dark'
57-
58-
// repo: 'your github repository',
59-
// repoId: 'your repository id',
60-
// category: 'your category', // default: `General`
61-
// categoryId: 'your category id',
62-
// mapping: 'pathname', // default: `pathname`
63-
// inputPosition: 'top', // default: `top`
64-
// lang: 'en', // default: `zh-CN`
65-
// // i18n setting (Note: This configuration will override the default language set by lang)
66-
// // Configured as an object with key-value pairs inside:
67-
// // [your i18n configuration name]: [corresponds to the language pack name in Giscus]
68-
// locales: {
69-
// 'zh-Hans': 'zh-CN',
70-
// 'en-US': 'en'
71-
// },
72-
// homePageShowComment: false, // Whether to display the comment area on the homepage, the default is false
73-
// lightTheme: 'light', // default: `light`
74-
// darkTheme: 'transparent_dark' // default: `transparent_dark`
75-
// // ...
7657
},
7758
{
7859
frontmatter,
7960
route
8061
},
81-
// Whether to activate the comment area on all pages.
82-
// The default is true, which means enabled, this parameter can be ignored;
83-
// If it is false, it means it is not enabled.
84-
// You can use `comment: true` preface to enable it separately on the page.
8562
true
8663
)
8764
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/tailwind.css

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,15 @@ button.copy::after {
184184
}
185185

186186
#VPSidebarNav > .group:nth-child(5) > .VPSidebarItem > .item > .text::before {
187-
background-image: url(/assets/book.svg);
188-
}
189-
190-
#VPSidebarNav > .group:nth-child(6) > .VPSidebarItem > .item > .text::before {
191187
background-image: url(/assets/eden.svg);
192188
}
193189

194-
#VPSidebarNav > .group:nth-child(7) > .VPSidebarItem > .item > .text::before {
190+
#VPSidebarNav > .group:nth-child(6) > .VPSidebarItem > .item > .text::before {
195191
background-image: url(/assets/plugin.svg);
196192
}
197193

198-
#VPSidebarNav > .group:nth-child(8) > .VPSidebarItem > .item > .text::before {
199-
background-image: url(/assets/integration.svg);
194+
#VPSidebarNav > .group:nth-child(7) > .VPSidebarItem > .item > .text::before {
195+
background-image: url(/assets/book.svg);
200196
}
201197

202198
.dark
@@ -453,7 +449,7 @@ button.copy::after {
453449
}
454450

455451
.vp-doc h2 {
456-
@apply !mb-2.5;
452+
@apply text-black dark:text-white !mb-2.5;
457453
}
458454

459455
#contributors,
@@ -464,7 +460,7 @@ button.copy::after {
464460
}
465461

466462
.vp-nolebase-git-changelog-contributors-list {
467-
@apply gap-2 mb-8;
463+
@apply gap-2 mb-4;
468464

469465
& > a,
470466
& > div {
@@ -477,6 +473,19 @@ button.copy::after {
477473
}
478474
}
479475

476+
#changelog {
477+
@apply h-0 p-0 m-0 border-0;
478+
font-size: 0;
479+
}
480+
481+
.vp-nolebase-git-changelog-history {
482+
@apply mt-0;
483+
}
484+
480485
.vp-nolebase-git-changelog-history-list {
481486
@apply bg-slate-50 dark:bg-slate-800;
482487
}
488+
489+
.v-popper--theme-twoslash .v-popper__inner {
490+
@apply border-slate-200 dark:border-slate-800
491+
}

0 commit comments

Comments
 (0)