pack: separate documentation build script from root package.json to docs directory root
This commit is contained in:
1 parent
47d27ee7ca
commit
a3b554fa8f
19 files changed
+1145
-28
No files matched your search
@@ -0,0 +1,29 @@
|
||||
// @ts-ignore
|
||||
import { generateSidebar } from 'vitepress-sidebar'
|
||||
import { name, description, repository } from '../../../package.json'
|
||||
|
||||
const capitalizeFirst = (str: string): string => str.charAt(0).toUpperCase() + str.slice(1)
|
||||
|
||||
export default {
|
||||
title: capitalizeFirst(name),
|
||||
description,
|
||||
outDir: '../dist',
|
||||
head: [
|
||||
['link', { rel: 'icon', href: '/logo.png' }],
|
||||
['link', { rel: 'shortcut icon', href: '/favicon.ico' }]
|
||||
],
|
||||
themeConfig: {
|
||||
sidebar: generateSidebar({
|
||||
root: 'src',
|
||||
collapsed: false,
|
||||
useTitleFromFileHeading: true,
|
||||
sortByFileName: [
|
||||
'getting-started.md',
|
||||
'build-configuration.md',
|
||||
'project-structure.md',
|
||||
'npm-scripts.md'
|
||||
]
|
||||
}),
|
||||
socialLinks: [{ icon: 'github', link: repository.url.replace('.git', '') }]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user