-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
923 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{% cache 'lsp-filters-json' %} | ||
{%- capture url -%}https://deidcfp1yn7c2.cloudfront.net/platform_docs/{{ context.version }}/filters.json{%- endcapture -%} | ||
{% assign data = url | download_file | parse_json: raw_text: true %} | ||
{% render 'api/liquid/filters', data: data %} | ||
{%- capture url -%}https://deidcfp1yn7c2.cloudfront.net/platform_docs/{{ context.version }}/filters.json{%- endcapture -%} | ||
{% assign data = url | download_file | parse_json: raw_text: true %} | ||
{% render 'api/liquid/filters', data: data %} | ||
{% endcache %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% cache 'lsp-tags-json' %} | ||
{%- capture url -%}https://deidcfp1yn7c2.cloudfront.net/platform_docs/{{ context.version }}/tags.json{%- endcapture -%} | ||
{% assign data = url | download_file | parse_json: raw_text: true %} | ||
{% render 'api/liquid/tags', data: data %} | ||
{% endcache %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{% capture tags %} | ||
[ | ||
{%- for item in data.tags -%} | ||
{% if item.name == blank %}{% continue %}{% endif %} | ||
{ | ||
"category": "{{ item.category | default: 'platformOS' }}", | ||
"deprecated": {{ item.deprecated | default: false | json }}, | ||
"deprecation_reason": "{{item.deprecated | join: ', '}}", | ||
"description": {{ item.description | json }}, | ||
"syntax": {{ item.examples.first | replace: '"', '\"' | json }}, | ||
"name": "{{item.name}}", | ||
"parameters": [ | ||
{% for param in item.params %} | ||
{ | ||
"description": {{ param.description | json }}, | ||
"name": {{ param.name | json }}, | ||
"required": {{ param.required | default: false | json }}, | ||
"types": {{ param.types }} | ||
}{% unless forloop.last %},{% endunless %} | ||
{% endfor %} | ||
], | ||
"return_type": [ | ||
{% for return_type in item.returns %} | ||
{ | ||
"type": "{{ return_type.types | join: ', ' | downcase }}", | ||
"name": "", | ||
"description": "{{return_type.description | replace: '"', '\"' | replace: " | ||
", "\n" }}", | ||
"array_value": "" | ||
}{% unless forloop.last %},{% endunless %} | ||
{% endfor %} | ||
], | ||
"examples": [ | ||
{% for example in item.examples %} | ||
{ | ||
"name": "", | ||
"description": "", | ||
"syntax": "", | ||
"path": "", | ||
"raw_liquid": {{ example | replace: '"', '\"' | json }}, | ||
"parameter": false, | ||
"display_type": "text", | ||
"show_data_tab": true | ||
}{% unless forloop.last %},{% endunless %} | ||
{% endfor %} | ||
] | ||
}{% unless forloop.last %},{% endunless %} | ||
{% endfor %} | ||
] | ||
{% endcapture %} | ||
{% liquid | ||
assign tags = tags | parse_json: raw_text: true | ||
return tags | ||
%} |
Oops, something went wrong.