Skip to content

Commit 3e9ac6c

Browse files
jsquyresrhc54
authored andcommitted
docs: Fix up several minor bugs that showed up via CI
Signed-off-by: Jeff Squyres <[email protected]>
1 parent 4db1f5c commit 3e9ac6c

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

Makefile.prte-rules

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) 2008-2022 Cisco Systems, Inc. All rights reserved.
33
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
44
# Copyright (c) 2020 Intel, Inc. All rights reserved.
5+
# Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
56
# $COPYRIGHT$
67
#
78
# Additional copyrights may follow
@@ -22,8 +23,8 @@ PRTE_V_SPHINX_MAN = $(prte__v_SPHINX_MAN_$V)
2223
prte__v_SPHINX_MAN_ = $(prte__v_SPHINX_MAN_$AM_DEFAULT_VERBOSITY)
2324
prte__v_SPHINX_MAN_0 = @echo " GENERATE man pages";
2425

25-
PRTE_V_TXT = $(prte__v_SPHINX_TXT_$V)
26-
prte__v_TXT_ = $(prte__v_SPHINX_TXT_$AM_DEFAULT_VERBOSITY)
26+
PRTE_V_TXT = $(prte__v_TXT_$V)
27+
prte__v_TXT_ = $(prte__v_TXT_$AM_DEFAULT_VERBOSITY)
2728
prte__v_TXT_0 = @echo " GENERATE text files";
2829

2930
PRTE_V_LN_S = $(prte__v_LN_S_$V)

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ AC_INCLUDES_DEFAULT
718718
#
719719

720720
OAC_SETUP_SPHINX([$srcdir/docs/_build/html/index.html], [])
721+
AC_CHECK_PROGS(PYTHON, [python3 python python2])
721722

722723
AS_IF([test -n "$OAC_MAKEDIST_DISABLE"],
723724
[AS_IF([test -n "$PRTE_MAKEDIST_DISABLE"],

src/docs/show-help-files/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ $(TXT_SENTINEL_OUTPUT):
9696
if PRTE_BUILD_DOCS
9797
$(PRTE_V_TXT) $(SPHINX_BUILD) -M text "$(srcdir)" "$(OUTDIR)" $(SPHINX_OPTS)
9898
else !PRTE_BUILD_DOCS
99-
$(PRTE_V_TXT) $(srcdir)/build-dummy-ini-files.py $(TXT_OUTDIR) $(ALL_TXT_BUILT)
99+
$(PRTE_V_TXT) \
100+
$(PYTHON) $(srcdir)/build-dummy-ini-files.py $(TXT_OUTDIR) $(ALL_TXT_BUILT); \
101+
touch $(TXT_SENTINEL_OUTPUT)
100102
endif !PRTE_BUILD_DOCS
101103

102104
maintainer-clean-local:

src/docs/show-help-files/build-dummy-ini-files.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,20 @@
6363

6464
# Ensure the out directory exists
6565
full_outdir = os.path.abspath(os.path.dirname(outfile))
66-
# Use older form of os.mkdirs (without the exist_ok param) to make
67-
# this script runnable in as many environments as possible.
66+
if not os.path.exists(full_outdir):
67+
# Use older form of os.mkdirs (without the exist_ok param) to
68+
# make this script runnable in as many environments as
69+
# possible.
70+
os.makedirs(full_outdir)
71+
6872
try:
69-
os.makedirs(full_outdir, exists_ok=True)
7073
# Write the output file
7174
with open(outfile, 'w') as fp:
7275
for section in sections:
7376
# Use Python 2-friendly formatting for environments where
7477
# we don't have Python 3 (!).
7578
fp.write("""[{}]
7679
This help section is empty because PRRTE was built without Sphinx.\n""".format(section))
77-
except Exception:
80+
except Exception as e:
81+
print("ERROR: {}".format(e))
7882
pass

0 commit comments

Comments
 (0)