Fix some w3c validator complaints
This commit is contained in:
1 parent
d36a85a369
commit
e3e7cea177
4 files changed
+46
-44
No files matched your search
@@ -16,6 +16,10 @@ module ExtraFilters
|
|||||||
input.gsub(/[^a-zA-Z0-9_]/,"")
|
input.gsub(/[^a-zA-Z0-9_]/,"")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def no_paragraph(input)
|
||||||
|
input.gsub('<p>', '').gsub('</p>', '')
|
||||||
|
end
|
||||||
|
|
||||||
def json(input)
|
def json(input)
|
||||||
input.to_json
|
input.to_json
|
||||||
end
|
end
|
||||||
|
|||||||
Vendored
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<img src="{{root}}/jq.png" class="img-responsive"
|
<img src="{{root}}/jq.png" class="img-responsive" alt="jq logo"
|
||||||
width="400" height="220">
|
width="400" height="220">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
|
|||||||
Vendored
+38
-40
@@ -34,49 +34,47 @@
|
|||||||
<h2>{{section.title}}</h2>
|
<h2>{{section.title}}</h2>
|
||||||
{{section.body | markdownify}}
|
{{section.body | markdownify}}
|
||||||
{% for entry in section.entries %}
|
{% for entry in section.entries %}
|
||||||
<section id="{{entry.title | sanitize}}">
|
<section>
|
||||||
<h3>
|
<h3>
|
||||||
{{entry.title | markdownify}}
|
{{entry.title | markdownify | no_paragraph}}
|
||||||
{% if entry.subtitle %}<small>{{entry.subtitle}}</small>{% endif %}
|
{% if entry.subtitle %}<small>{{entry.subtitle}}</small>{% endif %}
|
||||||
</h3>
|
</h3>
|
||||||
{{entry.body | markdownify}}
|
{{entry.body | markdownify}}
|
||||||
|
|
||||||
{% if entry.examples %}
|
{% if entry.examples %}
|
||||||
<div>
|
<div>
|
||||||
{% capture exampleID %}{{ "" | unique }}{% endcapture %}
|
{% capture exampleID %}{{ "" | unique }}{% endcapture %}
|
||||||
<a data-toggle="collapse" href="#example{{exampleID}}">
|
<a data-toggle="collapse" href="#example{{exampleID}}">
|
||||||
<i class="glyphicon glyphicon-chevron-right"></i>
|
<i class="glyphicon glyphicon-chevron-right"></i>
|
||||||
{% if entry.examples[1] %}Examples{%else%}Example{%endif%}
|
{% if entry.examples[1] %}Examples{%else%}Example{%endif%}
|
||||||
</a>
|
</a>
|
||||||
<div id="example{{exampleID}}" class="collapse">
|
<div id="example{{exampleID}}" class="collapse">
|
||||||
|
{% for example in entry.examples %}
|
||||||
{% for example in entry.examples %}
|
<table class="manual-example">
|
||||||
<table class="manual-example">
|
<tr><th></th><td class="jqprogram">jq '{{example.program | escape}}'</td></tr>
|
||||||
<tr><th></th><td class="jqprogram">jq '{{example.program | escape}}'</td></tr>
|
<tr><th>Input</th><td>{{example.input | escape}}</td></tr>
|
||||||
<tr><th>Input</th><td>{{example.input | escape}}</td></tr>
|
{% unless example.output[0] %}
|
||||||
{% unless example.output[0] %}
|
<tr>
|
||||||
<tr>
|
<th>Output</th>
|
||||||
<th>Output</th>
|
<td><i>none</i></td>
|
||||||
<td><i>none</i></td>
|
</tr>
|
||||||
</tr>
|
{% endunless %}
|
||||||
{% endunless %}
|
{% for output in example.output %}
|
||||||
{% for output in example.output %}
|
<tr>
|
||||||
<tr>
|
{% if forloop.index == 1 %}
|
||||||
{% if forloop.index == 1 %}
|
<th>Output</th>
|
||||||
<th>Output</th>
|
{% else %}
|
||||||
{% else %}
|
<th></th>
|
||||||
<th></th>
|
{% endif %}
|
||||||
{% endif %}
|
<td>{{output | escape}}</td>
|
||||||
<td>{{output | escape}}</td>
|
</tr>
|
||||||
</tr>
|
{% endfor %}
|
||||||
|
</table>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
</table>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
</section>
|
||||||
</section>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</section>
|
</section>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Vendored
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
<div class="navbar navbar-default navbar-fixed-top">
|
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button aria-expanded="false" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<a class="navbar-brand" href="{{root}}/">jq</a>
|
<a class="navbar-brand" href="{{root}}/">jq</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="height: 1px;" aria-expanded="false" class="navbar-collapse collapse" id="nav-collapse">
|
<div class="navbar-collapse collapse" id="nav-collapse">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
{% for item in navigation %}
|
{% for item in navigation %}
|
||||||
<li {% if item.permalink == permalink %} class="active" {% endif %}>
|
<li {% if item.permalink == permalink %} class="active" {% endif %}>
|
||||||
|
|||||||
Reference in new issue
Block a user