Skip to content

Commit

Permalink
Remove some unneeded bikeshed fixup hacks (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschuff authored Oct 6, 2024
1 parent c0aeee7 commit b5c848b
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions document/core/util/bikeshed_fixup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
def Main():
data = open(sys.argv[1]).read()

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

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


# Drop spurious navigation.
data = data.replace(
"""
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="nav-item nav-item-0"><a href="#">WebAssembly 1.1</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">WebAssembly 1.1</a></li>
</ul>
</div> """, '')

# Use bikeshed biblio references for unicode and IEEE754
data = data.replace(
"""<a class="reference external" href="https://www.unicode.org/versions/latest/">Unicode</a>""",
Expand Down

0 comments on commit b5c848b

Please sign in to comment.