mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
* Add Bootstrap Extension * Rename main.yml * Artifact Upload * Fix Bootstrap Reference Error * BootstrapTreeProcessor * getiterator removed * keys function * Style Images * Update docs_build.yml * Added Meta Files * Template Get * Fix Page Ref * Update BASE_URL * Sort Schemas * Add Sitemaps * Add favicons, open-graph, and setup guide * Update Setup.md * Update .gitignore * Update Setup.md * Use _blank on external links * Restructured Docs * Fix Links * Added XML Schemas * Name XML Schemas * Improved Best Practices * Add Logs For Static Files * Make docs build happen on PR
19 lines
785 B
Django/Jinja
19 lines
785 B
Django/Jinja
<br/>
|
|
<div class="badge badge-secondary">Example{% if examples|length > 1 %}s{% endif %}:</div>
|
|
<br/>
|
|
|
|
{% for example in examples %}
|
|
{% set example_id = schema.html_id ~ "_ex" ~ loop.index %}
|
|
{% set example_is_long = example is not description_short %}
|
|
{% if example_is_long %}
|
|
<button class="btn btn-light example-show collapsed" data-toggle="collapse" data-target="#{{ example_id }}" aria-controls="{{ example_id }}"></button>
|
|
{% endif %}
|
|
<div id="{{ example_id }}" class="{% if example_is_long %}collapse {% endif %}jumbotron examples">
|
|
{% if not examples_as_yaml %}
|
|
{{ example | highlight_json_example | safe }}
|
|
{% else %}
|
|
{{ example | highlight_yaml_example | safe }}
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|