pack: use dynamic repository url in vitepress config
This commit is contained in:
1 parent
d7bcadbfc6
commit
e5552d1757
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { generateSidebar } from 'vitepress-sidebar'
|
import { generateSidebar } from 'vitepress-sidebar'
|
||||||
import { name, description } from '../../package.json'
|
import { name, description, repository } from '../../package.json'
|
||||||
|
|
||||||
const capitalizeFirst = (str) => str.charAt(0).toUpperCase() + str.slice(1)
|
const capitalizeFirst = (str) => str.charAt(0).toUpperCase() + str.slice(1)
|
||||||
|
|
||||||
@@ -19,6 +19,6 @@ export default {
|
|||||||
useTitleFromFileHeading: true,
|
useTitleFromFileHeading: true,
|
||||||
sortByFileName: ['getting-started.md', 'build-configuration.md', 'npm-scripts.md']
|
sortByFileName: ['getting-started.md', 'build-configuration.md', 'npm-scripts.md']
|
||||||
}),
|
}),
|
||||||
socialLinks: [{ icon: 'github', link: 'https://github.com/jooy2/vutron' }]
|
socialLinks: [{ icon: 'github', link: repository.url.replace('.git', '') }]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
"main": "dist/main/index.js",
|
"main": "dist/main/index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/jooy2/vutron.git"
|
"url": "https://github.com/jooy2/vutron.git"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/jooy2/vutron/issues"
|
"url": "https://github.com/jooy2/vutron/issues"
|
||||||
|
|||||||
Reference in new issue
Block a user