mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Update API site build (#9622)
This commit is contained in:
parent
40df3931d8
commit
840b17ce63
@ -300,9 +300,8 @@ package:docker:
|
|||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: python:3.7
|
image: python:3.8
|
||||||
before_script:
|
before_script:
|
||||||
- pip install pip==18.1
|
|
||||||
- pip install git+https://github.com/Python-Markdown/markdown.git
|
- pip install git+https://github.com/Python-Markdown/markdown.git
|
||||||
- pip install git+https://github.com/mkdocs/mkdocs.git
|
- pip install git+https://github.com/mkdocs/mkdocs.git
|
||||||
- pip install pygments
|
- pip install pygments
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@@ -77,7 +77,7 @@
|
@@ -75,7 +75,7 @@
|
||||||
css_class="codehilite", lang=None, style='default',
|
css_class="codehilite", lang=None, style='default',
|
||||||
noclasses=False, tab_length=4, hl_lines=None, use_pygments=True):
|
noclasses=False, tab_length=4, hl_lines=None, use_pygments=True):
|
||||||
self.src = src
|
self.src = src
|
||||||
@ -7,13 +7,3 @@
|
|||||||
self.linenums = linenums
|
self.linenums = linenums
|
||||||
self.guess_lang = guess_lang
|
self.guess_lang = guess_lang
|
||||||
self.css_class = css_class
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user