summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-11-19 19:37:01 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-11-19 20:19:01 +0000
commit000afe0d88c2beb9f237b1c6317986468dee233e (patch)
treeabe9759dc3d62c4ec7257e80d5f437df87a535fd /subplot.md
parentae873daa84782eeddb35fa24057b7c5b3420660d (diff)
downloadsubplot-000afe0d88c2beb9f237b1c6317986468dee233e.tar.gz
subplots: Upgrade metadata for polyglot docs
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md135
1 files changed, 67 insertions, 68 deletions
diff --git a/subplot.md b/subplot.md
index e2737f7..a9f9787 100644
--- a/subplot.md
+++ b/subplot.md
@@ -1,15 +1,15 @@
---
title: "Subplot"
author: The Subplot project
-template: python
bindings:
- subplot.yaml
- lib/runcmd.yaml
- lib/files.yaml
-functions:
-- subplot.py
-- lib/files.py
-- lib/runcmd.py
+impls:
+ python:
+ - subplot.py
+ - lib/files.py
+ - lib/runcmd.py
classes:
- json
...
@@ -647,11 +647,11 @@ they are how Pandoc recongizes the block.
title: "Subplot"
author: The Subplot project
date: work in progress
-template: python
bindings:
- subplot.yaml
-functions:
-- subplot.py
+impls:
+ python:
+ - subplot.py
...
~~~
@@ -818,8 +818,8 @@ then command fails
---
title: Bad filenames in matched steps do not permit codegen
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# Bad filename
@@ -976,8 +976,8 @@ duplicated for each scenario.
---
title: Test scenario
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# Simple
@@ -1087,7 +1087,7 @@ and stderr contains "no scenarios were found"
~~~{#noscenarios.md .file .markdown .numberLines}
---
title: No scenarios in here
-template: python
+impls: { python: [] }
...
# This is a title
@@ -1125,8 +1125,8 @@ and command is successful
---
title: All the keywords scenario
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# All keywords
@@ -1198,8 +1198,8 @@ then command fails
---
title: Continuation keyword misuse
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# Continuation keyword misuse
@@ -1231,7 +1231,7 @@ then file foo.pdf exists
---
title: This _uses_ ~~all~~ **most** inline `markup`
subtitle: H~2~O is not 2^10^
-template: python
+impls: { python: [] }
...
# Introduction
@@ -1262,8 +1262,8 @@ and command is successful
---
title: Test scenario
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# Simple
@@ -1370,8 +1370,8 @@ and command is successful
---
title: Cleanup
bindings: [cleanup.yaml]
-functions: [cleanup.py]
-template: python
+impls:
+ python: [cleanup.py]
...
# Cleanup
@@ -1402,8 +1402,8 @@ and command fails
---
title: Cleanup
bindings: [cleanup.yaml]
-functions: [cleanup.py]
-template: python
+impls:
+ python: [cleanup.py]
...
# Cleanup
@@ -1434,8 +1434,8 @@ and command is successful
---
title: Cleanup
bindings: [cleanup.yaml]
-functions: [cleanup.sh]
-template: bash
+impls:
+ bash: [cleanup.sh]
...
# Cleanup
@@ -1469,8 +1469,8 @@ and command fails
---
title: Cleanup
bindings: [cleanup.yaml]
-functions: [cleanup.sh]
-template: bash
+impls:
+ bash: [cleanup.sh]
...
# Cleanup
@@ -1509,8 +1509,8 @@ and step "then TMPDIR is set" was run
---
title: TMPDIR
bindings: [tmpdir.yaml]
-functions: [tmpdir.py]
-template: python
+impls:
+ python: [tmpdir.py]
...
# TMPDIR
@@ -1561,8 +1561,8 @@ and command is successful
---
title: Simple pattern capture
bindings: [simplepattern.yaml]
-functions: [capture.py]
-template: python
+impls:
+ python: [capture.py]
...
# Simple pattern
@@ -1605,8 +1605,8 @@ and stderr contains "simple pattern contains regex"
---
title: Simple pattern capture
bindings: [confusedpattern.yaml]
-functions: [capture.py]
-template: python
+impls:
+ python: [capture.py]
...
# Simple pattern
@@ -1638,8 +1638,8 @@ then command is successful
---
title: Simple pattern capture
bindings: [confusedbutok.yaml]
-functions: [capture.py]
-template: python
+impls:
+ python: [capture.py]
...
# Simple pattern
@@ -1675,8 +1675,8 @@ and command is successful
---
title: Regex capture
bindings: [regex.yaml]
-functions: [capture.py]
-template: python
+impls:
+ python: [capture.py]
...
# Regex
@@ -1723,8 +1723,8 @@ then command is successful
---
title: Values
bindings: [values.yaml]
-functions: [values.py]
-template: python
+impls:
+ python: [values.py]
...
@@ -1797,8 +1797,8 @@ then command is successful
---
title: Environment variables
bindings: [env.yaml]
-functions: [env.py]
-template: python
+impls:
+ python: [env.py]
...
# Test
@@ -1920,8 +1920,8 @@ and command is successful
---
title: Test scenario
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# heading 1
@@ -1950,8 +1950,8 @@ and command is successful
---
title: Test scenario
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# heading 1
@@ -1984,8 +1984,8 @@ and command is successful
---
title: Test scenario
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# heading 1
@@ -2021,8 +2021,8 @@ and command is successful
---
title: Test scenario
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# heading 1
@@ -2105,8 +2105,8 @@ then command is successful
---
title: Plain *emph* **strong** ~~strikeout~~ superscript^10^ subscript~10~
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
@@ -2160,8 +2160,8 @@ and command is successful
---
title: Test scenario
bindings: [b.yaml]
-functions: [f.py]
-template: python
+impls:
+ python: [f.py]
...
# One
@@ -2203,8 +2203,8 @@ and command is successful
---
title: Test scenario
bindings: [b.yaml]
-functions: [f.sh]
-template: bash
+impls:
+ bash: [f.sh]
...
# One
@@ -2384,8 +2384,8 @@ and stderr contains ": missing-functions.py:"
---
title: Missing functions
bindings: [b.yaml]
-functions: [missing-functions.py]
-template: python
+impls:
+ python: [missing-functions.py]
...
~~~
@@ -2400,8 +2400,8 @@ subplot metadata would extract this information from the **simple.md** example:
~~~
title: Test scenario
bindings: [b.yaml]
-template: python
-functions: [f.py]
+impls:
+ python: [f.py]
scenario Simple
~~~
@@ -2441,10 +2441,10 @@ title: Document refers to external images
bindings:
- b.yaml
- other.yaml
-template: python
-functions:
-- f.py
-- other.py
+impls:
+ python:
+ - f.py
+ - other.py
bibliography: [foo.bib, bar.bib]
...
@@ -2764,7 +2764,7 @@ then command fails
~~~~{#casemismatch.md .file .markdown}
---
title: Case sensitivity mismatch
-template: python
+impls: { python: [] }
bindings:
- badbindings.yaml
...
@@ -2788,11 +2788,10 @@ then command fails
~~~~{#twobindings.md .file .markdown}
---
title: Two bindings match
-template: python
bindings:
- twobindings.yaml
-functions:
-- a_function.py
+impls:
+ python: [a_function.py]
...
# Broken scenario because step has two possible bindings