Skip to content

Commit b64bf0d

Browse files
author
Michaël Perrin
committed
Fix HTML syntax errors in theme
* Add missing `</div>` closing tag. * Add missing quotes for attributes. * Add missing `</body>` closing tag. These syntax errors were causing errors in Apple iBooks when opening generated ePub files.
1 parent 0b409a2 commit b64bf0d

File tree

3 files changed

+45
-43
lines changed

3 files changed

+45
-43
lines changed

_build/_theme/_templates/globaltoc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class=submenu>
1+
<div class="submenu">
22
{% set menu = [
33
('Home', 'index'),
44
('The Components', 'components/index'),

_build/_theme/_templates/layout.html

+43-41
Original file line numberDiff line numberDiff line change
@@ -38,52 +38,54 @@
3838
{% endblock %}
3939

4040
{% block content %}
41-
<div class="container"><div id="page-content">
42-
<div class="row">
43-
{%- if render_sidebar %}
44-
<div id="sidebar" class="col-sm-3">
45-
<div id="sidebar-content">
46-
<div id="demo-warning">
47-
<h4>Pull request build</h4>
48-
<p>Each pull request of the Symfony Documentation is automatically deployed and hosted on <a href="https://platform.sh">Platform.sh</a>.<br>
49-
View this page on <a href="https://symfony.com/doc/current/{{ pagename }}">symfony.com</a>.</p>
50-
</div>
51-
52-
{%- include "globaltoc.html" %}
41+
<div class="container">
42+
<div id="page-content">
43+
<div class="row">
44+
{%- if render_sidebar %}
45+
<div id="sidebar" class="col-sm-3">
46+
<div id="sidebar-content">
47+
<div id="demo-warning">
48+
<h4>Pull request build</h4>
49+
<p>Each pull request of the Symfony Documentation is automatically deployed and hosted on <a href="https://platform.sh">Platform.sh</a>.<br>
50+
View this page on <a href="https://symfony.com/doc/current/{{ pagename }}">symfony.com</a>.</p>
51+
</div>
52+
53+
{%- include "globaltoc.html" %}
5354

54-
{% if not isIndex %}
55-
{%- include "localtoc.html" %}
56-
{% endif %}
55+
{% if not isIndex %}
56+
{%- include "localtoc.html" %}
57+
{% endif %}
58+
</div>
5759
</div>
58-
</div>
59-
{%- endif %}
60+
{%- endif %}
6061

61-
<div id="main" class="col-sm-9">
62-
<ol class=breadcrumb>
63-
<li><a href="#">Home</a></li>
64-
<li><a href="#">Documentation</a></li>
65-
{% for parent in parents %}
66-
<li><a href="{{ parent.link|e }}">{{ parent.title }}</a></li>
67-
{% endfor %}
68-
<li class=active>{{ title }}</li>
69-
</ol>
62+
<div id="main" class="col-sm-9">
63+
<ol class="breadcrumb">
64+
<li><a href="#">Home</a></li>
65+
<li><a href="#">Documentation</a></li>
66+
{% for parent in parents %}
67+
<li><a href="{{ parent.link|e }}">{{ parent.title }}</a></li>
68+
{% endfor %}
69+
<li class="active">{{ title }}</li>
70+
</ol>
7071

71-
<h1 class="content_title">{{ title }}</h1>
72+
<h1 class="content_title">{{ title }}</h1>
7273

73-
<div class=page>
74-
{% block body %}{% endblock %}
75-
</div>
74+
<div class="page">
75+
{% block body %}{% endblock %}
76+
</div>
7677

77-
{% if prev and next %}
78-
<div class=navigation>
79-
<a href="{{ prev.link|e }}">« {{ prev.title|striptags|e }}</a>
80-
<span class=separator>|</span>
81-
<a href="{{ next.link|e }}">{{ next.title|striptags|e }} »</a>
82-
</div>
83-
{% endif %}
84-
85-
<div id="license">
86-
<p>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">License</a>.</p>
78+
{% if prev and next %}
79+
<div class="navigation">
80+
<a href="{{ prev.link|e }}">« {{ prev.title|striptags|e }}</a>
81+
<span class="separator">|</span>
82+
<a href="{{ next.link|e }}">{{ next.title|striptags|e }} »</a>
83+
</div>
84+
{% endif %}
85+
86+
<div id="license">
87+
<p>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">License</a>.</p>
88+
</div>
8789
</div>
8890
</div>
8991
</div>
@@ -95,4 +97,4 @@ <h1 class="content_title">{{ title }}</h1>
9597
{% block relbar2 %}{% endblock %}
9698

9799
{# remove "generated by sphinx" footer #}
98-
{% block footer %}{% endblock %}
100+
{% block footer %}</body>{% endblock %}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="toc">
22
<h4>{{ _('Table Of Contents') }}</h4>
3-
<div class=toc-content>
3+
<div class="toc-content">
44
{{ toc }}
55
</div>
66
</div>

0 commit comments

Comments
 (0)