Add missing types to navbar and sidebar items (#24)

This commit is contained in:
Alessandro Jean 2023-09-08 02:50:27 -03:00 committed by GitHub
parent 3e437da62d
commit dc953b961a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,8 @@
import type { DefaultTheme } from "vitepress";
const APP_VERSION = "0.14.6"; const APP_VERSION = "0.14.6";
const nav = [ const nav: DefaultTheme.NavItem[] = [
{ {
text: "Documentation", text: "Documentation",
link: "/docs/guides/getting-started", link: "/docs/guides/getting-started",

View File

@ -1,4 +1,6 @@
const sidebar = { import type { DefaultTheme } from "vitepress";
const sidebar: DefaultTheme.SidebarMulti = {
"/download/": defaultSidebar(), "/download/": defaultSidebar(),
"/extensions/": defaultSidebar(), "/extensions/": defaultSidebar(),
"/docs/": defaultSidebar(), "/docs/": defaultSidebar(),
@ -8,7 +10,7 @@ const sidebar = {
"/sandbox/": defaultSidebar(), "/sandbox/": defaultSidebar(),
}; };
function defaultSidebar() { function defaultSidebar(): DefaultTheme.SidebarItem[] {
return [ return [
{ {
text: "Frequently Asked Questions", text: "Frequently Asked Questions",