Use new key for setting readthedocs python version

This commit is contained in:
Andrew Neitsch 2021-10-27 18:42:00 -06:00
parent 46491913ca
commit 70e8dfe070
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,6 @@
version: 2 version: 2
python: python:
version: 3.7
install: install:
- requirements: doc/en/requirements.txt - requirements: doc/en/requirements.txt
- method: pip - method: pip
@ -9,6 +8,8 @@ python:
build: build:
os: ubuntu-20.04 os: ubuntu-20.04
tools:
python: "3.9"
apt_packages: apt_packages:
- inkscape - inkscape

View File

@ -43,7 +43,8 @@ todo_include_todos = 1
latex_engine = "lualatex" latex_engine = "lualatex"
latex_elements = { latex_elements = {
'preamble': dedent(""" "preamble": dedent(
r"""
\directlua{ \directlua{
luaotfload.add_fallback("fallbacks", { luaotfload.add_fallback("fallbacks", {
"Noto Serif CJK SC:style=Regular;", "Noto Serif CJK SC:style=Regular;",
@ -52,7 +53,8 @@ latex_elements = {
} }
\setmainfont{FreeSerif}[RawFeature={fallback=fallbacks}] \setmainfont{FreeSerif}[RawFeature={fallback=fallbacks}]
""") """
)
} }
# -- General configuration ----------------------------------------------------- # -- General configuration -----------------------------------------------------