UPDATE readme
This commit is contained in:
parent
3cf1597281
commit
12d2b683ca
17
DEVELOPER.md
17
DEVELOPER.md
@ -1,6 +1,19 @@
|
||||
# Developer Docs
|
||||
|
||||
|
||||
|
||||
## Adding a new template
|
||||
|
||||
1. Create a new file `src/components/resume-X`.
|
||||
2. Copy
|
||||
1. Create a copy of `src/resumes/template.vue`.
|
||||
|
||||
2. Rename file and update component name:
|
||||
```javascript
|
||||
export default Vue.component('TEMPLATE-NAME', {
|
||||
name: 'TEMPLATE-NAME',
|
||||
...
|
||||
});
|
||||
```
|
||||
|
||||
3. Import the newly added template in `src/resumes/resumes.js`.
|
||||
|
||||
Your new resume will be now reachable at `localhost:8080/#/resume/TEMPLATE-NAME`.
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
// If you create a new resume, import it here:
|
||||
import '../resumes/material-dark.vue';
|
||||
import '../resumes/material-blue.vue';
|
||||
import '../resumes/left-right.vue';
|
||||
|
||||
@ -10,6 +10,7 @@ import {
|
||||
} from '../person';
|
||||
|
||||
import Vue from 'vue';
|
||||
// TODO rename vue component
|
||||
export default Vue.component('template', {
|
||||
name: 'template',
|
||||
data () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user