build(aio): generate the api-list.json file from the API docs
This commit is contained in:

committed by
Chuck Jazdzewski

parent
7b6dbf0952
commit
eedca09d73
@ -1,15 +0,0 @@
|
||||
[{% 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 | replace('"','\\"') $}",
|
||||
"whatItDoes": {% if item.whatItDoes %}"Exists"{% else %}"Not Done"{% endif %},
|
||||
"barrel" : "{$ module | replace("/index", "") $}"
|
||||
}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
]
|
@ -1,14 +0,0 @@
|
||||
{
|
||||
{%- for module, items in doc.data %}
|
||||
"{$ module | replace("/index", "") $}" : [{% for item in items %}
|
||||
{
|
||||
"title": "{$ item.title $}",
|
||||
"path": "{$ item.exportDoc.path $}",
|
||||
"docType": "{$ item.docType $}",
|
||||
"stability": "{$ item.stability $}",
|
||||
"secure": "{$ item.security $}",
|
||||
"barrel" : "{$ module | replace("/index", "") $}"
|
||||
}{% if not loop.last %},{% endif %}
|
||||
{% endfor %}]{% if not loop.last %},{% endif %}
|
||||
{% endfor -%}
|
||||
}
|
Reference in New Issue
Block a user