{% if page.name == conf.name %} {% assign ispage = true %} {% if page.category contains 'in-review' %} {% alert info %}This page is marked for review. The following information may be outdated or may no longer apply to the latest Marlin.{% endalert %} {% elsif page.category contains 'wip' %} {% alert info %}This page is under construction and may not have complete or up-to-date information.{% endalert %} {% endif %} {% assign h1 = "h1" %}{% assign h3 = "h3" %} {% if page.label %}{% assign title = page.label %}{% else %}{% assign title = false %}{% endif %} {% if page.since %}{% assign since = page.since %}{% else %}{% assign since = false %}{% endif %} {% if page.tags %}{% assign tags = page.tags | join: ", " %}{% else %}{% assign tags = false %}{% endif %} {% if page.label == "LCD" %}{% assign islcd = 1 %}{% endif %} {% else %} {% assign ispage = false %} {% assign h1 = "h4" %}{% assign h3 = "h5" %} {% assign title = "#define " | append: conf.name | append: "" %} {% if conf.type %}{% assign title = title | append: " " | append: conf.type | append: "" %}{% endif %} {% if conf.disabled %}{% assign title = "//" | append: title %}{% endif %} {% if conf.since %}{% assign since = conf.since %} {% elsif parsince %}{% assign since = parsince %} {% else %}{% assign since = false %}{% endif %} {% if conf.tags %}{% assign tags = conf.tags | join: ", " %} {% elsif partags %}{% assign tags = partags | join: ", " %} {% else %}{% assign tags = false %}{% endif %} {%- endif -%}
{% if ispage %}{% assign matter = conf %}{% include authors.html %}{% endif %} {%- if since -%}
{{- since }}{% if conf.until %} - {{ conf.until }}{% endif %}
{%- endif -%} {% if islcd == 1 and conf.name %}
[More Info]
{% endif %} <{{ h1 }}{% if conf.disabled %} class="dis"{% endif %}>{{ title }} {% if conf.experimental %} {% endif %}
{% if conf.gcodes %}
See G-codes: {% for item in conf.gcodes %}{{item}} {% endfor %}
{% endif %} {% if conf.brief %}
{{conf.brief | markdownify }}
{% endif %} {% if conf.description %}
{{conf.description | markdownify }}
{% endif %} {% if conf.requires %}
⚠️ Requires: {{ conf.requires | join: ", " }}
{% endif %} {% if tags %}
{{ tags }}
{% endif %}
{% if ispage %} {% if page.content %}{{ page.content | markdownify }}{% endif %} {% else %} {% if conf.long %}{{ conf.long | markdownify }}{% endif %} {% endif %}
{% if conf.options %} {% if conf.options >= 0 and page.shared[conf.options] %} {% assign options = page.shared[conf.options].options %} {% else %} {% assign options = conf.options %} {% endif %} {% else %} {% assign options = false %} {% endif %} {%- if options %}
{% if options[0].value %} <{{ h3 }}>🗳️ Options 4 or options[0].brief %} class="table-striped"{% endif %}> {%- for op in options -%} {{ op.value }}{% if op.brief %}{{ op.brief }}{% endif %} {%- endfor -%} {% else %} 🗳️ Options: {{ options | join: ", " }} {% endif %}
{% endif %} {% if conf.example %}{% assign example = conf.example %} {% elsif conf.examples %}{% assign example = conf.examples %} {% else %}{% assign example = false %}{% endif %} {%- if example %}
<{{ h3 }}>👁️ Example{% if example.size > 1 %}s{% endif %} {% for ex in example %} {% if ex.pre %} {% for line in ex.pre %} {{ line | markdownify }} {% endfor %} {% endif %} {% if ex.value or ex.code %} {% highlight cpp %}{% if ex.value %}#define {{ conf.name }} {{ ex.value }}{% if ex.comment %} // {{ ex.comment }}{% endif %}{% endif %} {%- for line in ex.code %}{{ line }}{% endfor %}{% endhighlight %} {% endif %} {% if ex.post %}
{% for line in ex.post %} {{ line | markdownify }} {% endfor %}
{% endif %} {% endfor %}
{% endif %} {% if conf.override %}
{{ "📝 This option can be overridden with " | append: conf.override | append: "." | markdownify }}
{% endif %} {% if conf.links %} {% endif %} {% if conf.images %} {% endif %} {% if conf.videos %}
<{{ h3 }}>📺 Related Media {% for videoid in conf.videos %} {% endfor %}
{% endif %} {% assign islcdbak = islcd %} {% if conf.subopts %}{% assign sub = conf.subopts %}{% assign label = "Sub-Options" %}{% assign islcd = 0 %} {% elsif conf.settings %}{% assign sub = conf.settings %}{% assign label = "Settings" %} {% else %}{% assign sub = false %}{% endif %} {% if sub %} {% assign confbak = conf %} {% assign aprefixbak = aprefix %} {% if conf.name %}{% assign aprefix = aprefix | append: conf.name | append: '-' %}{% endif %} {% for conf in sub %} {% if conf contains 'since' %}{% else %}{% assign parsince = conf.since %}{% endif %} {% if conf contains 'tags' %}{% else %}{% assign partags = conf.tags %}{% endif %}
{% include setting-info.html %}
{% endfor %} {% assign aprefix = aprefixbak %} {% assign conf = confbak %} {% endif %} {% assign islcd = islcdbak %}