Skip to content

Commit

Permalink
URLs in expected types
Browse files Browse the repository at this point in the history
  • Loading branch information
albangaignard committed Oct 9, 2023
1 parent 573b63e commit 8f82c12
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 6 additions & 2 deletions _includes/properties.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ <h3></h3>
{{page.description}}
</p>

{% if page.expected_values %}
{% if page.expected_values_as_type or page.expected_values_as_data %}
<h4>Expected values</h4>
<ul>
{% for v in page.expected_values %}
{% for v in page.expected_values_as_type %}
{%- assign typeName = '/types/' | append: v %}
<li><a href="{{ typeName | relative_url }}">{{ v }}</a></li>
{% endfor %}
{% for v in page.expected_values_as_data %}
<li>
{{v}}
</li>
Expand Down
5 changes: 4 additions & 1 deletion pages/_properties/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
prop_name: input
description: a property aimed at specifying the type of consumed data.

expected_values:
expected_values_as_type :
- FormalParameter

# expected_values_as_data :
# - text

# used_in_types:
# -

Expand Down
5 changes: 4 additions & 1 deletion pages/_properties/output.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
prop_name: output
description: a property aimed at specifying the type of produced data.

expected_values:
expected_values_as_type :
- FormalParameter

# expected_values_as_data :
# - text

# used_in_types:
# -

Expand Down

0 comments on commit 8f82c12

Please sign in to comment.