diff --git a/conf.py b/conf.py
index f41fefa5553..25acbcdf40c 100644
--- a/conf.py
+++ b/conf.py
@@ -301,3 +301,6 @@ def godot_get_image_filename_for_language(filename, env):
     image_locale="-" if language == "en" else language,
     target_locale="" if language == "en" else "/" + language,
 )
+
+# Needed so the table of contents is created for EPUB
+epub_tocscope = 'includehidden'