NPC Village 🍄🏠👴🏾
Create Some Pages
Add your files and directories
cwo
└── docs
├── README.md # baseurl/
├── custompg.md # baseurl/custompg.html
├── help
│ ├── config
│ │ └── README.md # baseurl/help/config.md
│ ├── frontmatter
│ │ └── README.md # baseurl/help/frontmatter.md
│ ├── markdown
│ │ └── README.md # baseurl/help/markdown.md
│ └── vue
│ └── README.md # baseurl/help/config.md
│
├── start.md # baseurl/start.html
├── test.md # baseurl/start.html
└── zh
└── README.md # for translations with locales
Add your content
Use markdown for your main content and vuejs if you want to get fancy.
Not found: /Users/andycj/Github/PressVue/start.md
Let's setup your header
In docs/.vuepress/config.js
.
Header Title
title: "Your Title"
Navbar
Inside the themeConfig
object
// Navigation
nav: [
// Simple
{
text: 'Get Started',
link: '/start' // cwd/docs/start.md
},
// Dropdown
{text: 'Dropdown',
items: [
{ text: 'Help',
items: [
{ text: 'Config', link: '/help/config/README.md' }, // cwd/docs/help/config/README.md
{ text: 'Markdown', link: '/help/markdown/README.md' }, // cwd/docs/help/markdown/README.md
{ text: 'Vue', link: '/help/vue/README.md' } // cwd/docs/help/vue/README.md
]
}
]
},
// External Link
{
text: 'Github',
link: 'https://github.com/Indyandie/Pressvue'
}
],
Searchbar
You might want to hide it for a personal site or if you don't want some awesome search.
search: false
Now for the sidebar
If you need one. 🤔
Inside the themeConfig
object
sidebar: [
'/start',
'/help/config/',
'/help/markdown/',
'/help/vue/',
'/help/frontmatter/',
['/test', 'Custom sidebar title'],
['/custompg', 'Page Specific Layout'],
]
Default Styles
You can edit these from override.styl
.
Not found: /Users/andycj/Github/PressVue/.vuepress/override.styl
Add Your Own Styles
You can edit these from override.styl
.
Not found: /Users/andycj/Github/PressVue/.vuepress/style.styl
Assets
Make sure to add your local assets under /.vuepress/public
cwd
└── docs
└── .vuepress
├── public
│ ├── favicon.ico
│ ├── hero.png
│ └── logo.png
Okay that should get you started.