summaryrefslogtreecommitdiff
path: root/yarns/030-topics.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/030-topics.yarn')
-rw-r--r--yarns/030-topics.yarn17
1 files changed, 17 insertions, 0 deletions
diff --git a/yarns/030-topics.yarn b/yarns/030-topics.yarn
new file mode 100644
index 0000000..e931ae3
--- /dev/null
+++ b/yarns/030-topics.yarn
@@ -0,0 +1,17 @@
+Using Topics
+============
+
+A topic is implemented as a wiki page to which journal entries link.
+First we create a topic page:
+
+ SCENARIO create and use topic page
+ GIVEN an empty journal in SRC
+ WHEN I run jt new-topic research/2014/dishwasher Dishwasher
+ THEN file SRC/research/2014/dishwasher.mdwn matches title="Dishwasher"
+
+After this, we can create a new journal entry that belongs to the
+topic.
+
+ GIVEN the time is 2014-11-20 20:04:08
+ WHEN I run jt new --topic=research/2014/dishwasher TITLE
+ THEN file SRC/drafts/0.mdwn matches research/2014/dishwasher