File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 4444series = f"{ ompi_data ['major' ]} .{ ompi_data ['minor' ]} .x"
4545release = f"{ ompi_data ['major' ]} .{ ompi_data ['minor' ]} .{ ompi_data ['release' ]} { ompi_data ['greek' ]} "
4646
47+ # If we are building in a ReadTheDocs.io environment, there will be
48+ # READTHEDOCS environment variables.
49+ #
50+ # Relevant RTD env variables (documented
51+ # https://docs.readthedocs.io/en/stable/builds.html#build-environment):
52+ key = 'READTHEDOCS'
53+ if key in os .environ and os .environ [key ] == 'True' :
54+ print ("OMPI: found ReadTheDocs build environment" )
55+
56+ # Tell Jinja2 templates the build is running on Read the Docs
57+ if "html_context" not in globals ():
58+ html_context = {}
59+ html_context ["READTHEDOCS" ] = True
60+
61+ # Define the canonical URL if you are using a custom domain on
62+ # Read the Docs
63+ html_baseurl = os .environ .get ("READTHEDOCS_CANONICAL_URL" , "" )
4764
4865# -- General configuration ---------------------------------------------------
4966
You can’t perform that action at this time.
0 commit comments