Skip to content

Commit

Permalink
Merge pull request #9 from metanorma/update-schemas-only-docs
Browse files Browse the repository at this point in the history
Complete schemas-only anchors
  • Loading branch information
opoudjis authored Jul 25, 2024
2 parents 3e9e3a5 + 40c7fed commit 66a1ed5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lib/suma/schema_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,42 @@ def schema_anchors
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
// _subtype_constraints.liquid
{% if schema.subtype_constraints.size > 0 %}
#{bookmark("subtype_constraints")}
// _subtype_constraint.liquid
{% for thing in schema.subtype_constraints %}
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
// _functions.liquid
{% if schema.functions.size > 0 %}
#{bookmark("functions")}
// _function.liquid
{% for thing in schema.functions %}
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
// _procedures.liquid
{% if schema.procedures.size > 0 %}
#{bookmark("procedures")}
// _procedure.liquid
{% for thing in schema.procedures %}
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
// _rules.liquid
{% if schema.rules.size > 0 %}
#{bookmark("rules")}
// _rule.liquid
{% for thing in schema.rules %}
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
HEREDOC
end

Expand Down

0 comments on commit 66a1ed5

Please sign in to comment.