Skip to content

Improve Component API Doc documentation #137

Open
@andrewpye

Description

@andrewpye

Perhaps this is coming from my inexperience with JSDoc, but I'm getting unexpected results regarding accessibility level in the generated API documentation for my components. Say I have this component:

// my-component.js
import Component from '@ember/component';

/**
 * Some new component I made.
 *
 * @class my-component
 * @public
 */
export default Component.extend({
  /**
   * Some public field
   *
   * @property publicField
   * @type {String}
   * @default null
   * @public
   */
  publicField: null,
});

I would expect the public field to be visible by default when the documentation page loads; however, the generated API documentation page for this component looks like this:

image

and the public field only becomes visible after clicking the internal checkbox:

image

Is there a way to make fields visible as public?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions