Skip to content

Commit 4964bf1

Browse files
Remove ESDoc support (#692)
* Remove all ESDoc references * Update sandbox.json * Update components-test.js * Update helpers-test.js * Remove choices and install YUIDoc
1 parent 64ba5e3 commit 4964bf1

File tree

11 files changed

+7
-519
lines changed

11 files changed

+7
-519
lines changed

blueprints/ember-cli-addon-docs/index.js

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = {
1414
beforeInstall() {
1515
return this.addAddonsToProject({
1616
packages: [
17+
'ember-cli-addon-docs-yuidoc',
1718
'ember-cli-deploy',
1819
'ember-cli-deploy-build',
1920
'ember-cli-deploy-git',
@@ -46,12 +47,6 @@ module.exports = {
4647
this.insertIntoFile('.npmignore', '/config/addon-docs.js');
4748
}
4849

49-
const hasPlugins = this.project.addons.some(function(addon) {
50-
const isPlugin = addon.pkg.keywords.indexOf('ember-cli-addon-docs-plugin') !== -1;
51-
const isPluginPack = addon.pkg.keywords.indexOf('ember-cli-addon-docs-plugin-pack') !== -1;
52-
return isPlugin || isPluginPack;
53-
});
54-
5550
const packageJsonPath = path.join(this.project.root, 'package.json');
5651
const updatedDemoUrl = updateDemoUrl(packageJsonPath);
5752

@@ -61,38 +56,5 @@ module.exports = {
6156
`including a link on Ember Observer, set it to https://{ORGANIZATION}.github.io/{REPO}`
6257
);
6358
}
64-
65-
if (!hasPlugins) {
66-
return this._chooseAddonsToInstall()
67-
.then((addon) => {
68-
return this.addAddonsToProject({
69-
packages: [addon],
70-
blueprintOptions: {
71-
save: options.save
72-
}
73-
});
74-
});
75-
}
76-
},
77-
78-
_chooseAddonsToInstall() {
79-
// Ask which ember addon to install
80-
return this.ui.prompt({
81-
type: 'list',
82-
name: 'addonToInstall',
83-
message: 'Which documentation style would you like to use?',
84-
choices: [
85-
{
86-
name: 'ESDoc',
87-
value: { name: 'ember-cli-addon-docs-esdoc' }
88-
},
89-
{
90-
name: 'YUIDoc',
91-
value: { name: 'ember-cli-addon-docs-yuidoc' }
92-
}
93-
]
94-
}).then((selected) => {
95-
return selected.addonToInstall;
96-
});
9759
}
9860
};

sandbox/app/components/esdoc-component.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

sandbox/app/helpers/esdoc-class-helper.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

sandbox/app/helpers/esdoc-helper.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

sandbox/app/templates/esdoc-component.hbs

Lines changed: 0 additions & 1 deletion
This file was deleted.

sandbox/app/utils/esdoc-module.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)