[yelp-tools] [templates/task.page] Added revision and comment, new @DATE@ substitution



commit 5d45f3b1e46707a168cafbe9e6c663bc291fcc65
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Dec 14 14:40:58 2010 -0500

    [templates/task.page] Added revision and comment, new @DATE@ substitution

 templates/task.page |    8 ++++++++
 tools/yelp-new.in   |    1 +
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/templates/task.page b/templates/task.page
index c6b6f73..225aefe 100644
--- a/templates/task.page
+++ b/templates/task.page
@@ -3,6 +3,8 @@
       type="topic" style="task"
       id="@ID@">
   <info>
+    <revision version="0.1" date="@DATE@" status="stub"/>
+
     <credit type="author copyright">
       <name>@NAME@</name>
       <email>@EMAIL@</email>
@@ -14,6 +16,12 @@
 
   <title>@TITLE@</title>
 
+  <comment>
+    <cite date="@DATE@" href="mailto:@EMAIL@";>@NAME@</cite>
+    <p>This assumes the reader knows how to.... By the end of this page,
+    the reader will be able to....</p>
+  </comment>
+
   <p>Short introductory text...</p>
 
   <steps>
diff --git a/tools/yelp-new.in b/tools/yelp-new.in
index d9f9d84..18d815d 100755
--- a/tools/yelp-new.in
+++ b/tools/yelp-new.in
@@ -122,6 +122,7 @@ if [ "x$spec" = "x.tmpl" ]; then
 else
     cat "$infile" | grep -v '<\?yelp-tmpl-desc' | sed \
         -e s/@ID@/"$2"/ \
+        -e s/@DATE@/`date +%Y-%m-%d`/ \
         -e s/@YEAR@/`date +%Y`/ \
         -e s/@NAME@/"$username"/ \
         -e s/@EMAIL@/"$useremail"/ \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]