Skip to content

Commit

Permalink
Add additional documentation snippets to KUI generator. (elastic#13076)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Aug 26, 2017
1 parent a45456c commit 7c51c42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui_framework/generator-kui/documentation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = class extends Generator {
}

prompting() {
const prompts = [{
let prompts = [{
message: 'What\'s the name of the component you\'re documenting? Use snake_case, please.',
name: 'name',
type: 'input',
Expand Down Expand Up @@ -122,6 +122,7 @@ module.exports = class extends Generator {

switch (this.fileType) {
case 'documentation':
writeDocumentationPage();
writeDocumentationPageDemo(config.name, config.name);
break;

Expand Down Expand Up @@ -193,7 +194,7 @@ module.exports = class extends Generator {
` hasReact: ${chalk.magenta('true')},\n` +
`}`
);
};
}

this.log('------------------------------------------------');
this.log(chalk.bold('Import snippets:'));
Expand Down

0 comments on commit 7c51c42

Please sign in to comment.