ember-learn / ember-cli-addon-docs

Easy, beautiful docs for your OSS Ember addons
https://ember-learn.github.io/ember-cli-addon-docs
MIT License
176 stars 142 forks source link

Ts file snippet is not rendering #361

Open LowBP opened 5 years ago

LowBP commented 5 years ago

Steps to reproduce the behavior:

  1. Ember install ember-cli-typescript --save
  2. Create a route docs/button
  3. In docs/button/controller.ts
  // BEGIN-SNIPPET docs-button.ts
    @action  
       onClick(){
      }
  // END-SNIPPET
  1. In docs/button/template.hbs {{demo.snippet name='docs-button.ts'}}

Version details

 "ember-cli": "~3.8.1",
 "ember-source": "~3.8.0",
 "ember-cli-addon-docs": "^0.6.7",
 "ember-cli-typescript": "^2.0.0",
dfreeman commented 5 years ago

Looks like 'ts' should be added to the default snippet extensions array