Skip to content

Commit

Permalink
Fix API site build (#8551)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ouellette authored and SmallJoker committed May 21, 2019
1 parent cfef466 commit 920bd3b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 34 deletions.
4 changes: 1 addition & 3 deletions doc/mkdocs/build.sh
@@ -1,9 +1,7 @@
#!/bin/sh -e

# Patch Pygments and Python-Markdown
PYGMENTS_FILE=$(pip show pygments | awk '/Location/ { print $2 }')/pygments/formatters/html.py
# Patch Python-Markdown
MARKDOWN_FILE=$(pip show markdown | awk '/Location/ { print $2 }')/markdown/extensions/codehilite.py
patch -N -r - $PYGMENTS_FILE code_tag.patch || true
patch -N -r - $MARKDOWN_FILE lua_highlight.patch || true

# Split lua_api.txt on top level headings
Expand Down
31 changes: 0 additions & 31 deletions doc/mkdocs/code_tag.patch

This file was deleted.

10 changes: 10 additions & 0 deletions doc/mkdocs/lua_highlight.patch
Expand Up @@ -7,3 +7,13 @@
self.linenums = linenums
self.guess_lang = guess_lang
self.css_class = css_class
@@ -119,7 +119,8 @@
cssclass=self.css_class,
style=self.style,
noclasses=self.noclasses,
- hl_lines=self.hl_lines)
+ hl_lines=self.hl_lines,
+ wrapcode=True)
return highlight(self.src, lexer, formatter)
else:
# just escape and build markup usable by JS highlighting libs

0 comments on commit 920bd3b

Please sign in to comment.