Added basic search bar

This commit is contained in:
Zechariah 2022-03-30 23:03:44 +08:00
parent 6cb1cd0b47
commit 966b522b65
3 changed files with 41 additions and 3 deletions

View File

@ -4,13 +4,34 @@ import type { DefaultThemeOptions } from "vuepress"
export default defineUserConfig<DefaultThemeOptions>({
title: "YTMusic API",
description: "Unofficial YouTube Music API for TypeScript",
plugins: [
[
"@vuepress/plugin-search",
{
locales: {
"/": {
placeholder: "Search"
}
}
}
]
],
themeConfig: {
repo: "zS1L3NT/ts-npm-ytmusic-api",
editLink: false,
navbar: [
{ text: "Home", link: "/" },
{ text: "Guides", link: "/guides/getting-started.html" },
{ text: "References", link: "/references/ytmusic.html" }
{
text: "Home",
link: "/"
},
{
text: "Guides",
link: "/guides/getting-started.html"
},
{
text: "References",
link: "/references/ytmusic.html"
}
],
sidebar: [
{

View File

@ -24,6 +24,7 @@
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.23",
"@types/tough-cookie": "^4.0.1",
"@vuepress/plugin-search": "^2.0.0-beta.36",
"mocha": "^9.2.2",
"mocha.parallel": "^0.15.6",
"ts-mocha": "^9.0.2",

View File

@ -4,6 +4,7 @@ specifiers:
'@types/mocha': ^9.1.0
'@types/node': ^17.0.23
'@types/tough-cookie': ^4.0.1
'@vuepress/plugin-search': ^2.0.0-beta.36
axios: ^0.25.0
mocha: ^9.2.2
mocha.parallel: ^0.15.6
@ -22,6 +23,7 @@ devDependencies:
'@types/mocha': 9.1.0
'@types/node': 17.0.23
'@types/tough-cookie': 4.0.1
'@vuepress/plugin-search': 2.0.0-beta.36
mocha: 9.2.2
mocha.parallel: 0.15.6_mocha@9.2.2
ts-mocha: 9.0.2_mocha@9.2.2
@ -389,6 +391,20 @@ packages:
- supports-color
dev: true
/@vuepress/plugin-search/2.0.0-beta.36:
resolution: {integrity: sha512-UMtWH5h9wXiZgram2w5m/4Ni5R/8w+G/r22pBdBuqB1KMOUO473EmgOWgxqAsT3DLvOgevfmxQvp/OcEQv9Esw==}
dependencies:
'@vuepress/client': 2.0.0-beta.35
'@vuepress/core': 2.0.0-beta.36
'@vuepress/shared': 2.0.0-beta.35
'@vuepress/utils': 2.0.0-beta.35
chokidar: 3.5.3
vue: 3.2.31
vue-router: 4.0.14_vue@3.2.31
transitivePeerDependencies:
- supports-color
dev: true
/@vuepress/plugin-theme-data/2.0.0-beta.36:
resolution: {integrity: sha512-1Fxj7F0rIARYa/gQmsUql3f7wPF3ML4Fs6kcPHXYll7ZNDLR1OBw9HIGJ7lW4qx37f6YfYs2RjefAuwkVFUn/A==}
dependencies: