diff options
author | David Tolnay <dtolnay@gmail.com> | 2015-08-14 00:04:32 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2015-08-14 00:12:03 -0700 |
commit | 7ebc605f7c7e482bf47e25b8696e834ff693d068 (patch) | |
tree | cfec023d89d9a41d8d6fd31cfc9c9e3cb4521d4b | |
parent | fd6311b23992a4dd0a57bb4e6dfa77b85862cd59 (diff) |
Pick up minor changes
-rw-r--r-- | css/base.css | 2 | ||||
-rw-r--r-- | css/base.scss | 1 | ||||
-rw-r--r-- | download/index.html | 106 | ||||
-rw-r--r-- | index.html | 106 | ||||
-rw-r--r-- | index/index.html | 106 | ||||
-rw-r--r-- | js/manual-search.js | 1 | ||||
-rw-r--r-- | manual/index.html | 8933 | ||||
-rw-r--r-- | manual/v1.3/index.html | 3944 | ||||
-rw-r--r-- | manual/v1.4/index.html | 5684 | ||||
-rw-r--r-- | tutorial/index.html | 106 |
10 files changed, 9184 insertions, 9805 deletions
diff --git a/css/base.css b/css/base.css index 3bcec5c2..a5c05c9c 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{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}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 diff --git a/css/base.scss b/css/base.scss index 68100ced..f42dc8cf 100644 --- a/css/base.scss +++ b/css/base.scss @@ -57,6 +57,7 @@ body { display: block; } .accordion-body pre { + margin: 0 4px; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; diff --git a/download/index.html b/download/index.html index e772e4e8..e18c3e50 100644 --- a/download/index.html +++ b/download/index.html @@ -1,60 +1,56 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="utf-8"> - <title>Download jq</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <link rel="stylesheet" href="/jq/bootstrap/css/bootstrap.css" type="text/css"> - <link rel="stylesheet" href="/jq/css/base.css" type="text/css"> - <!--[if lt IE 9]> - <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> - <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> - <![endif]--> - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> - <script src="/jq/bootstrap/js/bootstrap.js"></script> - <script src="/jq/js/bootstrap3-typeahead.js"></script> -</head> + <meta charset="utf-8"> + <title>Download jq</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <link rel="stylesheet" href="/jq/bootstrap/css/bootstrap.css" type="text/css"> + <link rel="stylesheet" href="/jq/css/base.css" type="text/css"> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> + <![endif]--> + </head> <body id="download"> - -<div class="navbar navbar-default navbar-fixed-top"> - <div class="container"> - <div class="navbar-header"> - <button aria-expanded="false" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse"> - <span class="sr-only">Toggle navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - <a class="navbar-brand" href="/jq/">jq</a> + <div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/jq/">jq</a> + </div> + + <div class="navbar-collapse collapse" id="nav-collapse"> + <ul class="nav navbar-nav"> + + <li > + <a href="/jq/tutorial/">Tutorial</a> + </li> + + <li class="active" > + <a href="/jq/download/">Download</a> + </li> + + <li > + <a href="/jq/manual/">Manual</a> + </li> + + <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li> + <li><a href="https://github.com/stedolan/jq">Source</a></li> + <li><a href="http://jqplay.org">Try online!</a></li> + <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li> + </ul> + </div> + </div> </div> - <div style="height: 1px;" aria-expanded="false" class="navbar-collapse collapse" id="nav-collapse"> - <ul class="nav navbar-nav"> - - <li > - <a href="/jq/tutorial/">Tutorial</a> - </li> - - <li class="active" > - <a href="/jq/download/">Download</a> - </li> - - <li > - <a href="/jq/manual/">Manual</a> - </li> - - <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li> - <li><a href="https://github.com/stedolan/jq">Source</a></li> - <li><a href="http://jqplay.org">Try online!</a></li> - <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li> - </ul> - </div> - </div> -</div> - <div class="container"> <div class="row"> @@ -191,12 +187,16 @@ sudo make install</code></pre> </div> <footer> - <div class="container"> - <p>This website is made with <a href='http://www.tinytree.info'>Bonsai</a> and <a href='http://twitter.github.com/bootstrap/'>Twitter Bootstrap</a>, themed with <a href='http://bootswatch.com'>Bootswatch</a>.</p> + <div class="container"> + <p>This website is made with <a href='http://www.tinytree.info'>Bonsai</a> and <a href='http://twitter.github.com/bootstrap/'>Twitter Bootstrap</a>, themed with <a href='http://bootswatch.com'>Bootswatch</a>.</p> <p>jq is licensed under the MIT license (code) and the <a href='http://creativecommons.org/licenses/by/3.0/'>CC-BY-3.0</a> license (docs).</p> - </div> -</footer> + </div> + </footer> + + <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> + <script src="/jq/bootstrap/js/bootstrap.min.js"></script> + <script src="/jq/js/bootstrap3-typeahead.js"></script> </body> </html> @@ -1,59 +1,55 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="utf-8"> - <title>jq</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <link rel="stylesheet" href="/jq/bootstrap/css/bootstrap.css" type="text/css"> - <link rel="stylesheet" href="/jq/css/base.css" type="text/css"> - <!--[if lt IE 9]> - <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> - <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> - <![endif]--> - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> - <script src="/jq/bootstrap/js/bootstrap.js"></script> - <script src="/jq/js/bootstrap3-typeahead.js"></script> -</head> + <meta charset="utf-8"> + <title>jq</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <link rel="stylesheet" href="/jq/bootstrap/css/bootstrap.css" type="text/css"> + <link rel="stylesheet" href="/jq/css/base.css" type="text/css"> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> + <![endif]--> + </head> <body id="index"> - -<div class="navbar navbar-default navbar-fixed-top"> - <div class="container"> - <div class="navbar-header"> - <button aria-expanded="false" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse"> - <span class="sr-only">Toggle navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - <a class="navbar-brand" href="/jq/">jq</a> - </div> + <div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/jq/">jq</a> + </div> - <div style="height: 1px;" aria-expanded="false" class="navbar-collapse collapse" id="nav-collapse"> - <ul class="nav navbar-nav"> - - <li > - <a href="/jq/tutorial/">Tutorial</a> - </li> - - <li > - <a href="/jq/download/">Download</a> - </li> - - <li > - <a href="/jq/manual/">Manual</a> - </li> - - <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li> - <li><a href="https://github.com/stedolan/jq">Source</a></li> - <li><a href="http://jqplay.org">Try online!</a></li> - <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li> - </ul> + <div class="navbar-collapse collapse" id="nav-collapse"> + <ul class="nav navbar-nav"> + + <li > + <a href="/jq/tutorial/">Tutorial</a> + </li> + + <li > + <a href="/jq/download/">Download</a> + </li> + + <li > + <a href="/jq/manual/">Manual</a> + </li> + + <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li> + <li><a href="https://github.com/stedolan/jq">Source</a></li> + <li><a href="http://jqplay.org">Try online!</a></li> + <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li> + </ul> + </div> + </div> </div> - </div> -</div> <div class="container"> @@ -61,7 +57,7 @@ <div class="jumbotron"> <div class="row"> <div class="col-sm-6"> - <img src="/jq/jq.png" class="img-responsive" + <img src="/jq/jq.png" class="img-responsive" alt="jq logo" width="400" height="220"> </div> <div class="col-sm-6"> @@ -149,12 +145,16 @@ tag</a>, or on the </div> <footer> - <div class="container"> - <p>This website is made with <a href='http://www.tinytree.info'>Bonsai</a> and <a href='http://twitter.github.com/bootstrap/'>Twitter Bootstrap</a>, themed with <a href='http://bootswatch.com'>Bootswatch</a>.</p> + <div class="container"> + <p>This website is made with <a href='http://www.tinytree.info'>Bonsai</a> and <a href='http://twitter.github.com/bootstrap/'>Twitter Bootstrap</a>, themed with <a href='http://bootswatch.com'>Bootswatch</a>.</p> <p>jq is licensed under the MIT license (code) and the <a href='http://creativecommons.org/licenses/by/3.0/'>CC-BY-3.0</a> license (docs).</p> - </div> -</footer> + </div> + </footer> + + <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> + <script src="/jq/bootstrap/js/bootstrap.min.js"></script> + <script src="/jq/js/bootstrap3-typeahead.js"></script> </body> </html> diff --git a/index/index.html b/index/index.html index 4168d71b..29e4d2b8 100644 --- a/index/index.html +++ b/index/index.html @@ -1,59 +1,55 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="utf-8"> - <title>jq</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <link rel="stylesheet" href="/jq/bootstrap/css/bootstrap.css" type="text/css"> - <link rel="stylesheet" href="/jq/css/base.css" type="text/css"> - <!--[if lt IE 9]> - <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> - <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> - <![endif]--> - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> - <script src="/jq/bootstrap/js/bootstrap.js"></script> - <script src="/jq/js/bootstrap3-typeahead.js"></script> -</head> + <meta charset="utf-8"> + <title>jq</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <link rel="stylesheet" href="/jq/bootstrap/css/bootstrap.css" type="text/css"> + <link rel="stylesheet" href="/jq/css/base.css" type="text/css"> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> + <![endif]--> + </head> <body id="index"> - -<div class="navbar navbar-default navbar-fixed-top"> - <div class="container"> - <div class="navbar-header"> - <button aria-expanded="false" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse"> - <span class="sr-only">Toggle navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - <a class="navbar-brand" href="/jq/">jq</a> - </div> + <div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/jq/">jq</a> + </div> - <div style="height: 1px;" aria-expanded="false" class="navbar-collapse collapse" id="nav-collapse"> - <ul class="nav navbar-nav"> - - <li > - <a href="/jq/tutorial/">Tutorial</a> - </li> - - <li > - <a href="/jq/download/">Download</a> - </li> - - <li > - <a href="/jq/manual/">Manual</a> - </li> - - <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li> - <li><a href="https://github.com/stedolan/jq">Source</a></li> - <li><a href="http://jqplay.org">Try online!</a></li> - <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li> - </ul> + <div class="navbar-collapse collapse" id="nav-collapse"> + <ul class="nav navbar-nav"> + + <li > + <a href="/jq/tutorial/">Tutorial</a> + </li> + + <li > + <a href="/jq/download/">Download</a> + </li> + + <li > + <a href="/jq/manual/">Manual</a> + </li> + + <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li> + <li><a href="https://github.com/stedolan/jq">Source</a></li> + <li><a href="http://jqplay.org">Try online!</a></li> + <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li> + </ul> + </div> + </div> </div> - </div> -</div> <div class="container"> @@ -61,7 +57,7 @@ <div class="jumbotron"> <div class="row"> <div class="col-sm-6"> - <img src="/jq/jq.png" class="img-responsive" + <img src="/jq/jq.png" class="img-responsive" alt="jq logo" width="400" height="220"> </div> <div class="col-sm-6"> @@ -149,12 +145,16 @@ tag</a>, or on the </div> <footer> - <div class="container"> - <p>This website is made with <a href='http://www.tinytree.info'>Bonsai</a> and <a href='http://twitter.github.com/bootstrap/'>Twitter Bootstrap</a>, themed with <a href='http://bootswatch.com'>Bootswatch</a>.</p> + <div class="container"> + <p>This website is made with <a href='http://www.tinytree.info'>Bonsai</a> and <a href='http://twitter.github.com/bootstrap/'>Twitter Bootstrap</a>, themed with <a href='http://bootswatch.com'>Bootswatch</a>.</p> <p>jq is licensed under the MIT license (code) and the <a href='http://creativecommons.org/licenses/by/3.0/'>CC-BY-3.0</a> license (docs).</p> - </div> -</footer> + </div> + </footer> + + <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> + <script src="/jq/bootstrap/js/bootstrap.min.js"></script> + <script src="/jq/js/bootstrap3-typeahead.js"></script> </body> </html> diff --git a/js/manual-search.js b/js/manual-search.js new file mode 100644 index 00000000..5956d829 --- /dev/null +++ b/js/manual-search.js @@ -0,0 +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 diff --git a/manual/index.html b/manual/index.html index 0128892e..6e18381c 100644 --- a/manual/index.html +++ b/manual/index.html @@ -1,59 +1,55 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="utf-8"> - <title>jq Manual (development version)</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <link rel="stylesheet" href="/jq/bootstrap/css/bootstrap.css" type="text/css"> - <link rel="stylesheet" href="/jq/css/base.css" type="text/css"> - <!--[if lt IE 9]> - <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> - <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> - <![endif]--> - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> - <script src="/jq/bootstrap/js/bootstrap.js"></script> - <script src="/jq/js/bootstrap3-typeahead.js"></script> -</head> + <meta charset="utf-8"> + <title>jq Manual (development version)</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <link rel="stylesheet" href="/jq/bootstrap/css/bootstrap.css" type="text/css"> + <link rel="stylesheet" href="/jq/css/base.css" type="text/css"> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> + <![endif]--> + </head> <body id="manual" data-spy="scroll" data-target="#navcolumn" data-offset="100"> - -<div class="navbar navbar-default navbar-fixed-top"> - <div class="container"> - <div class="navbar-header"> - <button aria-expanded="false" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse"> - <span class="sr-only">Toggle navigation</span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - <a class="navbar-brand" href="/jq/">jq</a> - </div> + <div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/jq/">jq</a> + </div> - <div style="height: 1px;" aria-expanded="false" class="navbar-collapse collapse" id="nav-collapse"> - <ul class="nav navbar-nav"> - - <li > - <a href="/jq/tutorial/">Tutorial</a> - </li> - - <li > - <a href="/jq/download/">Download</a> - </li> - - <li class="active" > - <a href="/jq/manual/">Manual</a> - </li> - - <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li> - <li><a href="https://github.com/stedolan/jq">Source</a></li> - <li><a href="http://jqplay.org">Try online!</a></li> - <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li> - </ul> + <div class="navbar-collapse collapse" id="nav-collapse"> + <ul class="nav navbar-nav"> + + <li > + <a href="/jq/tutorial/">Tutorial</a> + </li> + + <li > + <a href="/jq/download/">Download</a> + </li> + + <li class="active" > + <a href="/jq/manual/">Manual</a> + </li> + + <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li> + <li><a href="https://github.com/stedolan/jq">Source</a></li> + <li><a href="http://jqplay.org">Try online!</a></li> + <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li> + </ul> + </div> + </div> </div> - </div> -</div> <div class="container"> @@ -112,301 +108,6 @@ </ul> <form class="form-group"> - <script type="text/javascript"> - var section_map = { - - - "Invoking jq" : "Invokingjq" - , - - - "`.`" : "", - - "`.foo`, `.foo.bar`" : "foofoobar", - - "`.foo?`" : "foo", - - "`.[<string>]`, `.[2]`, `.[10:15]`" : "string21015", - - "`.[]`" : "", - - "`.[]?`" : "", - - "`,`" : "", - - "`|`" : "", - - "Basic filters" : "Basicfilters" - , - - - "Array construction - `[]`" : "Arrayconstruction", - - "Objects - `{}`" : "Objects", - - "Types and Values" : "TypesandValues" - , - - - "Addition - `+`" : "Addition", - - "Subtraction - `-`" : "Subtraction", - - "Multiplication, division, modulo - `*`, `/`, and `%`" : "Multiplicationdivisionmoduloand", - - "`length`" : "length", - - "`keys`, `keys_unsorted`" : "keyskeys_unsorted", - - "`has(key)`" : "haskey", - - "`in`" : "in", - - "`path(path_expression)`" : "pathpath_expression", - - "`del(path_expression)`" : "delpath_expression", - - "`to_entries`, `from_entries`, `with_entries`" : "to_entriesfrom_entrieswith_entries", - - "`select(boolean_expression)`" : "selectboolean_expression", - - "`arrays`, `objects`, `iterables`, `booleans`, `numbers`, `normals`, `finites`, `strings`, `nulls`, `values`, `scalars`" : "arraysobjectsiterablesbooleansnumbersnormalsfinitesstringsnullsvaluesscalars", - - "`empty`" : "empty", - - "`error(message)`" : "errormessage", - - "`$__loc__`" : "__loc__", - - "`map(x)`, `map_values(x)`" : "mapxmap_valuesx", - - "`paths`, `paths(node_filter)`, `leaf_paths`" : "pathspathsnode_filterleaf_paths", - - "`add`" : "add", - - "`any`, `any(condition)`, `any(generator; condition)`" : "anyanyconditionanygeneratorcondition", - - "`all`, `all(condition)`, `all(generator; condition)`" : "allallconditionallgeneratorcondition", - - "\\[Requires 1.5\\] `flatten`, `flatten(depth)`" : "Requires15flattenflattendepth", - - "`range(upto)`, `range(from;upto)` `range(from;upto;by)`" : "rangeuptorangefromuptorangefromuptoby", - - "`floor`" : "floor", - - "`sqrt`" : "sqrt", - - "`tonumber`" : "tonumber", - - "`tostring`" : "tostring", - - "`type`" : "type", - - "`infinite`, `nan`, `isinfinite`, `isnan`, `isfinite`, `isnormal`" : "infinitenanisinfiniteisnanisfiniteisnormal", - - "`sort, sort_by(path_expression)`" : "sortsort_bypath_expression", - - "`group_by(path_expression)`" : "group_bypath_expression", - - "`min`, `max`, `min_by(path_exp)`, `max_by(path_exp)`" : "minmaxmin_bypath_expmax_bypath_exp", - - "`unique`, `unique_by(path_exp)`" : "uniqueunique_bypath_exp", - - "`reverse`" : "reverse", - - "`contains(element)`" : "containselement", - - "`indices(s)`" : "indicess", - - "`index(s)`, `rindex(s)`" : "indexsrindexs", - - "`inside`" : "inside", - - "`startswith(str)`" : "startswithstr", - - "`endswith(str)`" : "endswithstr", - - "`combinations`, `combinations(n)`" : "combinationscombinationsn", - - "`ltrimstr(str)`" : "ltrimstrstr", - - "`rtrimstr(str)`" : "rtrimstrstr", - - "`explode`" : "explode", - - "`implode`" : "implode", - - "`split`" : "split", - - "`join(str)`" : "joinstr", - - "`ascii_downcase`, `ascii_upcase`" : "ascii_downcaseascii_upcase", - - "`while(cond; update)`" : "whilecondupdate", - - "`until(cond; next)`" : "untilcondnext", - - "`recurse(f)`, `recurse`, `recurse(f; condition)`, `recurse_down`" : "recursefrecurserecursefconditionrecurse_down", - - "`walk(f)`" : "walkf", - - "`..`" : "", - - "`env`" : "env", - - "`transpose`" : "transpose", - - "`bsearch(x)`" : "bsearchx", - - "String interpolation - `\\(foo)`" : "Stringinterpolationfoo", - - "Convert to/from JSON" : "ConverttofromJSON", - - "Format strings and escaping" : "Formatstringsandescaping", - - "Dates" : "Dates", - - "Builtin operators and functions" : "Builtinoperatorsandfunctions" - , - - - "`==`, `!=`" : "", - - "if-then-else" : "ifthenelse", - - "`>, >=, <=, <`" : "", - - "and/or/not" : "andornot", - - "Alternative operator - `//`" : "Alternativeoperator", - - "try-catch" : "trycatch", - - "Breaking out of control structures" : "Breakingoutofcontrolstructures", - - "`?` operator" : "operator", - - "Conditionals and Comparisons" : "ConditionalsandComparisons" - , - - - "\\[Requires 1.5\\] `test(val)`, `test(regex; flags)`" : "Requires15testvaltestregexflags", - - "\\[Requires 1.5\\] `match(val)`, `match(regex; flags)`" : "Requires15matchvalmatchregexflags", - - "\\[Requires 1.5\\] `capture(val)`, `capture(regex; flags)`" : "Requires15capturevalcaptureregexflags", - - "\\[Requires 1.5\\] `scan(regex)`, `scan(regex; flags)`" : "Requires15scanregexscanregexflags", - - "`split(regex; flags)`" : "splitregexflags", - - "\\[Requires 1.5\\] `splits(regex)`, `splits(regex; flags)`" : "Requires15splitsregexsplitsregexflags", - - "\\[Requires 1.5\\] `sub(regex; tostring)` `sub(regex; string; flags)`" : "Requires15subregextostringsubregexstringflags", - - "\\[Requires 1.5\\] `gsub(regex; string)`, `gsub(regex; string; flags)`" : "Requires15gsubregexstringgsubregexstringflags", - - "Regular expressions (PCRE)" : "RegularexpressionsPCRE" - , - - - "Variables" : "Variables", - - "Defi |