Migrate docs to Vuepress
This commit is contained in:
65
docs/content/.vuepress/config.js
Normal file
65
docs/content/.vuepress/config.js
Normal file
@@ -0,0 +1,65 @@
|
||||
module.exports = {
|
||||
title: 'PluralKit',
|
||||
|
||||
base: "/",
|
||||
head: [
|
||||
["link", { rel: "icon", type: "image/png", href: "/favicon.png" }],
|
||||
['meta', { name: 'theme-color', content: '#da9317' }],
|
||||
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
|
||||
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
|
||||
],
|
||||
evergreen: true,
|
||||
|
||||
markdown: {
|
||||
extendMarkdown: md => {
|
||||
md.use(require("markdown-it-custom-header-link"));
|
||||
md.use(require("markdown-it-imsize"));
|
||||
}
|
||||
},
|
||||
|
||||
themeConfig: {
|
||||
repo: 'xSke/PluralKit',
|
||||
docsDir: 'docs',
|
||||
docsBranch: 'main',
|
||||
editLinks: true,
|
||||
editLinkText: 'Help us improve this page!',
|
||||
lastUpdated: "Last updated",
|
||||
nextLinks: false,
|
||||
prevLinks: false,
|
||||
nav: [
|
||||
{ text: "Support server", link: "https://discord.gg/PczBt78" },
|
||||
{ text: "Invite bot", link: "https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904" }
|
||||
],
|
||||
sidebar: [
|
||||
"/",
|
||||
{
|
||||
title: "Documentation",
|
||||
collapsable: false,
|
||||
sidebarDepth: 2,
|
||||
children: [
|
||||
"/getting-started",
|
||||
"/user-guide",
|
||||
"/command-list",
|
||||
"/api-documentation",
|
||||
"/privacy-policy",
|
||||
"/faq",
|
||||
"/tips-and-tricks"
|
||||
]
|
||||
},
|
||||
["https://discord.gg/PczBt78", "Join the support server"],
|
||||
["https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904", "Add to your server"],
|
||||
]
|
||||
},
|
||||
|
||||
plugins: [
|
||||
'@vuepress/plugin-back-to-top',
|
||||
'@vuepress/plugin-medium-zoom',
|
||||
[
|
||||
'@vuepress/google-analytics',
|
||||
{
|
||||
"ga": "UA-173942267-1"
|
||||
}
|
||||
],
|
||||
["vuepress-plugin-clean-urls", { normalSuffix: "/" }],
|
||||
],
|
||||
}
|
BIN
docs/content/.vuepress/public/favicon.png
Normal file
BIN
docs/content/.vuepress/public/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
7
docs/content/.vuepress/styles/index.styl
Normal file
7
docs/content/.vuepress/styles/index.styl
Normal file
@@ -0,0 +1,7 @@
|
||||
// For custom styles
|
||||
// See: https://vuepress.vuejs.org/config/#index-styl
|
||||
|
||||
// Center images on page (only relevant when resized with markdown-it-imsize)
|
||||
img
|
||||
display block
|
||||
margin auto
|
7
docs/content/.vuepress/styles/palette.styl
Normal file
7
docs/content/.vuepress/styles/palette.styl
Normal file
@@ -0,0 +1,7 @@
|
||||
// Global variables go here, no styles! Some override default theme parameters.
|
||||
// See: https://vuepress.vuejs.org/config/#palette-styl
|
||||
|
||||
$accentColor = #da9317
|
||||
|
||||
// Make page slightly wider (default is 740px)
|
||||
$contentWidth = 900px
|
Reference in New Issue
Block a user