Skip to content

Commit 12fe153

Browse files
author
Ritchie
committed
first commit
0 parents  commit 12fe153

51 files changed

Lines changed: 28640 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.npmignore

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

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
## Readme
3+
4+
This repo is broken. There are 3 problems with it. See [src/code/readme.md](code/readme.md) for more details.

package-lock.json

Lines changed: 25264 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "example-repo",
3+
"version": "0.0.1",
4+
"description": "",
5+
"main": "index.js",
6+
"authors": {
7+
"name": "",
8+
"email": ""
9+
},
10+
"repository": "/example-repo",
11+
"scripts": {
12+
"dev": "vuepress --no-clear-screen dev src",
13+
"build": "vuepress build src"
14+
},
15+
"license": "MIT",
16+
"devDependencies": {
17+
"vuepress": "^1.5.3"
18+
},
19+
"dependencies": {
20+
"vuepress-bar": "^0.3.6"
21+
}
22+
}
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>

src/.vuepress/config.js

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

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+
}

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

0 commit comments

Comments
 (0)