From 9dca0e9ab1f20a7e9a02733b91268f48c28c6ad9 Mon Sep 17 00:00:00 2001 From: Andrew Neitsch Date: Wed, 27 Oct 2021 18:23:32 -0600 Subject: [PATCH] Tell readthedocs to use the latest stable python3 --- .readthedocs.yml | 2 ++ doc/en/conf.py | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 2647c4ac2f3..55d6482b13b 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -9,6 +9,8 @@ python: build: os: ubuntu-20.04 + tools: + python: "3" apt_packages: - inkscape diff --git a/doc/en/conf.py b/doc/en/conf.py index 00bcce97f70..ff91ccce0ef 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -43,7 +43,8 @@ latex_engine = "lualatex" latex_elements = { - 'preamble': dedent(""" + "preamble": dedent( + """ \directlua{ luaotfload.add_fallback("fallbacks", { "Noto Serif CJK SC:style=Regular;", @@ -52,7 +53,8 @@ } \setmainfont{FreeSerif}[RawFeature={fallback=fallbacks}] - """) + """ + ) } # -- General configuration -----------------------------------------------------