ember-learn/ember-jsonapi-docs

Code blocks to support file titles

sivakumar-kailasam opened this issue · 1 comments

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.

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