summaryrefslogtreecommitdiff
path: root/subplot.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-05-02 08:56:41 +0300
committerLars Wirzenius <liw@liw.fi>2020-05-02 17:04:16 +0300
commit06fa437f6f7d38fc10099f6092481f10e22535f1 (patch)
tree857c67d7a35854838b98090374ccc484b825a092 /subplot.yaml
parent5c12f2dc5c4b3d1794d0c3cabc50cef700ca78e1 (diff)
downloadsubplot-06fa437f6f7d38fc10099f6092481f10e22535f1.tar.gz
Change: produce docgen output if missing or older than any source
Source files are: * the markdown file * the bindings, functions, and bibliography files listed in YAML metadata * any included images in the markdown The template file is not considered: it's only relevant for codegen. The docgen binary is not considered, either, for now, because reliably finding the binary is difficult.
Diffstat (limited to 'subplot.yaml')
-rw-r--r--subplot.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/subplot.yaml b/subplot.yaml
index e454f47..be59205 100644
--- a/subplot.yaml
+++ b/subplot.yaml
@@ -26,6 +26,9 @@
- when: I run sp-meta {filename}
function: run_meta
+- when: I touch {filename}
+ function: update_mtime
+
- when: I run pandoc --filter sp-filter {filename} -o {output}
function: run_pandoc_with_filter
@@ -49,6 +52,9 @@
- then: "{filename} has the same metadata as before"
function: has_same_metadata_as_remembered
+- then: "{filename} has changed from before"
+ function: has_diff_metadata_than_remembered
+
- then: output matches /(?P<pattern>.+)/
function: stdout_matches
regex: true