File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -881,7 +881,14 @@ ALL_MAN_BUILT = \
881
881
# built HTML and man docs into a separate location that is included in
882
882
# the tarball. This gives users a fully copy of the docs included in
883
883
# distribution tarballs.
884
- html : $(ALL_MAN_BUILT )
884
+ #
885
+ # Note: we name this "html-local" because otherwise Automake issues a
886
+ # warning about us overriding its default "html" target. In our
887
+ # particular use case, the rules generated if we name this target
888
+ # "html-local" instead of "html" are effectively equivalent to when we
889
+ # name this target "html", so we might as well avoid the Automake
890
+ # warning.
891
+ html-local : $(ALL_MAN_BUILT )
885
892
$(OMPI_V_COPYALL ) rm -rf html; cp -rp $(OUTDIR ) /html .
886
893
887
894
man : $(ALL_MAN_BUILT )
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ def read_version_file(path):
37
37
if not os .path .exists (path ):
38
38
print (f"ERROR: Unable to find file { path } " )
39
39
exit (1 )
40
-
40
+
41
41
with open (path ) as fp :
42
42
version_lines = fp .readlines ()
43
-
43
+
44
44
data = dict ()
45
45
for line in version_lines :
46
46
if '#' in line :
@@ -129,6 +129,15 @@ def get_tarball_version(path, expr):
129
129
if key in os .environ and os .environ [key ] == 'True' :
130
130
print ("OMPI: found ReadTheDocs build environment" )
131
131
132
+ # Tell Jinja2 templates the build is running on Read the Docs
133
+ if "html_context" not in globals ():
134
+ html_context = {}
135
+ html_context ["READTHEDOCS" ] = True
136
+
137
+ # Define the canonical URL if you are using a custom domain on
138
+ # Read the Docs
139
+ html_baseurl = os .environ .get ("READTHEDOCS_CANONICAL_URL" , "" )
140
+
132
141
rtd_v = os .environ ['READTHEDOCS_VERSION' ]
133
142
if os .environ ['READTHEDOCS_VERSION_TYPE' ] == 'external' :
134
143
# Make "release" be shorter than the full "ompi_ver" value.
You can’t perform that action at this time.
0 commit comments