Fix broken sidebar links and make it less repeated

This commit is contained in:
Dane Everitt 2019-02-01 21:14:58 -08:00
parent c68eb5813e
commit 631af7a1d8
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
3 changed files with 93 additions and 267 deletions

View File

@ -32,10 +32,6 @@ module.exports = {
text: 'Get Started',
link: '/project/introduction.md',
},
// {
// text: 'API Reference',
// link: '/api/'
// },
{
text: 'Community Guides',
link: '/community/about.md',
@ -45,263 +41,91 @@ module.exports = {
link: 'https://pterodactyl.io/discord'
}
],
sidebar: {
'/project/': [
{
title: 'Project Information',
collapsable: false,
children: [
'/project/introduction.md',
'/project/about.md',
'/project/terms.md',
]
},
{
title: 'Panel',
collapsable: false,
children: [
'/panel/getting_started',
'/panel/webserver_configuration',
'/panel/upgrading',
'/panel/configuration',
'/panel/troubleshooting',
]
},
{
title: 'Daemon',
collapsable: false,
children: [
'/daemon/installing',
'/daemon/upgrading',
'/daemon/configuration',
'/daemon/kernel_modifications',
'/daemon/debian_8_docker',
'/daemon/standalone_sftp',
]
},
{
title: 'Tutorials',
collapsable: false,
children: [
'/tutorials/mysql_setup.md',
'/tutorials/creating_ssl_certificates.md',
],
},
{
title: 'Development & Ops',
collapsable: true,
children: [
'/ops/publish_release.md',
],
},
// {
// title: 'API Reference',
// collapsable: true,
// children: [
// '/',
// ]
// }
],
'/panel/': [
{
title: 'Project Information',
collapsable: false,
children: [
'/project/introduction.md',
'/project/about.md',
'/project/terms.md',
]
},
{
title: 'Panel',
collapsable: false,
children: [
'/panel/getting_started',
'/panel/webserver_configuration',
'/panel/upgrading',
'/panel/configuration',
'/panel/troubleshooting',
]
},
{
title: 'Daemon',
collapsable: false,
children: [
'/daemon/installing',
'/daemon/upgrading',
'/daemon/configuration',
'/daemon/kernel_modifications',
'/daemon/debian_8_docker',
]
},
{
title: 'Tutorials',
collapsable: false,
children: [
'/tutorials/mysql_setup.md',
'/tutorials/creating_ssl_certificates.md',
],
},
{
title: 'Development & Ops',
collapsable: true,
children: [
'/ops/publish_release.md',
],
},
// {
// title: 'API Reference',
// collapsable: true,
// children: [
// '/',
// ]
// }
],
'/daemon/': [
{
title: 'Project Information',
collapsable: false,
children: [
'/project/introduction.md',
'/project/about.md',
'/project/terms.md',
]
},
{
title: 'Panel',
collapsable: false,
children: [
'/panel/getting_started',
'/panel/webserver_configuration',
'/panel/upgrading',
'/panel/configuration',
'/panel/troubleshooting',
]
},
{
title: 'Daemon',
collapsable: false,
children: [
'/daemon/installing',
'/daemon/upgrading',
'/daemon/configuration',
'/daemon/kernel_modifications',
'/daemon/debian_8_docker',
]
},
{
title: 'Tutorials',
collapsable: false,
children: [
'/tutorials/mysql_setup.md',
'/tutorials/creating_ssl_certificates.md',
],
},
{
title: 'Development & Ops',
collapsable: true,
children: [
'/ops/publish_release.md',
],
},
// {
// title: 'API Reference',
// collapsable: true,
// children: [
// '/',
// ]
// }
],
'/tutorials/': [
{
title: 'Project Information',
collapsable: false,
children: [
'/project/introduction.md',
'/project/about.md',
'/project/terms.md',
]
},
{
title: 'Panel',
collapsable: false,
children: [
'/panel/getting_started',
'/panel/webserver_configuration',
'/panel/upgrading',
'/panel/configuration',
'/panel/troubleshooting',
]
},
{
title: 'Daemon',
collapsable: false,
children: [
'/daemon/installing',
'/daemon/upgrading',
'/daemon/configuration',
'/daemon/kernel_modifications',
'/daemon/debian_8_docker',
]
},
{
title: 'Tutorials',
collapsable: false,
children: [
'/tutorials/mysql_setup.md',
'/tutorials/creating_ssl_certificates.md',
],
},
{
title: 'Development & Ops',
collapsable: true,
children: [
'/ops/publish_release.md',
],
},
// {
// title: 'API Reference',
// collapsable: true,
// children: [
// '/',
// ]
// }
],
'/community/':[
{
title: 'Community Guides',
collapsable: false,
children: [
'/community/about.md',
]
},
{
title: 'Install Panel',
collapsable: false,
children: [
'/community/install/panel/centos7.md',
'/community/install/panel/ubuntu1804.md',
'/community/install/panel/debian9.md',
]
},
{
title: 'Install Daemon',
collapsable: false,
children: [
'/community/install/daemon/centos7.md',
'/community/install/daemon/ubuntu1804.md',
'/community/install/daemon/debian9.md',
]
},
{
title: 'Minecraft',
collapsable: false,
children: [
'/community/minecraft/networks.md',
],
},
]
}
sidebar: {
'/community/': [
{
title: 'Community Guides',
collapsable: false,
children: [
'/community/about.md',
]
},
{
title: 'Install Panel',
collapsable: false,
children: [
'/community/install/panel/centos7.md',
'/community/install/panel/ubuntu1804.md',
'/community/install/panel/debian9.md',
]
},
{
title: 'Install Daemon',
collapsable: false,
children: [
'/community/install/daemon/centos7.md',
'/community/install/daemon/ubuntu1804.md',
'/community/install/daemon/debian9.md',
]
},
{
title: 'Minecraft',
collapsable: false,
children: [
'/community/minecraft/networks.md',
],
},
],
'/': [
{
title: 'Project Information',
collapsable: false,
children: [
'/project/introduction.md',
'/project/about.md',
'/project/terms.md',
]
},
{
title: 'Panel',
collapsable: false,
children: [
'/panel/getting_started',
'/panel/webserver_configuration',
'/panel/upgrading',
'/panel/configuration',
'/panel/troubleshooting',
]
},
{
title: 'Daemon',
collapsable: false,
children: [
'/daemon/installing',
'/daemon/upgrading',
'/daemon/configuration',
'/daemon/kernel_modifications',
'/daemon/debian_8_docker',
'/daemon/standalone_sftp',
]
},
{
title: 'Tutorials',
collapsable: false,
children: [
'/tutorials/mysql_setup.md',
'/tutorials/creating_ssl_certificates.md',
],
},
{
title: 'Development & Ops',
collapsable: true,
children: [
'/ops/publish_release.md',
],
},
],
},
},
postcss: {
plugins: [

View File

@ -2,7 +2,7 @@
"dependencies": {
"jquery": "^3.3.1",
"slick-carousel": "^1.8.1",
"vuepress": "^0.14.3"
"vuepress": "^0.14.8"
},
"scripts": {
"build": "./node_modules/vuepress/bin/vuepress.js build",

View File

@ -3956,9 +3956,10 @@ min-document@^2.19.0:
dependencies:
dom-walk "^0.1.0"
mini-css-extract-plugin@^0.4.1:
mini-css-extract-plugin@0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-0.4.1.tgz#d2bcf77bb2596b8e4bd9257e43d3f9164c2e86cb"
integrity sha512-XWuB3G61Rtasq/gLe7cp5cuozehE6hN+E4sxCamRR/WDiHTg+f7ZIAS024r8UJQffY+e2gGELXQZgQoFDfNDCg==
dependencies:
"@webpack-contrib/schema-utils" "^1.0.0-beta.0"
loader-utils "^1.1.0"
@ -6653,9 +6654,10 @@ vuepress-html-webpack-plugin@^3.2.0:
toposort "^1.0.0"
util.promisify "1.0.0"
vuepress@^0.14.3:
version "0.14.3"
resolved "https://registry.yarnpkg.com/vuepress/-/vuepress-0.14.3.tgz#ed20ab490967e5e4247577e9e2bd8b4506a3635f"
vuepress@^0.14.8:
version "0.14.8"
resolved "https://registry.yarnpkg.com/vuepress/-/vuepress-0.14.8.tgz#1e0a70a64c19e82e365eb7313b1ec88cc4ad7ab3"
integrity sha512-2BVubO3a4Nl8i/tWaO66iq2NRxxf9bh3QwDdoUuBTrhGtLgjv8mv4xrsgMpiPLXo1uk7bQY4hjZNvbYjCLCQkg==
dependencies:
"@babel/core" "7.0.0-beta.47"
"@vue/babel-preset-app" "3.0.0-beta.11"
@ -6689,7 +6691,7 @@ vuepress@^0.14.3:
markdown-it-container "^2.0.0"
markdown-it-emoji "^1.4.0"
markdown-it-table-of-contents "^0.4.0"
mini-css-extract-plugin "^0.4.1"
mini-css-extract-plugin "0.4.1"
nprogress "^0.2.0"
optimize-css-assets-webpack-plugin "^4.0.0"
portfinder "^1.0.13"