-
Notifications
You must be signed in to change notification settings - Fork 23
Description
The builds of the documentation currently take ~29 minutes, intermittently 30-31 minutes.
readthedocs has a 30 minute time limit before they cancel our builds.
The 31 minute builds very rarely get cancelled, though the timer includes time spent cloning the repo and submodules, as well as time spent waiting for the build to start, so ~31 minute builds may be just under 30 minutes in the section that can timeout.
Most of this time is taken up by writing the table of contents to every file, due to how Sphinx works.
Sphinx generates static HTML for every page, so to have links to every page in the TOC from every page in the TOC, those links are written to every file, so build times are O(n2) for n docs pages. This should be fine for a small number of docs, but the Standard Modules Reference has over 1000 markdown files.
Without the Standard Modules Reference, the builds take less than 2 minutes to complete.