Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e56ea94549
|
@ -39,8 +39,9 @@ angularIO.directive('apiList', function () {
|
||||||
{ cssClass: 'const', title: 'Const', matches: ['var', 'let', 'const'] }
|
{ cssClass: 'const', title: 'Const', matches: ['var', 'let', 'const'] }
|
||||||
];
|
];
|
||||||
|
|
||||||
if (isForDart) $ctrl.apiTypes = $ctrl.apiTypes.filter((t) =>
|
if (isForDart) $ctrl.apiTypes = $ctrl.apiTypes.filter(function (t) {
|
||||||
!t.cssClass.match(/^(stable|directive|decorator|interface|enum)$/));
|
return !t.cssClass.match(/^(stable|directive|decorator|interface|enum)$/);
|
||||||
|
});
|
||||||
|
|
||||||
$ctrl.apiFilter = getApiFilterFromLocation();
|
$ctrl.apiFilter = getApiFilterFromLocation();
|
||||||
$ctrl.apiType = getApiTypeFromLocation();
|
$ctrl.apiType = getApiTypeFromLocation();
|
||||||
|
|
|
@ -135,6 +135,12 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
|
||||||
pathTemplate: 'api-list.json',
|
pathTemplate: 'api-list.json',
|
||||||
outputPathTemplate: '${path}'
|
outputPathTemplate: '${path}'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
computePathsProcessor.pathTemplates.push({
|
||||||
|
docTypes: ['api-list-data'],
|
||||||
|
pathTemplate: 'api-list-audit.json',
|
||||||
|
outputPathTemplate: '${path}'
|
||||||
|
});
|
||||||
|
|
||||||
computePathsProcessor.pathTemplates.push({
|
computePathsProcessor.pathTemplates.push({
|
||||||
docTypes: ['cheatsheet-data'],
|
docTypes: ['cheatsheet-data'],
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
[{% for module, items in doc.data %}
|
||||||
|
{% for item in items %}
|
||||||
|
{
|
||||||
|
"title": "{$ item.title $}",
|
||||||
|
"path": "{$ item.exportDoc.path $}",
|
||||||
|
"docType": "{$ item.docType $}",
|
||||||
|
"stability": "{$ item.stability $}",
|
||||||
|
"secure": "{$ item.security $}",
|
||||||
|
"howToUse": "{$ item.howToUse $}",
|
||||||
|
"whatItDoes": {% if item.whatItDoes %}"Exists"{% else %}"Not Done"{% endif %},
|
||||||
|
"barrel" : "{$ module | replace("/index", "") $}"
|
||||||
|
}{% if not loop.last %},{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
]
|
|
@ -1,10 +1,8 @@
|
||||||
|
{%- if doc.howToUse %}
|
||||||
div(layout="row" layout-xs="column" class="row-margin ng-cloak")
|
div(layout="row" layout-xs="column" class="row-margin ng-cloak")
|
||||||
div(flex="20" flex-xs="100")
|
div(flex="20" flex-xs="100")
|
||||||
h2(class="h2-api-docs") How to use
|
h2(class="h2-api-docs") How to use
|
||||||
div(flex="80" flex-xs="100")
|
div(flex="80" flex-xs="100")
|
||||||
:marked
|
:marked
|
||||||
{%- if doc.howToUse %}
|
|
||||||
{$ doc.howToUse | indentForMarkdown(6) $}
|
{$ doc.howToUse | indentForMarkdown(6) $}
|
||||||
{% else %}
|
{% endif %}
|
||||||
*Not yet documented*
|
|
||||||
{% endif %}
|
|
|
@ -1,10 +1,8 @@
|
||||||
|
{%- if doc.whatItDoes %}
|
||||||
div(layout="row" layout-xs="column" class="row-margin ng-cloak")
|
div(layout="row" layout-xs="column" class="row-margin ng-cloak")
|
||||||
div(flex="20" flex-xs="100")
|
div(flex="20" flex-xs="100")
|
||||||
h2(class="h2-api-docs") What it does
|
h2(class="h2-api-docs") What it does
|
||||||
div(flex="80" flex-xs="100")
|
div(flex="80" flex-xs="100")
|
||||||
:marked
|
:marked
|
||||||
{%- if doc.whatItDoes %}
|
|
||||||
{$ doc.whatItDoes | indentForMarkdown(6) $}
|
{$ doc.whatItDoes | indentForMarkdown(6) $}
|
||||||
{% else %}
|
{% endif %}
|
||||||
*Not yet documented*
|
|
||||||
{% endif %}
|
|
Loading…
Reference in New Issue