Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions website/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import { team } from './team.ts';
import { taskDescription, taskName } from './meta.ts';
import { fileURLToPath, URL } from 'node:url';
import llmstxt, { copyOrDownloadAsMarkdownButtons } from 'vitepress-plugin-llms';

const version = readFileSync(
resolve(__dirname, '../../internal/version/version.txt'),
Expand Down Expand Up @@ -90,10 +91,23 @@ export default defineConfig({
});
md.use(tabsMarkdownPlugin);
md.use(groupIconMdPlugin);
md.use(copyOrDownloadAsMarkdownButtons);
}
},
vite: {
plugins: [
llmstxt({
ignoreFiles: [
'index.md',
'team.md',
'donate.md',
'docs/styleguide.md',
'docs/contributing.md',
'docs/releasing.md',
'docs/changelog.md',
'blog/*'
Comment on lines +101 to +108

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These files are excluded by default.

Suggested change
'index.md',
'team.md',
'donate.md',
'docs/styleguide.md',
'docs/contributing.md',
'docs/releasing.md',
'docs/changelog.md',
'blog/*'
'donate.md',
'docs/styleguide.md',
'docs/contributing.md',
'docs/releasing.md',
'docs/changelog.md',

]
}),
groupIconVitePlugin({
customIcon: {
'.taskrc.yml': localIconLoader(
Expand Down
3 changes: 3 additions & 0 deletions website/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import Version from '../components/Version.vue';
import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client';
import { h } from 'vue';
import 'virtual:group-icons.css';
import CopyOrDownloadAsMarkdownButtons from 'vitepress-plugin-llms/vitepress-components/CopyOrDownloadAsMarkdownButtons.vue';

export default {
extends: DefaultTheme,
Layout() {
Expand All @@ -19,6 +21,7 @@ export default {
app.component('AuthorCard', AuthorCard);
app.component('BlogPost', BlogPost);
app.component('Version', Version);
app.component('CopyOrDownloadAsMarkdownButtons', CopyOrDownloadAsMarkdownButtons);
enhanceAppWithTabs(app);
}
} satisfies Theme;
5 changes: 4 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"vitepress-plugin-tabs": "^0.7.1",
"vue": "^3.5.18"
},
"packageManager": "[email protected]+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a"
"packageManager": "[email protected]+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a",
"dependencies": {
"vitepress-plugin-llms": "^1.9.1"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be in devDependencies.

}
}
Loading
Loading