How to use the ember-cli-addon-docs/utils/computed.addonPrefix function in ember-cli-addon-docs

To help you get started, we’ve selected a few ember-cli-addon-docs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-learn / ember-cli-addon-docs / addon / components / docs-header / component.js View on Github external
logo: classify(addonLogo(projectName)),

  /**
    The prefix of your project, typically "Ember", "EmberCLI" or "EmberData".

    By default the prefix will be autodiscovered from the `name` field of your addon's package.json.

    ```hbs
    {{docs-header prefix='EmberData'}}
    ```

    @argument prefix
    @type String?
  */
  prefix: addonPrefix(projectName),

  /**
    The name of your project (without the "ember", "ember-cli" or "ember-data" prefix).

    By default the name will be autodiscovered from the `name` field of your addon's package.json.

    ```hbs
    {{docs-header name='MyProject'}}
    ```

    @argument name
    @type String?
  */
  name: computed(function() {
    let name = projectName;
    name = name.replace('ember-data-', '');
github ember-learn / ember-cli-addon-docs / addon / components / docs-hero / component.js View on Github external

@class DocsHero @public */ export default Component.extend({ layout, tagName: '',

/** The prefix to show, tyipcally of: 'Ember', 'EmberCLI', or 'EmberData'

@argument prefix
@type String

*/ prefix: addonPrefix(projectName),

/** The logo's main heading

@argument heading
@type String

*/ heading: classify(unprefixedAddonName(projectName)),

/** Byline for the logo

@argument byline
@type String

*/ byline: projectDescription,