Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
415ddeec
Commit
415ddeec
authored
8 years ago
by
Adam J. Stewart
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix bugs preventing readthedocs from rebuilding the documentation (#1945)
parent
ebef9628
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/spack/docs/command_index.in
+3
-3
3 additions, 3 deletions
lib/spack/docs/command_index.in
lib/spack/docs/conf.py
+9
-11
9 additions, 11 deletions
lib/spack/docs/conf.py
with
12 additions
and
14 deletions
lib/spack/docs/command_index.in
+
3
−
3
View file @
415ddeec
=============
====
Command
i
ndex
=============
====
=============
Command
I
ndex
=============
This is an alphabetical list of commands with links to the places they
appear in the documentation.
...
...
This diff is collapsed.
Click to expand it.
lib/spack/docs/conf.py
+
9
−
11
View file @
415ddeec
...
...
@@ -67,13 +67,12 @@
#
# Generate package list using spack command
#
if
not
os
.
path
.
exists
(
'
package_list.rst
'
):
with
open
(
'
package_list.rst
'
,
'
w
'
)
as
plist_file
:
subprocess
.
Popen
(
[
spack_root
+
'
/bin/spack
'
,
'
package-list
'
],
stdout
=
plist_file
)
with
open
(
'
package_list.rst
'
,
'
w
'
)
as
plist_file
:
subprocess
.
Popen
(
[
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
=
[]
for
filename
in
glob
(
'
*rst
'
):
...
...
@@ -83,12 +82,11 @@
if
match
:
command_names
.
append
(
match
.
group
(
1
).
strip
())
if
not
os
.
path
.
exists
(
'
command_index.rst
'
):
shutil
.
copy
(
'
command_index.in
'
,
'
command_index.rst
'
)
with
open
(
'
command_index.rst
'
,
'
a
'
)
as
index
:
index
.
write
(
'
\n
'
)
for
cmd
in
sorted
(
command_names
):
index
.
write
(
'
* :ref:`%s`
\n
'
%
cmd
)
shutil
.
copy
(
'
command_index.in
'
,
'
command_index.rst
'
)
with
open
(
'
command_index.rst
'
,
'
a
'
)
as
index
:
index
.
write
(
'
\n
'
)
for
cmd
in
sorted
(
command_names
):
index
.
write
(
'
* :ref:`%s`
\n
'
%
cmd
)
# Run sphinx-apidoc
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment