Skip to content

Commit 031b67f

Browse files
authored
Syntax property in documentation (#1754)
* Syntax * Add platformOS property to custom tags
1 parent d20e2b3 commit 031b67f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/views/partials/api/liquid/platformos_filters.liquid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"description": {% print item.description | json %},
2424
"summary": "{% print item.decription | join: ', ' | default: default_description %}",
2525
"syntax": "{% print first_param_type %} | {% print item.name %}",
26+
"platformOS": true,
2627
"name": "{% print item.name %}",
2728
"aliases": {% print item.aliases | json %},
2829
"parameters": [

app/views/partials/api/liquid/platformos_tags.liquid

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
{%- for item in data.tags -%}
44
{% if item.name == blank %}{% continue %}{% endif %}
55
{
6-
"category": "{{ item.category | default: 'platformOS' }}",
6+
"category": "{{ item.category | default: 'platformOS' }}",
77
"deprecated": {{ item.deprecated | default: false | json }},
88
"deprecation_reason": "{{item.deprecated | join: ', '}}",
99
"description": {{ item.description | json }},
10-
"syntax": {{ item.examples.first | json }},
10+
"syntax": {{ item.syntax | json }},
11+
"platformOS": true,
1112
"name": "{{item.name}}",
1213
"parameters": [
1314
{% for param in item.params %}

0 commit comments

Comments
 (0)