Skip to content

Commit 29a387b

Browse files
author
Addisu Z. Taddese
committed
Using html in relativize broke some styling. Use html5 and fix script tag instead
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
1 parent f45d963 commit 29a387b

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

Rules

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
compile '/**/*.html' do
66
layout '/default.*'
77

8-
filter :relativize_paths, type: :html
8+
filter :relativize_paths, type: :html5
99

1010
if item.identifier =~ '**/index.*'
1111
write item.identifier.to_s
@@ -18,7 +18,7 @@ passthrough '/tutorials/**/*.png'
1818

1919
compile '/tutorials/**/*.md' do
2020
layout '/default.html.erb'
21-
filter :relativize_paths, type: :html
21+
filter :relativize_paths, type: :html5
2222

2323
if item.identifier.to_s.end_with?('/index.md')
2424
write '/tutorials/index.html'
@@ -35,7 +35,7 @@ end
3535
compile '/**/*.erb' do
3636
filter :erb
3737
layout '/default.*'
38-
filter :relativize_paths, type: :html
38+
filter :relativize_paths, type: :html5
3939

4040
if item.identifier =~ '**/index.*'
4141
write item.identifier.without_ext + '.html'
@@ -46,7 +46,7 @@ end
4646

4747
compile '/spec/**/*.spec' do
4848
layout '/spec.*'
49-
filter :relativize_paths, type: :html
49+
filter :relativize_paths, type: :html5
5050
if item.identifier =~ '**/index.*'
5151
write item.identifier.without_ext + '.html'
5252
else

layouts/_head.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<link rel="stylesheet" href="/vendor/assets/stylesheets/prettify.css" />
2121

2222

23-
<script src="/assets/javascripts/redirect_old_links.js" />
24-
<script src="/assets/javascripts/google_analytics.js" />
23+
<script src="/assets/javascripts/redirect_old_links.js"></script>
24+
<script src="/assets/javascripts/google_analytics.js"></script>
2525
<script src="/vendor/assets/javascripts/bootstrap-tree.js"></script>
2626
<script src="/vendor/assets/javascripts/jquery.tocify.js"></script>
2727

layouts/spec.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
<div class="col-md-7 col-md-offset-1 well">
4141
<h5>Tree Key</h5>
4242
<p>
43-
<span class='tree-collapse glyphicon glyphicon-stop' style="color: #90c2e8"></span> : An SDFormat element. Click the box to get a link.</br>
44-
<span class='tree-collapse glyphicon glyphicon-stop' style="color: #96e890"></span> : An SDFormat attribute. Click on the box to get a link.</br>
43+
<span class='tree-collapse glyphicon glyphicon-stop' style="color: #90c2e8"></span> : An SDFormat element. Click the box to get a link.<br>
44+
<span class='tree-collapse glyphicon glyphicon-stop' style="color: #96e890"></span> : An SDFormat attribute. Click on the box to get a link.<br>
4545

46-
<span class='tree-collapse glyphicon glyphicon-plus'></span> : An element with children. Click the icon to toggle the children.<br/>
47-
<span class='tree-collapse glyphicon glyphicon-minus'></span> : The element has no children.<br/>
46+
<span class='tree-collapse glyphicon glyphicon-plus'></span> : An element with children. Click the icon to toggle the children.<br>
47+
<span class='tree-collapse glyphicon glyphicon-minus'></span> : The element has no children.<br>
4848
<span class='tree-collapse glyphicon glyphicon-chevron-right'></span> : An element defined in another tab. Click icon to open the tab.
4949
</p>
5050
</div>

0 commit comments

Comments
 (0)