@agilebot/vitepress-preset
v0.9.3
Published
VitePress preset used by Agilebot.
Readme
@agilebot/vitepress-preset
Usage
npm install --save-dev @agilebot/vitepress-preset// .vitepress/config/index.ts
import { withAgilebotConfig } from '@agilebot/vitepress-preset/config';
export default await withAgilebotConfig({
docRoot: '/path/to/doc',
vpRoot: 'path/to/doc/.vitepress',
title: 'My Site',
description: 'My Site Description'
});
// .vitepress/config/theme/index.ts
import { withAgilebotTheme } from '@agilebot/vitepress-preset/theme';
export default withAgilebotTheme();Export PDF
Quickly export your VitePress documentation as a PDF.
import { exportPdf } from '@agilebot/vitepress-preset/pdf';
await exportPdf({
docRoot: '/path/to/doc',
outFile: 'output.pdf'
// lang: 'en',
// routePatterns: []
});docRoot: Docs root directoryoutFile: Output PDF file name
