ember-learn / ember-jsonapi-docs

fixes up the ember docs generated by YUIDoc to be in JSONAPI format + some other niceties
9 stars 11 forks source link

Code blocks to support file titles #34

Open sivakumar-kailasam opened 7 years ago

sivakumar-kailasam commented 7 years ago

the ember.js guides support defining a file name with its path as in https://github.com/emberjs/ember.js/blob/04ac480e923ab7f345e30b7aad683bea2ffb7193/packages/ember-glimmer/lib/component.js#L72 and this file path shows up in the code block's title. The API docs fails to do this because the html generated by this tool doesn't support it. We need to add support for the same.

DanaKirsh commented 2 years ago

Currently when the hbs file path is made of multiple words with hyphens, like foo/bar-baz.hbs, it only shows as baz.hbs. Examples

  1. in this file there are multiple occurrences of app/templates/components/person-profile.hbs showing as profile.hbs here

  2. in this file there's app/templates/components/live-updating-chart.hbs showing as just chart.hbs here