Skip to content

Commit 6b61116

Browse files
authored
Merge branch 'main' into llmstxt
2 parents 912f382 + c46ecc9 commit 6b61116

File tree

13 files changed

+241
-483
lines changed

13 files changed

+241
-483
lines changed

bun.lock

Lines changed: 192 additions & 390 deletions
Large diffs are not rendered by default.

docs/.vitepress/config.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ import { createFileSystemTypesCache } from '@shikijs/vitepress-twoslash/cache-fs
55

66
import tailwindcss from '@tailwindcss/vite'
77
import llmstxt from 'vitepress-plugin-llms'
8+
import { analyzer } from 'vite-bundle-analyzer'
89

9-
// import { UnlazyImages } from '@nolebase/markdown-it-unlazy-img'
10-
import {
11-
GitChangelog,
12-
GitChangelogMarkdownSection
13-
} from '@nolebase/vitepress-plugin-git-changelog/vite'
10+
// import {
11+
// GitChangelog,
12+
// GitChangelogMarkdownSection
13+
// } from '@nolebase/vitepress-plugin-git-changelog/vite'
1414
import { InlineLinkPreviewElementTransform } from '@nolebase/vitepress-plugin-inline-link-preview/markdown-it'
15-
// import { ThumbnailHashImages } from '@nolebase/vitepress-plugin-thumbnail-hash/vite'
1615

1716
const description =
1817
'Ergonomic Framework for Humans. TypeScript framework supercharged by Bun with End - to - End Type Safety, unified type system and outstanding developer experience'
@@ -29,6 +28,7 @@ export default defineConfig({
2928
dark: 'github-dark'
3029
},
3130
codeTransformers: [
31+
// @ts-ignore
3232
transformerTwoslash({
3333
typesCache: createFileSystemTypesCache({
3434
dir: './docs/.vitepress/cache/twoslash'
@@ -99,15 +99,16 @@ export default defineConfig({
9999
]
100100
}),
101101
GitChangelogMarkdownSection(),
102-
// ThumbnailHashImages()
102+
process.env.ANALYZE === 'true' ? analyzer() : []
103103
],
104104
optimizeDeps: {
105105
exclude: ['@nolebase/vitepress-plugin-inline-link-preview/client']
106106
},
107107
ssr: {
108108
noExternal: [
109109
'@nolebase/vitepress-plugin-inline-link-preview',
110-
'@unlazy/vue'
110+
'@unlazy/vue',
111+
'@nolebase/ui'
111112
]
112113
}
113114
},
@@ -445,7 +446,7 @@ export default defineConfig({
445446
{
446447
text: 'SvelteKit',
447448
link: '/integrations/sveltekit'
448-
},
449+
}
449450
]
450451
}
451452
],

docs/.vitepress/polyfill/fs.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/.vitepress/theme/index.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,31 @@
1-
import { useData, useRoute } from 'vitepress'
2-
import type { EnhanceAppContext, Theme } from 'vitepress'
1+
import { toRefs } from 'vue'
2+
import { useData, useRoute, type EnhanceAppContext, type Theme } from 'vitepress'
33

4-
import DefaultTheme from 'vitepress/theme'
4+
import DefaultTheme from 'vitepress/theme-without-fonts'
55

66
// @ts-ignore
77
import Layout from './layout.vue'
88

99
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
1010
import '@shikijs/vitepress-twoslash/style.css'
1111

12-
import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client'
13-
import '@nolebase/vitepress-plugin-git-changelog/client/style.css'
14-
1512
import { NolebaseInlineLinkPreviewPlugin } from '@nolebase/vitepress-plugin-inline-link-preview/client'
1613
import '@nolebase/vitepress-plugin-inline-link-preview/client/style.css'
1714

18-
// import { NolebaseUnlazyImg } from '@nolebase/vitepress-plugin-thumbnail-hash/client'
19-
// import '@nolebase/vitepress-plugin-thumbnail-hash/client/style.css'
15+
// import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client'
16+
// import '@nolebase/vitepress-plugin-git-changelog/client/style.css'
2017

2118
import giscusTalk from 'vitepress-plugin-comment-with-giscus'
2219

2320
import '../../tailwind.css'
24-
import { toRefs } from 'vue'
2521

2622
export default {
2723
extends: DefaultTheme,
2824
Layout,
2925
enhanceApp({ app }: EnhanceAppContext) {
3026
app.use(TwoslashFloatingVue)
31-
app.use(NolebaseGitChangelogPlugin)
3227
app.use(NolebaseInlineLinkPreviewPlugin)
33-
// app.component('NolebaseUnlazyImg', NolebaseUnlazyImg)
28+
// app.use(NolebaseGitChangelogPlugin)
3429
},
3530
setup() {
3631
// Get frontmatter and route

docs/.vitepress/theme/layout.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useData } from 'vitepress'
3-
import DefaultTheme from 'vitepress/theme'
3+
import DefaultTheme from 'vitepress/theme-without-fonts'
44
import { nextTick, provide } from 'vue'
55
66
import useDark from '../../components/midori/use-dark'
@@ -44,7 +44,7 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => {
4444
<template>
4545
<link rel="preload" as="image" href="/assets/elysia_v.webp" fetchpriority="high">
4646
<link rel="preload" as="image" href="/assets/elysia.svg" fetchpriority="high">
47-
<link rel="preload" as="image" href="/assets/shigure-ui.webp" fetchpriority="low">
47+
<link rel="preload" as="image" href="/assets/shigure-ui-smol.gif" fetchpriority="low">
4848
<DefaultTheme.Layout>
4949
<template #doc-top>
5050
<Ray
@@ -91,7 +91,7 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => {
9191
}
9292
9393
::view-transition-new(root) {
94-
mask: url('/assets/shigure-ui.webp')
94+
mask: url('/assets/shigure-ui-smol.gif')
9595
center / 0 no-repeat;
9696
animation: var(--switch-name) var(--switch-duration);
9797
}
@@ -106,13 +106,13 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => {
106106
mask-size: 0;
107107
}
108108
10% {
109-
mask-size: 50vmax;
109+
mask-size: 25vmax;
110110
}
111111
90% {
112-
mask-size: 50vmax;
112+
mask-size: 25vmax;
113113
}
114114
100% {
115-
mask-size: 2000vmax;
115+
mask-size: 1000vmax;
116116
}
117117
}
118118
@@ -121,13 +121,13 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => {
121121
mask-size: 0;
122122
}
123123
10% {
124-
mask-size: 50vmax;
124+
mask-size: 25vmax;
125125
}
126126
80% {
127-
mask-size: 50vmax;
127+
mask-size: 25vmax;
128128
}
129129
100% {
130-
mask-size: 2000vmax;
130+
mask-size: 1000vmax;
131131
}
132132
}
133133

docs/components/fern/fern.vue

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@ import BuiltWithLove from './built-with-love.vue'
1515
</script>
1616

1717
<template>
18-
<link rel="preconnect" href="https://fonts.googleapis.com" />
19-
<link
20-
rel="preconnect"
21-
href="https://fonts.gstatic.com"
22-
crossorigin="anonymous"
23-
/>
24-
<link
25-
href="https://fonts.googleapis.com/css2?family=Borel&display=swap"
26-
rel="stylesheet"
27-
/>
28-
2918
<div id="landing" class="dark:bg-gray-900/60">
3019
<Hero />
3120
<article

docs/components/fern/type-integrity.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@ watch(form, (index) => {
111111
112112
&:nth-child(1) {
113113
background-color: rgba(237, 106, 94);
114-
border: 1px solid rgba(195, 75, 70);
114+
border: 0.5px solid rgba(195, 75, 70);
115115
}
116116
117117
&:nth-child(2) {
118118
background-color: rgba(245, 191, 79);
119-
border: 1px solid rgba(203, 156, 78);
119+
border: 0.5px solid rgba(203, 156, 78);
120120
}
121121
122122
&:nth-child(3) {
123123
background-color: rgba(101, 192, 93);
124-
border: 1px solid rgba(82, 162, 74);
124+
border: 0.5px solid rgba(82, 162, 74);
125125
}
126126
}
127127
}

docs/components/midori/index.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ import BuiltWithLove from './built-with-love.vue'
1818
</script>
1919

2020
<template>
21-
<link rel="preconnect" href="https://fonts.googleapis.com" />
22-
<link
23-
rel="preconnect"
24-
href="https://fonts.gstatic.com"
25-
crossorigin="true"
26-
/>
27-
2821
<div id="landing" class="dark:bg-gray-900/60">
2922
<Hero />
3023
<article class="flex flex-col gap-4 px-6">

docs/plugins/opentelemetry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ new Elysia()
4242
Elysia OpenTelemetry is will **collect span of any library compatible OpenTelemetry standard**, and will apply parent and child span automatically.
4343

4444
## Usage
45-
See [opentelemetry](/recipe/opentelemetry) for usage and utilities
45+
See [opentelemetry](/integrations/opentelemetry) for usage and utilities
4646

4747
## Config
4848
This plugin extends OpenTelemetry SDK parameters options.
73 KB
Loading

0 commit comments

Comments
 (0)