-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: update ReadTheDocs configuration and build process (#4203)
The `.readthedocs.yml` configuration file is updated to ask RTD to also install the `aiida-core` package. This is necessary for the entry points to be properly installed, which is turn is necessary for the automated API documentation to be successfully built. This was always failing but went unnoticed because the nitpick option was not enabled. This is also changed such that failures like these will fail the build from now on. Due to the package now being installed through `pip` it is no longer necessary, nor preferable, to hack it into the `sys.path` in the source configuration file. It also allows to remote the change of the previous commit that manualy called `reentry scan`, since this was not the actual reason for the entry points not being available. Since the package is now installed directly through `pip` the separate `docs/requirements_for_rtd.txt` file is now obsolete and it is removed along with all the pre-commit hooks and scripts that automatically updated it. Finally, delete folder `aiida/sphinxext/tests` which became obsolete when all tests were moved to the `tests` folder.
- Loading branch information
Showing
10 changed files
with
22 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
# Configuration for readthedocs | ||
version: 2 | ||
|
||
# Important: we need to disable all unneeded formats. | ||
# Note that HTML and JSON are always built: | ||
# https://docs.readthedocs.io/en/latest/yaml-config.html#formats | ||
# Especially, the 'htmlzip' format takes a LOT of memory and causes | ||
# the build to fail - see our issue #1472: | ||
# Note that HTML and JSON are always built: https://docs.readthedocs.io/en/latest/yaml-config.html#formats | ||
# Especially, the 'htmlzip' format takes a LOT of memory and causes the build to fail - see our issue #1472: | ||
# https://github.com/aiidateam/aiida-core/issues/1472 | ||
formats: [] | ||
|
||
## For now I don't specify any other parameter, that is | ||
## currently setup in the web page of Read the Docs. | ||
## For other parameters see | ||
## https://docs.readthedocs.io/en/latest/yaml-config.html | ||
# Need to install the package itself such that the entry points are installed and the API doc can build properly | ||
python: | ||
version: 3.8 | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs | ||
- tests | ||
|
||
# Let the build fail if there are any warnings | ||
sphinx: | ||
builder: html | ||
fail_on_warning: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters