Skip to content

Commit a2fd481

Browse files
create docs
1 parent 8ef8f67 commit a2fd481

File tree

14 files changed

+8063
-0
lines changed

14 files changed

+8063
-0
lines changed

docs/.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
pids
2+
logs
3+
node_modules
4+
npm-debug.log
5+
coverage/
6+
run
7+
dist
8+
.DS_Store
9+
.nyc_output
10+
.basement
11+
config.local.js
12+
basement_dist

docs/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "docs",
3+
"version": "0.0.1",
4+
"description": "",
5+
"main": "index.js",
6+
"authors": {
7+
"name": "",
8+
"email": ""
9+
},
10+
"repository": "/docs",
11+
"scripts": {
12+
"dev": "vuepress dev src",
13+
"build": "vuepress build src"
14+
},
15+
"license": "MIT",
16+
"devDependencies": {
17+
"vuepress": "^1.5.3"
18+
}
19+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<p class="demo">
3+
{{ msg }}
4+
</p>
5+
</template>
6+
7+
<script>
8+
export default {
9+
data () {
10+
return {
11+
msg: 'Hello this is <Foo-Bar>'
12+
}
13+
}
14+
}
15+
</script>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<p class="demo">This is another component</p>
3+
</template>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<p class="demo">
3+
{{ msg }}
4+
</p>
5+
</template>
6+
7+
<script>
8+
export default {
9+
data() {
10+
return {
11+
msg: 'Hello this is <demo-component>'
12+
}
13+
}
14+
}
15+
</script>

docs/src/.vuepress/config.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
const { description } = require('../../package')
2+
3+
module.exports = {
4+
/**
5+
* Ref:https://v1.vuepress.vuejs.org/config/#title
6+
*/
7+
title: 'Vuepress Docs Boilerplate',
8+
/**
9+
* Ref:https://v1.vuepress.vuejs.org/config/#description
10+
*/
11+
description: description,
12+
13+
/**
14+
* Extra tags to be injected to the page HTML `<head>`
15+
*
16+
* ref:https://v1.vuepress.vuejs.org/config/#head
17+
*/
18+
head: [
19+
['meta', { name: 'theme-color', content: '#3eaf7c' }],
20+
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
21+
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
22+
],
23+
24+
/**
25+
* Theme configuration, here is the default theme configuration for VuePress.
26+
*
27+
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
28+
*/
29+
themeConfig: {
30+
repo: '',
31+
editLinks: false,
32+
docsDir: '',
33+
editLinkText: '',
34+
lastUpdated: false,
35+
nav: [
36+
{
37+
text: 'Guide',
38+
link: '/guide/',
39+
},
40+
{
41+
text: 'Config',
42+
link: '/config/'
43+
},
44+
{
45+
text: 'VuePress',
46+
link: 'https://v1.vuepress.vuejs.org'
47+
}
48+
],
49+
sidebar: {
50+
'/guide/': [
51+
{
52+
title: 'Guide',
53+
collapsable: false,
54+
children: [
55+
'',
56+
'using-vue',
57+
]
58+
}
59+
],
60+
}
61+
},
62+
63+
/**
64+
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
65+
*/
66+
plugins: [
67+
'@vuepress/plugin-back-to-top',
68+
'@vuepress/plugin-medium-zoom',
69+
]
70+
}

docs/src/.vuepress/enhanceApp.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Client app enhancement file.
3+
*
4+
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
5+
*/
6+
7+
export default ({
8+
Vue, // the version of Vue being used in the VuePress app
9+
options, // the options for the root Vue instance
10+
router, // the router instance for the app
11+
siteData // site metadata
12+
}) => {
13+
// ...apply enhancements for the site.
14+
}

docs/src/.vuepress/styles/index.styl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Custom Styles here.
3+
*
4+
* ref:https://v1.vuepress.vuejs.org/config/#index-styl
5+
*/
6+
7+
.home .hero img
8+
max-width 450px!important
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Custom palette here.
3+
*
4+
* ref:https://v1.vuepress.vuejs.org/zh/config/#palette-styl
5+
*/
6+
7+
$accentColor = #3eaf7c
8+
$textColor = #2c3e50
9+
$borderColor = #eaecef
10+
$codeBgColor = #282c34

docs/src/config/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
sidebar: auto
3+
---
4+
5+
# Config
6+
7+
## foo
8+
9+
- Type: `string`
10+
- Default: `/`
11+
12+
## bar
13+
14+
- Type: `string`
15+
- Default: `/`

0 commit comments

Comments
 (0)