mirror of
https://github.com/Automattic/harper.git
synced 2025-08-04 18:48:02 +00:00
115 lines
2.4 KiB
TypeScript
115 lines
2.4 KiB
TypeScript
import wasm from 'vite-plugin-wasm';
|
|
import topLevelAwait from 'vite-plugin-top-level-await';
|
|
import { defineConfig } from 'vite';
|
|
import { sveltepress } from '@sveltepress/vite';
|
|
import { defaultTheme } from '@sveltepress/theme-default';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 3000,
|
|
fs: {
|
|
allow: ['../harper.js/dist']
|
|
}
|
|
},
|
|
plugins: [
|
|
sveltepress({
|
|
siteConfig: {
|
|
title: 'Harper',
|
|
description: 'A Grammar Checker from Automattic'
|
|
},
|
|
theme: defaultTheme({
|
|
editLink: `https://github.com/automattic/harper/edit/master/packages/web/src/routes/:route`,
|
|
logo: '/circle-logo.png',
|
|
github: 'https://github.com/automattic/harper',
|
|
themeColor: {
|
|
primary: '#818eae',
|
|
dark: '#355280',
|
|
gradient: {
|
|
start: '#355280',
|
|
end: '#818eae'
|
|
}
|
|
},
|
|
navbar: [{ title: 'Documentation', to: '/docs/about' }],
|
|
sidebar: {
|
|
'/docs/': [
|
|
{
|
|
title: 'About',
|
|
to: '/docs/about'
|
|
},
|
|
{
|
|
title: 'Integrations',
|
|
items: [
|
|
{
|
|
title: 'Obsidian',
|
|
to: '/docs/integrations/obsidian'
|
|
},
|
|
{
|
|
title: 'Visual Studio Code',
|
|
to: '/docs/integrations/visual-studio-code'
|
|
},
|
|
{
|
|
title: 'Language Server',
|
|
to: '/docs/integrations/language-server'
|
|
},
|
|
{
|
|
title: 'Neovim',
|
|
to: '/docs/integrations/neovim'
|
|
},
|
|
{
|
|
title: 'Helix',
|
|
to: '/docs/integrations/helix'
|
|
},
|
|
{
|
|
title: 'Zed',
|
|
to: '/docs/integrations/zed'
|
|
},
|
|
{
|
|
title: 'Emacs',
|
|
to: '/docs/integrations/emacs'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: 'Contributors',
|
|
items: [
|
|
{
|
|
title: 'Introduction',
|
|
to: '/docs/contributors/introduction'
|
|
},
|
|
{
|
|
title: 'Environment',
|
|
to: '/docs/contributors/environment'
|
|
},
|
|
{
|
|
title: 'Committing',
|
|
to: '/docs/contributors/committing'
|
|
},
|
|
{
|
|
title: 'Architecture',
|
|
to: '/docs/contributors/architecture'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
highlighter: {
|
|
languages: [
|
|
'svelte',
|
|
'sh',
|
|
'js',
|
|
'html',
|
|
'ts',
|
|
'md',
|
|
'css',
|
|
'scss',
|
|
'toml',
|
|
'rust',
|
|
'lua'
|
|
]
|
|
}
|
|
})
|
|
}),
|
|
wasm(),
|
|
topLevelAwait()
|
|
]
|
|
});
|