diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2019-05-20 12:44:36 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-05-26 18:23:44 -0700 |
commit | 6380f1917a840bfe9fab6bc219c6806e30b7ce2a (patch) | |
tree | 8fe83400422448b66cb3c3c847849a1bb8a98709 /.dockerignore | |
parent | 43aaf8c404e31a193d446d9074b333dd7bf1f286 (diff) | |
download | spack-6380f1917a840bfe9fab6bc219c6806e30b7ce2a.tar.gz spack-6380f1917a840bfe9fab6bc219c6806e30b7ce2a.tar.bz2 spack-6380f1917a840bfe9fab6bc219c6806e30b7ce2a.tar.xz spack-6380f1917a840bfe9fab6bc219c6806e30b7ce2a.zip |
commands: Add --header and --update options to `spack commands`
The Spack documentation currently hard-codes some functionality in
`conf.py`, which makes the doc build less "pluggable" for things like
localized doc builds.
In particular, we unconditionally generate an index of commands and a
package list as part of the docs, but those should really only be done if
things are not up to date.
This commit does the following:
- Add `--header` option to `spack commands` so that it can do the work of
prepending text to its output.
- Add `--update FILE` option to `spack commands` that makes it generate a
new command index *only* if FILE is out of date w.r.t. commands in the
Spack source.
- Simplify code in `conf.py` to use these options and only update the
command index when needed.
Diffstat (limited to '.dockerignore')
0 files changed, 0 insertions, 0 deletions