| 1 |
# Examples |
| 2 |
|
| 3 |
These examples are intended to illustrate the major patterns for implementing |
| 4 |
Cylc workflows. The hope is that users can find a workflow which fits their |
| 5 |
pattern, make a copy and fill in the details. Keep the examples minimal and |
| 6 |
abstract. We aren't trying to document every Cylc feature here, just the |
| 7 |
major design patterns. |
| 8 |
|
| 9 |
These examples are auto-documented in cylc-doc which looks for an `index.rst` |
| 10 |
file in each example. |
| 11 |
|
| 12 |
Users can extract them using `cylc get-resources` which will put them into the |
| 13 |
configured Cylc source directory (`~/cylc-src` by default). They can then be |
| 14 |
run using the directory name, e.g. `cylc vip hello-world`. |
| 15 |
|
| 16 |
Files: |
| 17 |
|
| 18 |
* `index.rst` |
| 19 |
This file is used to generate a page in the documentation for the example. |
| 20 |
This file is excluded when the user extracts the example. |
| 21 |
* `.validate` |
| 22 |
This is a test file, it gets detected and run automatically. |
| 23 |
This file is excluded when the user extracts the example. |
| 24 |
* `README.rst` |
| 25 |
Examples can include a README file, to save duplication, you can |
| 26 |
`.. include::` this in the `index.rst` file (hence using ReStructuredText |
| 27 |
rather than Markdown). |