docs: dark theme by default

This commit is contained in:
ayntee
2020-12-27 11:51:05 +04:00
parent 2dbe51925f
commit 9d451a395d
4 changed files with 64 additions and 58 deletions

View File

@@ -1,5 +1,6 @@
{
"name": "discordeno",
"private": true,
"version": "0.0.1",
"description": "Docs for Discordeno",
"repository": "https://github.com/discordeno/discordeno",
@@ -7,7 +8,6 @@
"docs:dev": "vuepress dev src --host localhost",
"docs:build": "vuepress build src"
},
"license": "MIT",
"devDependencies": {
"vuepress": "^1.7.1",
"vuepress-theme-yuu": "^2.3.0",

View File

@@ -1,7 +1,8 @@
const { name, description, repository } = require("../../package");
const { name, description, repository: repo } = require("../../package");
const nav = require("./navbar");
const sidebar = require("./sidebar");
const title = name[0].toUpperCase() + name.slice(1);
const discordLink = "https://discord.com/invite/5vBgXk3UcZ";
module.exports = {
base: `/`,
@@ -29,65 +30,16 @@ module.exports = {
],
theme: "yuu",
themeConfig: {
repo: repository,
repo,
docsDir: "docs/src",
editLinks: true,
lastUpdated: true,
sidebarDepth: 0,
nav: [
{
text: "Home",
link: "/",
},
{
text: "Docs",
link: "https://doc.deno.land/https/deno.land/x/discordeno/mod.ts",
},
{
text: "Discord",
link: discordLink,
target: "_blank",
},
],
sidebar: {
"/": [
{
title: "Home",
children: [
"/",
"faq",
"gettingstarted",
"djs",
],
},
{
title: "Step By Step Guide",
children: [
"/stepbystep/",
"/stepbystep/createbot",
"/stepbystep/createcommand",
"/stepbystep/createevent",
"/stepbystep/createlanguage",
"/stepbystep/createmonitor",
"/stepbystep/createinhibitor",
"/stepbystep/createtask",
"/stepbystep/hostingbot",
],
},
{
title: "Advanced Guide",
children: [
"/advanced/",
"/advanced/arguments",
"/advanced/customizations",
"/advanced/dockerhosting",
"/advanced/dynamiccommands",
"/advanced/permlevels",
"/advanced/subcommands",
],
},
],
},
nav,
sidebar,
yuu: {
defaultDarkTheme: true
}
},
plugins: [
"@vuepress/plugin-back-to-top",

View File

@@ -0,0 +1,15 @@
module.exports = [
{
text: "Home",
link: "/",
},
{
text: "Docs",
link: "https://doc.deno.land/https/deno.land/x/discordeno/mod.ts",
},
{
text: "Discord",
link: "https://discord.gg/5vBgXk3UcZ",
target: "_blank",
},
]

View File

@@ -0,0 +1,39 @@
module.exports = {
"/": [
{
title: "Home",
children: [
"/",
"faq",
"gettingstarted",
"djs",
],
},
{
title: "Step By Step Guide",
children: [
"/stepbystep/",
"/stepbystep/createbot",
"/stepbystep/createcommand",
"/stepbystep/createevent",
"/stepbystep/createlanguage",
"/stepbystep/createmonitor",
"/stepbystep/createinhibitor",
"/stepbystep/createtask",
"/stepbystep/hostingbot",
],
},
{
title: "Advanced Guide",
children: [
"/advanced/",
"/advanced/arguments",
"/advanced/customizations",
"/advanced/dockerhosting",
"/advanced/dynamiccommands",
"/advanced/permlevels",
"/advanced/subcommands",
],
},
],
}