Skip to content
  • Sponsor ember-learn/ember-cli-addon-docs

  • Notifications You must be signed in to change notification settings
  • Fork 144

Auto-generated API docs are no longer displayed automatcally #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions addon/components/docs-viewer/api-nav-list/component.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Component from '@ember/component';
import layout from './template';

export default Component.extend({
layout,

root: 'docs',

// Currently provided by the calling template
// while there is no central access to the resource
project: null
});
12 changes: 12 additions & 0 deletions addon/components/docs-viewer/api-nav-list/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{!-- Autogenerated API docs --}}
{{#if (gt project.modules.length 0)}}
{{docs-viewer/x-section 'API Reference' style='large'}}

{{#each-in project.navigationIndex as |type items|}}
{{docs-viewer/x-section type}}

{{#each items as |item|}}
{{docs-viewer/x-nav-item (break-on item.name '/') (concat root '.api.item') item.path}}
{{/each}}
{{/each-in}}
{{/if}}
15 changes: 1 addition & 14 deletions addon/components/docs-viewer/x-nav/template.hbs
Original file line number Diff line number Diff line change
@@ -26,26 +26,13 @@
</button>
</div>
{{/if}}

{{#docs-viewer/x-nav-list}}
{{yield (hash
section=(component 'docs-viewer/x-section')
item=(component 'docs-viewer/x-nav-item')
subnav=(component 'docs-viewer/x-nav-list' class='ml-4')
api-nav=(component 'docs-viewer/api-nav-list' class='ml-4' project=project)
)}}

{{!-- Autogenerated API docs --}}
{{#if (gt project.modules.length 0)}}
{{docs-viewer/x-section 'API Reference' style='large'}}

{{#each-in project.navigationIndex as |type items|}}
{{docs-viewer/x-section type}}

{{#each items as |item|}}
{{docs-viewer/x-nav-item (break-on item.name '/') (concat root '.api.item') item.path}}
{{/each}}
{{/each-in}}
{{/if}}
{{/docs-viewer/x-nav-list}}

<div class="docs-mt-16 lg:docs-mb-16 docs-mr-2 docs-text-xs docs-rounded">