Skip to content

Commit b5c848b

Browse files
authored
Remove some unneeded bikeshed fixup hacks (WebAssembly#1824)
1 parent c0aeee7 commit b5c848b

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

document/core/util/bikeshed_fixup.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
def Main():
1313
data = open(sys.argv[1]).read()
1414

15-
# Make bikeshed happy
16-
# Apparently it can't handle empty line before DOCTYPE comment
17-
data = data.replace('\n<!DOCTYPE', '<!DOCTYPE')
18-
# Ensure newline before <pre>
19-
data = data.replace('<pre>', '\n<pre>')
15+
# Clean up the input for Bikeshed
2016

2117
# Don't add more than 3 levels to TOC.
2218
data = data.replace('<h5>', '<h5 class="no-toc">')
@@ -42,18 +38,6 @@ def Main():
4238
'<h3>A.' + str(number) + ' ' + section + '</h3>')
4339
number += 1
4440

45-
46-
# Drop spurious navigation.
47-
data = data.replace(
48-
"""
49-
<div class="related" role="navigation" aria-label="related navigation">
50-
<h3>Navigation</h3>
51-
<ul>
52-
<li class="nav-item nav-item-0"><a href="#">WebAssembly 1.1</a> &#187;</li>
53-
<li class="nav-item nav-item-this"><a href="">WebAssembly 1.1</a></li>
54-
</ul>
55-
</div> """, '')
56-
5741
# Use bikeshed biblio references for unicode and IEEE754
5842
data = data.replace(
5943
"""<a class="reference external" href="https://www.unicode.org/versions/latest/">Unicode</a>""",

0 commit comments

Comments
 (0)