Skip to content

Commit f8efafc

Browse files
authored
Merge pull request #1 from chevereto/chore/template_sync_692304e
upstream merge template repository
2 parents 7c2600f + 6e702ff commit f8efafc

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.vuepress/enhanceApp.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 to the app
14+
try {
15+
const enhanceAppProject = require('./enhanceApp-project.js').default;
16+
enhanceAppProject({ router });
17+
} catch (error) {
18+
// If the file doesn't exist, do nothing
19+
}
20+
}
21+
22+

MARKDOWN.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ The `.vuepress/` folder is required to config VuePress.
6464

6565
* `config-project.js`
6666
* Injects config values to `config.js`
67+
* `enhanceApp-project.js`
68+
* Injects custom Vue components to the VuePress app
6769
* `public/`
6870
* Use it for public content such as pics, icons and the manifest file. A file at `.vuepress/public/logo.svg` will resolve to `/logo.svg`
69-
* `styles/`
71+
* `styles/`
7072
* Uses to store styling (CSS) properties.

0 commit comments

Comments
 (0)