File tree Expand file tree Collapse file tree 5 files changed +14
-3
lines changed Expand file tree Collapse file tree 5 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,18 @@ import { computed } from '@ember/object';
33import { or } from '@ember/object/computed' ;
44import { capitalize } from '@ember/string' ;
55import { memberFilter } from '../../../utils/computed' ;
6+ import config from 'dummy/config/environment' ;
7+
8+ const { showImportPaths } = config [ 'ember-cli-addon-docs' ] ;
69
710import layout from './template' ;
811
912export default Component . extend ( {
1013 layout,
1114 tagName : '' ,
1215
16+ showImportPaths,
17+
1318 showInherited : false ,
1419 showProtected : false ,
1520 showPrivate : false ,
Original file line number Diff line number Diff line change 33{{! wrapping in a div seems to work around https://github.com/ember-learn/ember-cli-addon-docs/issues/7 }}
44<div data-test-class-description>{{{ class.description }}} </div >
55
6- {{ #if (or class.exportType hasToggles )}}
6+ {{ #if (or ( and class.exportType showImportPaths ) hasToggles )}}
77 {{ #api/x-meta-panel as |panel |}}
88 {{ #if class.exportType }}
99 {{ #panel.header }}
Original file line number Diff line number Diff line change 11import Component from '@ember/component' ;
22import { computed } from '@ember/object' ;
33import layout from './template' ;
4+ import config from 'dummy/config/environment' ;
5+
6+ const { showImportPaths } = config [ 'ember-cli-addon-docs' ] ;
47
58/**
69 @class Api/XSection
@@ -10,6 +13,8 @@ export default Component.extend({
1013 layout,
1114 tagName : '' ,
1215
16+ showImportPaths,
17+
1318 /**
1419 * Params shouldn't be displayed when there are no descriptions and no subparams,
1520 * because the information is already displayed in the type signature and redundant
Original file line number Diff line number Diff line change 2626 {{{ item.description }}}
2727 </p >
2828
29- {{ #if (or item.exportType shouldDisplayParams )}}
29+ {{ #if (or ( and item.exportType showImportPaths ) shouldDisplayParams )}}
3030 {{ #api/x-meta-panel as |panel |}}
3131 {{ #if item.exportType }}
3232 {{ #panel.header }}
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ module.exports = {
5151 primaryBranch : userConfig . getPrimaryBranch ( ) ,
5252 latestVersionName : LATEST_VERSION_NAME ,
5353 deployVersion : 'ADDON_DOCS_DEPLOY_VERSION' ,
54- searchTokenSeparator : "\\s+"
54+ searchTokenSeparator : "\\s+" ,
55+ showImportPaths : true
5556 } ,
5657 'ember-component-css' : {
5758 namespacing : false
You can’t perform that action at this time.
0 commit comments