【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>
安装
# install globally
npm install -g vuepress
# create a markdown file
echo "# Hello VuePress!" > README.md
# start writing 监听8081端口
vuepress dev .
# build
vuepress build .
相关链接
https://segmentfault.com/a/1190000015237352?utm_source=tag-newest
package.json代码
{
"name": "vuepress_netlify",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
"keywords": [],
"author": "",
"license": "ISC"
}
./vuepress/config.js 代码
module.exports = {
title: 'Adroi媒体API 接口文档', // 设置网站标题
description : 'Adroi',
base : '/v1/adroi-h5/adroiapi/',
themeConfig: {
nav: [
{ text: '主页', link: '/' },
{ text: '博文',
items: [
{ text: 'Android', link: '/android/' },
{ text: 'ios', link: '/ios/' },
{ text: 'Web', link: '/web/' }
]
},
{ text: '关于', link: '/about/' },
{ text: 'Github', link: 'https://www.github.com/codeteenager' },
],
sidebar: {
'/android/': [
"",
"android1",
],
"/ios/":[
"",
"ios1",
],
"/web/":[
"",
"web1",
],
},
sidebarDepth: 2,
lastUpdated: 'Last Updated',
}
}
来源:oschina
链接:https://my.oschina.net/shunshun/blog/3155517