Fix bugs preventing readthedocs from rebuilding the documentation (#1945)
This commit is contained in:
parent
ebef9628a3
commit
415ddeecf8
@ -1,6 +1,6 @@
|
|||||||
=================
|
=============
|
||||||
Command index
|
Command Index
|
||||||
=================
|
=============
|
||||||
|
|
||||||
This is an alphabetical list of commands with links to the places they
|
This is an alphabetical list of commands with links to the places they
|
||||||
appear in the documentation.
|
appear in the documentation.
|
||||||
|
@ -67,13 +67,12 @@
|
|||||||
#
|
#
|
||||||
# Generate package list using spack command
|
# Generate package list using spack command
|
||||||
#
|
#
|
||||||
if not os.path.exists('package_list.rst'):
|
|
||||||
with open('package_list.rst', 'w') as plist_file:
|
with open('package_list.rst', 'w') as plist_file:
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
[spack_root + '/bin/spack', 'package-list'], stdout=plist_file)
|
[spack_root + '/bin/spack', 'package-list'], stdout=plist_file)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Find all the `spack-*` references and add them to a command index
|
# Find all the `cmd-spack-*` references and add them to a command index
|
||||||
#
|
#
|
||||||
command_names = []
|
command_names = []
|
||||||
for filename in glob('*rst'):
|
for filename in glob('*rst'):
|
||||||
@ -83,7 +82,6 @@
|
|||||||
if match:
|
if match:
|
||||||
command_names.append(match.group(1).strip())
|
command_names.append(match.group(1).strip())
|
||||||
|
|
||||||
if not os.path.exists('command_index.rst'):
|
|
||||||
shutil.copy('command_index.in', 'command_index.rst')
|
shutil.copy('command_index.in', 'command_index.rst')
|
||||||
with open('command_index.rst', 'a') as index:
|
with open('command_index.rst', 'a') as index:
|
||||||
index.write('\n')
|
index.write('\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user