Skip to content

Commit a951c32

Browse files
committed
🧹 chore: clean up stuff
1 parent b81b9b1 commit a951c32

File tree

2 files changed

+42
-87
lines changed

2 files changed

+42
-87
lines changed

docs/.vitepress/config.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ import tailwindcss from '@tailwindcss/vite'
99
import llmstxt from 'vitepress-plugin-llms'
1010
import { analyzer } from 'vite-bundle-analyzer'
1111

12-
// import {
13-
// GitChangelog,
14-
// GitChangelogMarkdownSection
15-
// } from '@nolebase/vitepress-plugin-git-changelog/vite'
16-
// import { InlineLinkPreviewElementTransform } from '@nolebase/vitepress-plugin-inline-link-preview/markdown-it'
17-
1812
const description =
1913
'Ergonomic Framework for Humans. TypeScript framework supercharged by Bun with End - to - End Type Safety, unified type system and outstanding developer experience'
2014

@@ -40,10 +34,6 @@ export default defineConfig({
4034
],
4135
config: (md) => {
4236
md.use(lightbox, {})
43-
// md.use(InlineLinkPreviewElementTransform)
44-
// md.use(UnlazyImages(), {
45-
// imgElementTag: 'NolebaseUnlazyImg'
46-
// })
4737
}
4838
},
4939
// vue: {
@@ -81,40 +71,6 @@ export default defineConfig({
8171
})
8272
: [],
8373
process.env.ANALYZE === 'true' ? analyzer() : []
84-
// GitChangelog({
85-
// repoURL: () => 'https://github.com/elysiajs/documentation',
86-
// mapAuthors: [
87-
// {
88-
// mapByEmailAliases: ['[email protected]'],
89-
// avatar: '/blog/authors/aris.webp',
90-
// links: [
91-
// {
92-
// type: 'GitHub',
93-
// link: 'https://github.com/SaltyAom'
94-
// }
95-
// ]
96-
// },
97-
// {
98-
// mapByNameAliases: ['bogeychan'],
99-
// links: [
100-
// {
101-
// type: 'GitHub',
102-
// link: 'http://github.com/bogeychan'
103-
// }
104-
// ]
105-
// },
106-
// {
107-
// mapByNameAliases: ['Fecony'],
108-
// links: [
109-
// {
110-
// type: 'GitHub',
111-
// link: 'https://github.com/fecony'
112-
// }
113-
// ]
114-
// }
115-
// ]
116-
// }),
117-
// GitChangelogMarkdownSection()
11874
],
11975
optimizeDeps: {
12076
exclude: ['@nolebase/vitepress-plugin-inline-link-preview/client']

docs/.vitepress/theme/index.ts

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { toRefs } from 'vue'
2-
import { useData, useRoute, type EnhanceAppContext, type Theme } from 'vitepress'
2+
import {
3+
useData,
4+
useRoute,
5+
type EnhanceAppContext,
6+
type Theme
7+
} from 'vitepress'
38

49
import DefaultTheme from 'vitepress/theme-without-fonts'
510

@@ -9,51 +14,45 @@ import Layout from './layout.vue'
914
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
1015
import '@shikijs/vitepress-twoslash/style.css'
1116

12-
// import { NolebaseInlineLinkPreviewPlugin } from '@nolebase/vitepress-plugin-inline-link-preview/client'
13-
// import '@nolebase/vitepress-plugin-inline-link-preview/client/style.css'
14-
15-
// import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client'
16-
// import '@nolebase/vitepress-plugin-git-changelog/client/style.css'
17-
1817
import giscusTalk from 'vitepress-plugin-comment-with-giscus'
1918

2019
import '../../tailwind.css'
2120

2221
export default {
23-
extends: DefaultTheme,
24-
Layout,
25-
enhanceApp({ app }: EnhanceAppContext) {
26-
app.use(TwoslashFloatingVue)
27-
// app.use(NolebaseInlineLinkPreviewPlugin)
28-
// app.use(NolebaseGitChangelogPlugin)
29-
},
30-
setup() {
31-
// Get frontmatter and route
32-
const { frontmatter } = toRefs(useData())
33-
const route = useRoute()
34-
35-
// Obtain configuration from: https://giscus.app/
36-
giscusTalk(
37-
{
38-
repo: 'elysiajs/documentation',
39-
repoId: 'R_kgDOIjgsAg',
40-
category: 'General',
41-
categoryId: 'DIC_kwDOIjgsAs4Covzb',
42-
mapping: 'pathname',
43-
strict: '0',
44-
reactionsEnabled: '0',
45-
emitMetadata: '0',
46-
inputPosition: 'bottom',
47-
lang: 'en',
48-
crossorigin: 'anonymous',
49-
lightTheme: 'light',
50-
darkTheme: 'transparent_dark'
51-
},
52-
{
53-
frontmatter,
54-
route
55-
},
56-
true
57-
)
58-
}
22+
extends: DefaultTheme,
23+
Layout,
24+
enhanceApp({ app }: EnhanceAppContext) {
25+
app.use(TwoslashFloatingVue)
26+
// app.use(NolebaseInlineLinkPreviewPlugin)
27+
// app.use(NolebaseGitChangelogPlugin)
28+
},
29+
setup() {
30+
// Get frontmatter and route
31+
const { frontmatter } = toRefs(useData())
32+
const route = useRoute()
33+
34+
// Obtain configuration from: https://giscus.app/
35+
giscusTalk(
36+
{
37+
repo: 'elysiajs/documentation',
38+
repoId: 'R_kgDOIjgsAg',
39+
category: 'General',
40+
categoryId: 'DIC_kwDOIjgsAs4Covzb',
41+
mapping: 'pathname',
42+
strict: '0',
43+
reactionsEnabled: '0',
44+
emitMetadata: '0',
45+
inputPosition: 'bottom',
46+
lang: 'en',
47+
crossorigin: 'anonymous',
48+
lightTheme: 'light',
49+
darkTheme: 'transparent_dark'
50+
},
51+
{
52+
frontmatter,
53+
route
54+
},
55+
true
56+
)
57+
}
5958
} satisfies Theme

0 commit comments

Comments
 (0)