All checks were successful
Build and Release / Build (darwin-arm64) (push) Successful in 19s
Build and Release / Build (darwin-amd64) (push) Successful in 20s
Build and Release / Build (linux-arm64) (push) Successful in 17s
Build and Release / Build (linux-amd64) (push) Successful in 20s
Build and Release / Build (windows-arm64) (push) Successful in 16s
Build and Release / Build (windows-amd64) (push) Successful in 19s
Build and Release / Create Release (push) Has been skipped
Deploy docs / deploy (push) Successful in 45s
57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
import { defineConfig } from 'vitepress'
|
|
import { zhHansThemeConfig } from '../zh-Hans/config'
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
title: "Sub-CLI",
|
|
description: "The Subtitle Manipulation CLI",
|
|
locales: {
|
|
root: {
|
|
label: 'English',
|
|
lang: 'en'
|
|
},
|
|
'zh-Hans': {
|
|
label: '简体中文',
|
|
lang: 'zh-Hans',
|
|
themeConfig: zhHansThemeConfig
|
|
},
|
|
},
|
|
themeConfig: {
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
nav: [
|
|
{ text: 'Home', link: '/' },
|
|
],
|
|
|
|
sidebar: [
|
|
{
|
|
text: 'Introduction',
|
|
items: [
|
|
{ text: 'Getting Started', link: '/getting-started' },
|
|
{ text: 'Installation Guide', link: '/installation' }
|
|
]
|
|
},
|
|
{
|
|
text: 'Usage',
|
|
items: [
|
|
{ text: 'Command Examples', link: '/examples' },
|
|
{ text: 'Command Reference', link: '/commands' }
|
|
]
|
|
},
|
|
{
|
|
text: 'Project',
|
|
items: [
|
|
{ text: 'Provide Feedback', link: '/feedback' }
|
|
]
|
|
}
|
|
],
|
|
|
|
editLink: {
|
|
pattern: 'https://git.owu.one/wholetrans/sub-cli/edit/main/docs/:path',
|
|
text: 'Edit on Owu Git'
|
|
},
|
|
|
|
socialLinks: [
|
|
{ icon: 'forgejo', link: 'https://git.owu.one/wholetrans/sub-cli' }
|
|
]
|
|
},
|
|
})
|