-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ReadTheDocs Configuration File (#512)
Adding readthedocs config file and robots.txt generation. [ reviewed by @ashao @mellis13 ] [ committed by @amandarichardsonn ]
- Loading branch information
1 parent
9e74ba9
commit 10e084e
Showing
3 changed files
with
55 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.10" | ||
jobs: | ||
post_checkout: | ||
# Cancel building pull requests when there aren't changed in the docs directory or YAML file. | ||
# You can add any other files or directories that you'd like here as well, | ||
# like your docs requirements file, or other files that will change your docs build. | ||
# | ||
# If there are no changes (git diff exits with 0) we force the command to return with 183. | ||
# This is a special exit code on Read the Docs that will cancel the build immediately. | ||
- | | ||
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- doc/ .readthedocs.yaml; | ||
then | ||
exit 183; | ||
fi | ||
pre_create_environment: | ||
- git clone --depth 1 https://github.com/CrayLabs/SmartRedis.git smartredis | ||
- git clone --depth 1 https://github.com/CrayLabs/SmartDashboard.git smartdashboard | ||
post_create_environment: | ||
- python -m pip install . | ||
- cd smartredis; python -m pip install . | ||
- cd smartredis/doc; doxygen Doxyfile_c; doxygen Doxyfile_cpp; doxygen Doxyfile_fortran | ||
- ln -s smartredis/examples ./examples | ||
- cd smartdashboard; python -m pip install . | ||
pre_build: | ||
- python -m sphinx -b linkcheck doc/ $READTHEDOCS_OUTPUT/linkcheck | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: doc/conf.py | ||
fail_on_warning: true | ||
|
||
python: | ||
install: | ||
- requirements: doc/requirements-doc.txt |
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