mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 07:31:58 +01:00
Add missing types to navbar and sidebar items (#24)
This commit is contained in:
parent
3e437da62d
commit
dc953b961a
@ -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",
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user