@@ -3,7 +3,7 @@ import layout from './template';
33import config from 'dummy/config/environment' ;
44import { computed } from '@ember/object' ;
55import { classify } from '@ember/string' ;
6- import { addonLogo } from 'ember-cli-addon-docs/utils/computed' ;
6+ import { addonLogo , addonPrefix } from 'ember-cli-addon-docs/utils/computed' ;
77import { inject as service } from '@ember/service' ;
88import { reads } from '@ember/object/computed' ;
99
@@ -40,11 +40,38 @@ export default Component.extend({
4040
4141 didInsertElement ( ) {
4242 this . _super ( ...arguments ) ;
43+
4344 this . get ( 'projectVersion' ) . loadAvailableVersions ( ) ;
4445 } ,
4546
46- logo : addonLogo ( projectName ) ,
47+ logo : classify ( addonLogo ( projectName ) ) ,
48+
49+ /**
50+ The prefix of your project, typically "Ember", "EmberCLI" or "EmberData".
51+
52+ By default the prefix will be autodiscovered from the `name` field of your addon's package.json.
53+
54+ ```hbs
55+ {{docs-header prefix='EmberData'}}
56+ ```
57+
58+ @argument prefix
59+ @type String?
60+ */
61+ prefix : addonPrefix ( projectName ) ,
62+
63+ /**
64+ The name of your project (without the "ember", "ember-cli" or "ember-data" prefix).
65+
66+ By default the name will be autodiscovered from the `name` field of your addon's package.json.
67+
68+ ```hbs
69+ {{docs-header name='MyProject'}}
70+ ```
4771
72+ @argument name
73+ @type String?
74+ */
4875 name : computed ( function ( ) {
4976 let name = projectName ;
5077 name = name . replace ( 'ember-data-' , '' ) ;
0 commit comments