Skip to content

Commit 9e49735

Browse files
docs: generate sections in llms.txt (#2141)
* docs: generate sections in `llms.txt` * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 2703629 commit 9e49735

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

docs/.vitepress/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Customizations from './customizations'
77
import { Advanced, BuiltIn, Guides, Resources } from './pages'
88
import { getSidebarObject } from './sidebar-gen'
99

10-
const slidebars: DefaultTheme.SidebarItem[] = [
10+
export const slidebars: DefaultTheme.SidebarItem[] = [
1111
{
1212
text: 'Guide',
1313
items: Guides,

docs/custom/config-vite.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ Usually you can add Vite plugins into your `vite.config.ts` (see above).
7272
However, if you want to add plugins based on the slide data, you need to add a `./setup/vite-plugins.ts` with the following content:
7373

7474
```ts twoslash
75-
import { defineVitePluginSetup } from '@slidev/types'
75+
import { defineVitePluginsSetup } from '@slidev/types'
7676

77-
export default defineVitePluginSetup((options) => {
77+
export default defineVitePluginsSetup((options) => {
7878
return [
7979
// Your plugins here
8080
// Slide data is available as options.data.slides

docs/vite.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { slidebars } from '.vitepress/config'
12
import UnoCSS from 'unocss/vite'
23
import IconsResolver from 'unplugin-icons/resolver'
34
import Icons from 'unplugin-icons/vite'
@@ -25,6 +26,7 @@ export default defineConfig({
2526
'index.md',
2627
'README.md',
2728
],
29+
sidebar: slidebars,
2830
}),
2931
Components({
3032
dirs: [

pnpm-lock.yaml

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ catalogs:
3737
docs:
3838
typeit: 8.1.0
3939
vitepress: ^2.0.0-alpha.4
40-
vitepress-plugin-llms: ^0.0.20
40+
vitepress-plugin-llms: ^1.0.1
4141

4242
frontend:
4343
'@antfu/utils': ^9.1.0

0 commit comments

Comments
 (0)