Skip to content
Myr

Expand all manual examples in print mode

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 2c6c521 · Browse files · 3 files+11 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+11 added−4 removed

  • other:+11 added−4 removed

3 files+11 added−4 removed

modified:docs/public/css/base.scss+8 added-1 removed
95 unmodified lines
96 }97 margin-bottom: 20px;98}99100@media print {100.manual-example {101 .manual-example {102 display: block !important;103 height: auto !important;104 }105}106107.manual-example table {108 border-top: 1px solid #E5E5E5;109 td {110 white-space: pre-wrap;111 font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
22 unmodified lines
modified:docs/public/js/manual-search.js+1 added-1 removed
modified:docs/templates/manual.liquid+2 added-2 removed
46 unmodified lines
47 <a data-toggle="collapse" href="#example{{exampleID}}">48 <i class="glyphicon glyphicon-chevron-right"></i>49 {% if entry.examples[1] %}Examples{%else%}Example{%endif%}50 </a>51 <div id="example{{exampleID}}" class="collapse">51 <div id="example{{exampleID}}" class="manual-example collapse">52 {% for example in entry.examples %}53 <table class="manual-example">53 <table>54 <tr><th></th><td class="jqprogram">jq '{{example.program | escape}}'</td></tr>55 <tr><th>Input</th><td>{{example.input | escape}}</td></tr>56 {% unless example.output[0] %}57 <tr>
42 unmodified lines