Skip to content

Commit

Permalink
Fixing sidebar in bikeshed version of the spec. (WebAssembly#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
flagxor authored Feb 14, 2018
1 parent 5f55a23 commit 6700fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion document/core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ bikeshed:
$(SPHINXBUILD) -b singlehtml -c util/bikeshed \
$(ALLSPHINXOPTS) $(BUILDDIR)/bikeshed_singlehtml
mkdir -p $(BUILDDIR)/bikeshed_mathjax/
cp index.bs $(BUILDDIR)/bikeshed_mathjax/
bikeshed spec index.bs $(BUILDDIR)/bikeshed_mathjax/index.html
mkdir -p $(BUILDDIR)/html/bikeshed/
python util/mathjax2katex.py $(BUILDDIR)/bikeshed_mathjax/index.html \
Expand Down
4 changes: 2 additions & 2 deletions document/core/util/mathjax2katex.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def ExtractMath(match):
# Bad duplicate meta.
data = ''.join(data.rsplit(
'<meta content="text/html; charset=utf-8" http-equiv="Content-Type">', 1))
# Drop all scripts.
data = re.sub('<script[^>]*>[^<]*</script>', '', data)
# Drop several scripts.
data = re.sub('<script[^>]*text/javascript[^>]*>[^<]*</script>', '', data)
data = data.replace(
'<head>\n', '<head>\n<link rel="stylesheet" href="katex/dist/katex.css">')
# Drop duplicate title.
Expand Down

0 comments on commit 6700fd9

Please sign in to comment.