-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCons scripting to build docs from pipelines.
WIP: first draft of pipelines doc build. Needs .gitignore, flake8 guards, comments, tweaks. WIP: doc build. Outputs are now decent, but everything breaks with 'scons -j'. WIP: doc build; final tuneups.
- Loading branch information
Showing
5 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from lsst.sconsUtils.state import env, targets | ||
from pathlib import Path | ||
from lsst.pipe.base.pipeline_doc_builder import PackagePipelinesDocBuilder | ||
|
||
target_root = Path(str(env.Dir("lsst.drp.pipe/pipelines"))) | ||
artifacts = list( | ||
PackagePipelinesDocBuilder.from_source( | ||
Path(str(env.Dir("#pipelines"))), | ||
rst_root=target_root, | ||
pipeline_root=target_root, | ||
dot_root=target_root, | ||
graph_root=target_root, | ||
graph_suffix=".svg", | ||
rst_path=Path(str(env.File("lsst.drp.pipe/pipelines_index.rst"))), | ||
).scons_generate(env) | ||
) | ||
|
||
env.AlwaysBuild(artifacts) | ||
env.Clean("doc", artifacts) | ||
|
||
targets["doc"].extend(artifacts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters