diff options
author | David Tolnay <dtolnay@gmail.com> | 2015-08-20 00:05:03 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2015-08-20 00:08:25 -0700 |
commit | 2f43eb1c2077a7cd3cd4584462645c1ecf1d6fb2 (patch) | |
tree | 58deb781e5282f5a8f85f93da58da1386498cbbd | |
parent | dfa48d5c44d684f0dd5d496fc102516048a70dd8 (diff) |
Pick up print mode changes
-rw-r--r-- | css/base.css | 2 | ||||
-rw-r--r-- | css/base.scss | 15 | ||||
-rw-r--r-- | js/manual-search.js | 2 | ||||
-rw-r--r-- | manual/index.html | 554 | ||||
-rw-r--r-- | manual/v1.3/index.html | 234 | ||||
-rw-r--r-- | manual/v1.4/index.html | 358 | ||||
-rw-r--r-- | manual/v1.5/index.html | 534 | ||||
-rw-r--r-- | sitemap.xml | 14 |
8 files changed, 863 insertions, 850 deletions
diff --git a/css/base.css b/css/base.css index 1a176994..ea6db88d 100644 --- a/css/base.css +++ b/css/base.css @@ -1 +1 @@ -body{padding-top:80px}.container{max-width:970px}#blurb{padding-top:40px}#blurb p{font-size:1.9em}#blurb .btn-group{margin:4px}#multiblurb{line-height:1.7;text-align:center;font-size:12pt}#multiblurb code{border:0;font-size:12pt}#news{font-size:12pt}#news .date{font-style:italic}.tutorial-example{position:relative;margin-bottom:10px}.tutorial-example pre{margin-bottom:0}.tutorial-example a{position:absolute;top:0;right:0;padding:15px 8px;color:#777;font-weight:bold;line-height:10px;font-size:12px;border-left:1px solid #ddd;display:block}.tutorial-example .accordion-body pre{margin:0 4px;border-top:0;border-top-left-radius:0;border-top-right-radius:0}section{padding-top:24px}h3 code{border:0;font-size:20px}@media(max-width:991px){#navcolumn{position:relative !important;margin-bottom:60px}}@media(min-width:992px){#manualcontent{padding-left:280px}}.nav-pills{margin-bottom:20px}.nav-pills li a{padding:8px 12px}.manual-example{border-top:1px solid #e5e5e5}.manual-example td{white-space:pre-wrap;font-family:Monaco,Menlo,Consolas,"Courier New",monospace}.manual-example td.jqprogram{font-weight:bold}.manual-example th{text-align:right;padding-right:10px}footer{background-color:#f5f5f5;padding:20px 0;margin-top:40px;color:#999;text-align:center}footer p{margin:8px 0}
\ No newline at end of file +body{padding-top:80px}.container{max-width:970px}#blurb{padding-top:40px}#blurb p{font-size:1.9em}#blurb .btn-group{margin:4px}#multiblurb{line-height:1.7;text-align:center;font-size:12pt}#multiblurb code{border:0;font-size:12pt}#news{font-size:12pt}#news .date{font-style:italic}.tutorial-example{position:relative;margin-bottom:10px}.tutorial-example pre{margin-bottom:0}.tutorial-example a{position:absolute;top:0;right:0;padding:15px 8px;color:#777;font-weight:bold;line-height:10px;font-size:12px;border-left:1px solid #ddd;display:block}.tutorial-example .accordion-body pre{margin:0 4px;border-top:0;border-top-left-radius:0;border-top-right-radius:0}@media print{.tutorial-example a{display:none}}section{padding-top:24px}h3 code{border:0;font-size:20px}@media(max-width:991px){#navcolumn{position:relative !important;margin-bottom:60px}}@media(min-width:992px){#manualcontent{padding-left:280px}}.nav-pills{margin-bottom:20px}.nav-pills li a{padding:8px 12px}@media print{.manual-example{display:block !important;height:auto !important}}.manual-example table{border-top:1px solid #e5e5e5}.manual-example table td{white-space:pre-wrap;font-family:Monaco,Menlo,Consolas,"Courier New",monospace}.manual-example table td.jqprogram{font-weight:bold}.manual-example table th{text-align:right;padding-right:10px}footer{background-color:#f5f5f5;padding:20px 0;margin-top:40px;color:#999;text-align:center}footer p{margin:8px 0}
\ No newline at end of file diff --git a/css/base.scss b/css/base.scss index f42dc8cf..f7f14722 100644 --- a/css/base.scss +++ b/css/base.scss @@ -64,6 +64,12 @@ body { } } +@media print { + .tutorial-example a { + display: none; + } +} + /* manual.liquid ******************************************/ section { @@ -97,7 +103,14 @@ h3 code { margin-bottom: 20px; } -.manual-example { +@media print { + .manual-example { + display: block !important; + height: auto !important; + } +} + +.manual-example table { border-top: 1px solid #E5E5E5; td { white-space: pre-wrap; diff --git a/js/manual-search.js b/js/manual-search.js index 5956d829..5b49ce7b 100644 --- a/js/manual-search.js +++ b/js/manual-search.js @@ -1 +1 @@ -var section_names=$.map(section_map,function(v,k){return k});$(function(){$("#searchbox").typeahead({source:section_names});$("#searchbox").change(function(){if($(this).val() in section_map){location.hash="#"+section_map[$(this).val()]}})});$(function(){$.each($("table.manual-example"),function(index,value){$value=$(value);var j=$value.find("tr:nth-child(2) td:first").text();var q=$value.find(".jqprogram").text().replace(/^jq /,"").replace(/^'(.+)'$/,"$1");var url="https://jqplay.org/jq?q="+encodeURIComponent(q)+"&j="+encodeURIComponent(j);var $last_tr=$value.find("tr:last");$last_tr.after('<tr><th><a href="'+url+'" class="btn btn-primary btn-sm">Run</a></th><th></th></tr><tr><th></th><th></th></tr>')})});
\ No newline at end of file +var section_names=$.map(section_map,function(v,k){return k});$(function(){$("#searchbox").typeahead({source:section_names});$("#searchbox").change(function(){if($(this).val() in section_map){location.hash="#"+section_map[$(this).val()]}})});$(function(){$.each($(".manual-example table"),function(index,value){$value=$(value);var j=$value.find("tr:nth-child(2) td:first").text();var q=$value.find(".jqprogram").text().replace(/^jq /,"").replace(/^'(.+)'$/,"$1");var url="https://jqplay.org/jq?q="+encodeURIComponent(q)+"&j="+encodeURIComponent(j);var $last_tr=$value.find("tr:last");$last_tr.after('<tr><th><a href="'+url+'" class="btn btn-primary btn-sm">Run</a></th><th></th></tr><tr><th></th><th></th></tr>')})});
\ No newline at end of file diff --git a/manual/index.html b/manual/index.html index 32877724..d90b1255 100644 --- a/manual/index.html +++ b/manual/index.html @@ -327,9 +327,9 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us <i class="glyphicon glyphicon-chevron-right"></i> Example </a> - <div id="example1" class="collapse"> + <div id="example1" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.'</td></tr> <tr><th>Input</th><td>"Hello, world!"</td></tr> @@ -370,9 +370,9 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example2" class="collapse"> + <div id="example2" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.foo'</td></tr> <tr><th>Input</th><td>{"foo": 42, "bar": "less interesting data"}</td></tr> @@ -386,7 +386,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.foo'</td></tr> <tr><th>Input</th><td>{"notfoo": true, "alsonotfoo": false}</td></tr> @@ -400,7 +400,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.["foo"]'</td></tr> <tr><th>Input</th><td>{"foo": 42}</td></tr> @@ -437,9 +437,9 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example3" class="collapse"> + <div id="example3" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.foo?'</td></tr> <tr><th>Input</th><td>{"foo": 42, "bar": "less interesting data"}</td></tr> @@ -453,7 +453,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.foo?'</td></tr> <tr><th>Input</th><td>{"notfoo": true, "alsonotfoo": false}</td></tr> @@ -467,7 +467,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.["foo"]?'</td></tr> <tr><th>Input</th><td>{"foo": 42}</td></tr> @@ -481,7 +481,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '[.foo?]'</td></tr> <tr><th>Input</th><td>[1,2]</td></tr> @@ -526,9 +526,9 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example4" class="collapse"> + <div id="example4" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[0]'</td></tr> <tr><th>Input</th><td>[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]</td></tr> @@ -542,7 +542,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[2]'</td></tr> <tr><th>Input</th><td>[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]</td></tr> @@ -556,7 +556,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[2:4]'</td></tr> <tr><th>Input</th><td>["a","b","c","d","e"]</td></tr> @@ -570,7 +570,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[2:4]'</td></tr> <tr><th>Input</th><td>"abcdefghi"</td></tr> @@ -584,7 +584,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[:3]'</td></tr> <tr><th>Input</th><td>["a","b","c","d","e"]</td></tr> @@ -598,7 +598,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[-2:]'</td></tr> <tr><th>Input</th><td>["a","b","c","d","e"]</td></tr> @@ -612,7 +612,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[-2]'</td></tr> <tr><th>Input</th><td>[1,2,3]</td></tr> @@ -651,9 +651,9 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example5" class="collapse"> + <div id="example5" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[]'</td></tr> <tr><th>Input</th><td>[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]</td></tr> @@ -674,7 +674,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[]'</td></tr> <tr><th>Input</th><td>[]</td></tr> @@ -686,7 +686,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[]'</td></tr> <tr><th>Input</th><td>{"a": 1, "b": 1}</td></tr> @@ -744,9 +744,9 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example6" class="collapse"> + <div id="example6" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.foo, .bar'</td></tr> <tr><th>Input</th><td>{"foo": 42, "bar": "something else", "baz": true}</td></tr> @@ -767,7 +767,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.user, .projects[]'</td></tr> <tr><th>Input</th><td>{"user":"stedolan", "projects": ["jq", "wikiflow"]}</td></tr> @@ -795,7 +795,7 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[4,2]'</td></tr> <tr><th>Input</th><td>["a","b","c","d","e"]</td></tr> @@ -841,9 +841,9 @@ defined</code>. When using the Windows command shell (cmd.exe) it’s best to us <i class="glyphicon glyphicon-chevron-right"></i> Example </a> - <div id="example7" class="collapse"> + <div id="example7" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[] | .name'</td></tr> <tr><th>Input</th><td>[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]</td></tr> @@ -901,9 +901,9 @@ Array construction - <code>[]</code> <i class="glyphicon glyphicon-chevron-right"></i> Example </a> - <div id="example8" class="collapse"> + <div id="example8" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '[.user, .projects[]]'</td></tr> <tr><th>Input</th><td>{"user":"stedolan", "projects": ["jq", "wikiflow"]}</td></tr> @@ -971,9 +971,9 @@ Objects - <code>{}</code> <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example9" class="collapse"> + <div id="example9" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '{user, title: .titles[]}'</td></tr> <tr><th>Input</th><td>{"user":"stedolan","titles":["JQ Primer", "More JQ"]}</td></tr> @@ -994,7 +994,7 @@ Objects - <code>{}</code> </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '{(.user): .titles}'</td></tr> <tr><th>Input</th><td>{"user":"stedolan","titles":["JQ Primer", "More JQ"]}</td></tr> @@ -1059,9 +1059,9 @@ Addition - <code>+</code> <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example10" class="collapse"> + <div id="example10" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.a + 1'</td></tr> <tr><th>Input</th><td>{"a": 7}</td></tr> @@ -1075,7 +1075,7 @@ Addition - <code>+</code> </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.a + .b'</td></tr> <tr><th>Input</th><td>{"a": [1,2], "b": [3,4]}</td></tr> @@ -1089,7 +1089,7 @@ Addition - <code>+</code> </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.a + null'</td></tr> <tr><th>Input</th><td>{"a": 1}</td></tr> @@ -1103,7 +1103,7 @@ Addition - <code>+</code> </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.a + 1'</td></tr> <tr><th>Input</th><td>{}</td></tr> @@ -1117,7 +1117,7 @@ Addition - <code>+</code> </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '{a: 1} + {b: 2} + {c: 3} + {a: 42}'</td></tr> <tr><th>Input</th><td>null</td></tr> @@ -1154,9 +1154,9 @@ Subtraction - <code>-</code> <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example11" class="collapse"> + <div id="example11" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '4 - .a'</td></tr> <tr><th>Input</th><td>{"a":3}</td></tr> @@ -1170,7 +1170,7 @@ Subtraction - <code>-</code> </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '. - ["xml", "yaml"]'</td></tr> <tr><th>Input</th><td>["xml", "yaml", "json"]</td></tr> @@ -1213,9 +1213,9 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example12" class="collapse"> + <div id="example12" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '10 / . * 3'</td></tr> <tr><th>Input</th><td>5</td></tr> @@ -1229,7 +1229,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '. / ", "'</td></tr> <tr><th>Input</th><td>"a, b,c,d, e"</td></tr> @@ -1243,7 +1243,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '{"k": {"a": 1, "b": 2}} * {"k": {"a": 0,"c": 3}}'</td></tr> <tr><th>Input</th><td>null</td></tr> @@ -1257,7 +1257,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[] | (1 / .)?'</td></tr> <tr><th>Input</th><td>[1,0,-1]</td></tr> @@ -1319,9 +1319,9 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ <i class="glyphicon glyphicon-chevron-right"></i> Example </a> - <div id="example13" class="collapse"> + <div id="example13" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[] | length'</td></tr> <tr><th>Input</th><td>[[1,2], "string", {"a":2}, null]</td></tr> @@ -1385,9 +1385,9 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example14" class="collapse"> + <div id="example14" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'keys'</td></tr> <tr><th>Input</th><td>{"abc": 1, "abcd": 2, "Foo": 3}</td></tr> @@ -1401,7 +1401,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'keys'</td></tr> <tr><th>Input</th><td>[42,3,35]</td></tr> @@ -1440,9 +1440,9 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example15" class="collapse"> + <div id="example15" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'map(has("foo"))'</td></tr> <tr><th>Input</th><td>[{"foo": 42}, {}]</td></tr> @@ -1456,7 +1456,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'map(has(2))'</td></tr> <tr><th>Input</th><td>[[0,1], ["a","b","c"]]</td></tr> @@ -1493,9 +1493,9 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example16" class="collapse"> + <div id="example16" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '.[] | in({"foo": 42})'</td></tr> <tr><th>Input</th><td>["foo", "bar"]</td></tr> @@ -1516,7 +1516,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'map(in([0,1]))'</td></tr> <tr><th>Input</th><td>[2, 0]</td></tr> @@ -1561,9 +1561,9 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example17" class="collapse"> + <div id="example17" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'path(.a[0].b)'</td></tr> <tr><th>Input</th><td>null</td></tr> @@ -1577,7 +1577,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '[path(..)]'</td></tr> <tr><th>Input</th><td>{"a":[{"b":1}]}</td></tr> @@ -1614,9 +1614,9 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example18" class="collapse"> + <div id="example18" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'del(.foo)'</td></tr> <tr><th>Input</th><td>{"foo": 42, "bar": 9001, "baz": 42}</td></tr> @@ -1630,7 +1630,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'del(.[1, 2])'</td></tr> <tr><th>Input</th><td>["foo", "bar", "baz"]</td></tr> @@ -1667,9 +1667,9 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example19" class="collapse"> + <div id="example19" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'getpath(["a","b"])'</td></tr> <tr><th>Input</th><td>null</td></tr> @@ -1683,7 +1683,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq '[getpath(["a","b"], ["a","c"])]'</td></tr> <tr><th>Input</th><td>{"a":{"b":0, "c":1}}</td></tr> @@ -1720,9 +1720,9 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ <i class="glyphicon glyphicon-chevron-right"></i> Examples </a> - <div id="example20" class="collapse"> + <div id="example20" class="manual-example collapse"> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'setpath(["a","b"]; 1)'</td></tr> <tr><th>Input</th><td>null</td></tr> @@ -1736,7 +1736,7 @@ Multiplication, division, modulo - <code>*</code>, <code>/</code>, and <code>%</ </table> - <table class="manual-example"> + <table> <tr><th></th><td class="jqprogram">jq 'setpath(["a","b"]; 1)'</td></tr> <tr><th>Input</th><td>{&a |