File tree Expand file tree Collapse file tree 5 files changed +26
-0
lines changed Expand file tree Collapse file tree 5 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,4 @@ src/plugins/install/built-in
27
27
src /plugins /xtriggers /built-in
28
28
src /user-guide /task-implementation /job-runner-handlers
29
29
src /dictionaries /sentence_case
30
+ src /user-guide /examples /*
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ cleanall:
56
56
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
57
57
# NOTE: EXPORT_ALL_VARIABLES exports make vars as env vars
58
58
% : Makefile .EXPORT_ALL_VARIABLES
59
+ bin/link-examples
59
60
# build documentation
60
61
@$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
61
62
# write out dict of available versions and formats
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -eu
4
+
5
+ # rm cylc-flow-examples || true
6
+ examples=" $( python -c ' import cylc.flow; from pathlib import Path; print(Path(cylc.flow.__file__).parent)' ) /etc/examples"
7
+ for example in $( echo " ${examples} /" * ) ; do
8
+ if [[ -d " ${example} " ]]; then
9
+ target=" src/user-guide/examples/$( basename " ${example} " ) "
10
+ rm " ${target} " || true
11
+ ln -s " ${example} " " ${target} "
12
+ fi
13
+ done
14
+
Original file line number Diff line number Diff line change
1
+ Examples
2
+ ========
3
+
4
+ These examples cover some of the main patterns for implementing Cylc workflows.
5
+
6
+ .. toctree ::
7
+ :glob:
8
+
9
+ * /index
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ User Guide
8
8
:maxdepth: 2
9
9
10
10
introduction
11
+ examples/index
11
12
writing-workflows/index
12
13
installing-workflows
13
14
running-workflows/index
You can’t perform that action at this time.
0 commit comments