Use 4 CPUs on readthedocs by injection.

This commit is contained in:
Lukas Tenbrink
2026-01-24 23:22:24 +01:00
parent c28bfafd08
commit 7626bd972a
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# Hackily injects -j4 into the RTD build process.
# Can be removed if we find an easier way to inject it.
def setup(app):
app.parallel = 4
return {
"parallel_read_safe": True,
"parallel_write_safe": True,
}

View File

@@ -39,6 +39,9 @@ on_rtd = os.environ.get("READTHEDOCS", None) == "True"
if not on_rtd:
notfound_urls_prefix = ''
if on_rtd:
extensions.append("override_jobs")
# Specify the site name for the Open Graph extension.
ogp_site_name = "Godot Engine documentation"
ogp_social_cards = {