Professional Documents
Culture Documents
Getting Start Your VuePress With CodeSandBox in 30 Min - DEV Community
Getting Start Your VuePress With CodeSandBox in 30 Min - DEV Community
JinTeng
Posted on Nov 15, 2021
https://dev.to/jingteng/getting-start-your-vuepress-with-codesanbox-in-30-min-5859 1/7
2/14/22, 2:06 PM Getting Start Your VuePress with CodeSandBox in 30 min - DEV Community
Why VuePress?
Minimal setup with markdown-centered project structure helps you focus on writing.
VuePress generates pre-rendered static HTML for each page, and runs as an SPA
once a page is loaded.
How to Quick Start?
VuePress starter template for CodeSandbox helps you create the project with one
single click.
Continuous deploy your works by connecting a Git repository to a Netlify site and
keeping the two in sync.
Basic VuePress Tutorial
https://dev.to/jingteng/getting-start-your-vuepress-with-codesanbox-in-30-min-5859 2/7
2/14/22, 2:06 PM Getting Start Your VuePress with CodeSandBox in 30 min - DEV Community
heroImage: /hero.png
actionText: CSS →
actionLink: /css/
features:
- title: "Document"
details: Note
- title: "Link"
details: Note
---
├── .vuepress
├── JS
│ └── README.md
├── NOTE
│ └── README.md
└── package.json
└── ...
Child route
Those files in the first hierarchy directory will be built as
.md .html files and can be
accessed.
eg.
├── CSS // <- path : /css
themeConfig: {
...
sidebar: 'auto'
}
};
--------
sidebar: auto
--------
Navigation
You can set your navigation items in .vuepress/config.js .
module.exports = {
themeConfig: {
nav: [
}
};
Child Nav
HTML Head
favicon
Add a favicon.ico in .vuepress/public .
Quick Start
1.install "VuePress + CodeSanBox" template
2.Update Directory Structures
.
├── .vuepress
│ ├── components
│ ├── theme
│ │ └── Layout.vue
│ ├── styles
│ ├── templates
│ └── enhanceApp.js
https://dev.to/jingteng/getting-start-your-vuepress-with-codesanbox-in-30-min-5859 5/7
2/14/22, 2:06 PM Getting Start Your VuePress with CodeSandBox in 30 min - DEV Community
└── package.json
└── ...
3.Update Config
module.exports = {
themeConfig: {
nav: [
}
};
Discussion (0)
Code of Conduct • Report abuse
JinTeng
LOCATION
London
JOINED
Mar 26, 2021
https://dev.to/jingteng/getting-start-your-vuepress-with-codesanbox-in-30-min-5859 7/7