mirror of
https://github.com/starship/starship.git
synced 2024-11-29 19:53:38 +01:00
chore: use defineConfig to statically type our .vuepress/config
This commit is contained in:
parent
5b24d295f8
commit
e4fa652169
@ -1,4 +1,6 @@
|
||||
const sidebar = (lang, override = {}) =>
|
||||
import { defineConfig, SidebarConfigArray } from "vuepress/config";
|
||||
|
||||
const sidebar = (lang, override = {}): SidebarConfigArray =>
|
||||
[
|
||||
"", // "Home", which should always have a override
|
||||
"guide", // README, which should always have a override
|
||||
@ -23,7 +25,7 @@ const sidebar = (lang, override = {}) =>
|
||||
return page in override ? [path, override[page]] : path;
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
module.exports = defineConfig({
|
||||
locales: {
|
||||
"/": {
|
||||
lang: "en-US",
|
||||
@ -331,11 +333,11 @@ module.exports = {
|
||||
},
|
||||
],
|
||||
[
|
||||
"sitemap",
|
||||
"vuepress-plugin-sitemap",
|
||||
{
|
||||
hostname: "https://starship.rs",
|
||||
},
|
||||
],
|
||||
["vuepress-plugin-code-copy", true],
|
||||
],
|
||||
};
|
||||
});
|
Loading…
Reference in New Issue
Block a user