Skip to content

Commit 920bd3b

Browse files
p-ouelletteSmallJoker
authored andcommittedMay 21, 2019
Fix API site build (#8551)
1 parent cfef466 commit 920bd3b

File tree

3 files changed

+11
-34
lines changed

3 files changed

+11
-34
lines changed
 

‎doc/mkdocs/build.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#!/bin/sh -e
22

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

97
# Split lua_api.txt on top level headings

‎doc/mkdocs/code_tag.patch

-31
This file was deleted.

‎doc/mkdocs/lua_highlight.patch

+10
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@
77
self.linenums = linenums
88
self.guess_lang = guess_lang
99
self.css_class = css_class
10+
@@ -119,7 +119,8 @@
11+
cssclass=self.css_class,
12+
style=self.style,
13+
noclasses=self.noclasses,
14+
- hl_lines=self.hl_lines)
15+
+ hl_lines=self.hl_lines,
16+
+ wrapcode=True)
17+
return highlight(self.src, lexer, formatter)
18+
else:
19+
# just escape and build markup usable by JS highlighting libs

0 commit comments

Comments
 (0)
Please sign in to comment.