summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/concept.duck36
-rw-r--r--templates/concept.page40
-rw-r--r--templates/guide.duck36
-rw-r--r--templates/guide.page40
-rw-r--r--templates/info.ducktype.include (renamed from templates/py/templates/info.ducktype.include)0
-rw-r--r--templates/info.mallard.include (renamed from templates/py/templates/info.mallard.include)0
-rw-r--r--templates/meson.build6
-rw-r--r--templates/py/templates/concept.duck15
-rw-r--r--templates/py/templates/concept.page18
-rw-r--r--templates/py/templates/guide.duck17
-rw-r--r--templates/py/templates/guide.page21
-rw-r--r--templates/py/templates/reference.duck58
-rw-r--r--templates/py/templates/reference.page65
-rw-r--r--templates/py/templates/task.duck29
-rw-r--r--templates/py/templates/task.page35
-rw-r--r--templates/reference.duck36
-rw-r--r--templates/reference.page40
-rw-r--r--templates/task.duck38
-rw-r--r--templates/task.page40
19 files changed, 24 insertions, 546 deletions
diff --git a/templates/concept.duck b/templates/concept.duck
index c349e88..0e6dff4 100644
--- a/templates/concept.duck
+++ b/templates/concept.duck
@@ -1,42 +1,10 @@
@ducktype/1.0
[-] yelp-tmpl-desc Explanation of a concept or background information
-= @TITLE@
+= {{TITLE}}
[topic .concept version=1.1]
-[--
- Recommended statuses: stub incomplete draft outdated review candidate final
- Remove version attributes you don't use.
---]
-@revision[version=0.1 docversion=0.1 pkgversion=0.1 date=@DATE@ status=stub]
-
-@credit[author copyright]
- @name @NAME@
- @email @EMAIL@
- @years @YEAR@
-
-[--
- This puts a link to this topic on the index page.
- Change the xref to link it from another guide.
---]
-@link[guide >index]
-
-[--
- Think about whether other pages should be in the seealso list.
- The target page will automatically get a seealso link back.
-@link[seealso >someotherid]
---]
-
-[--
- Think about whether external resources should be in the seealso
- list. These require a title.
-@link[seealso >>http://someurl]
- @title Link title
---]
-
-@desc Write a short page description here.
-
-@keywords comma-separated list, of keywords, for search
+{{INCLUDE info.ducktype.include}}
Provide as many paragraphs, lists, or media as necessary to explain.
diff --git a/templates/concept.page b/templates/concept.page
index 92fbbb8..16f56e4 100644
--- a/templates/concept.page
+++ b/templates/concept.page
@@ -1,46 +1,12 @@
<?yelp-tmpl-desc Explanation of a concept or background information?>
<page xmlns="http://projectmallard.org/1.0/"
type="topic" style="concept" version="1.1"
- id="@ID@">
+ id="{{ID}}">
<info>
- <!--
- Recommended statuses: stub incomplete draft outdated review candidate final
- Remove version attributes you don't use.
- -->
- <revision version="0.1" docversion="0.1" pkgversion="0.1" date="@DATE@" status="stub"/>
-
- <credit type="author copyright">
- <name>@NAME@</name>
- <email>@EMAIL@</email>
- <years>@YEAR@</years>
- </credit>
-
- <!--
- This puts a link to this topic on the index page.
- Change the xref to link it from another guide.
- -->
- <link type="guide" xref="index"/>
-
- <!--
- Think about whether other pages should be in the seealso list.
- The target page will automatically get a seealso link back.
- <link type="seealso" xref="someotherid"/>
- -->
-
- <!--
- Think about whether external resources should be in the seealso
- list. These require a title.
- <link type="seealso" href="http://someurl">
- <title>Link title</title>
- </link>
- -->
-
- <desc>Write a short page description here.</desc>
-
- <keywords>comma-separated list, of keywords, for search</keywords>
+{{INCLUDE info.mallard.include}}
</info>
- <title>@TITLE@</title>
+ <title>{{TITLE}}</title>
<p>Provide as many paragraphs, lists, or media as necessary to explain.</p>
diff --git a/templates/guide.duck b/templates/guide.duck
index 61cd746..a7d13ea 100644
--- a/templates/guide.duck
+++ b/templates/guide.duck
@@ -1,42 +1,10 @@
@ducktype/1.0
[-] yelp-tmpl-desc Navigational glue for Mallard documents
-= @TITLE@
+= {{TITLE}}
[guide version=1.1]
-[--
- Recommended statuses: stub incomplete draft outdated review candidate final
- Remove version attributes you don't use.
---]
-@revision[version=0.1 docversion=0.1 pkgversion=0.1 date=@DATE@ status=stub]
-
-@credit[author copyright]
- @name @NAME@
- @email @EMAIL@
- @years @YEAR@
-
-[--
- This puts a link to this topic on the index page.
- Change the xref to link it from another guide.
---]
-@link[guide >index]
-
-[--
- Think about whether other pages should be in the seealso list.
- The target page will automatically get a seealso link back.
-@link[seealso >someotherid]
---]
-
-[--
- Think about whether external resources should be in the seealso
- list. These require a title.
-@link[seealso >>http://someurl]
- @title Link title
---]
-
-@desc Write a short page description here.
-
-@keywords comma-separated list, of keywords, for search
+{{INCLUDE info.ducktype.include}}
Optionally, an introductory paragraph.
diff --git a/templates/guide.page b/templates/guide.page
index 894b276..90b8a7d 100644
--- a/templates/guide.page
+++ b/templates/guide.page
@@ -1,46 +1,12 @@
<?yelp-tmpl-desc Navigational glue for Mallard documents?>
<page xmlns="http://projectmallard.org/1.0/"
type="guide" version="1.1"
- id="@ID@">
+ id="{{ID}}">
<info>
- <!--
- Recommended statuses: stub incomplete draft outdated review candidate final
- Remove version attributes you don't use.
- -->
- <revision version="0.1" docversion="0.1" pkgversion="0.1" date="@DATE@" status="stub"/>
-
- <credit type="author copyright">
- <name>@NAME@</name>
- <email>@EMAIL@</email>
- <years>@YEAR@</years>
- </credit>
-
- <!--
- This puts a link to this topic on the index page.
- Change the xref to link it from another guide.
- -->
- <link type="guide" xref="index"/>
-
- <!--
- Think about whether other pages should be in the seealso list.
- The target page will automatically get a seealso link back.
- <link type="seealso" xref="someotherid"/>
- -->
-
- <!--
- Think about whether external resources should be in the seealso
- list. These require a title.
- <link type="seealso" href="http://someurl">
- <title>Link title</title>
- </link>
- -->
-
- <desc>Write a short page description here.</desc>
-
- <keywords>comma-separated list, of keywords, for search</keywords>
+{{INCLUDE info.mallard.include}}
</info>
- <title>@TITLE@</title>
+ <title>{{TITLE}}</title>
<p>Optionally, an introductory paragraph.</p>
diff --git a/templates/py/templates/info.ducktype.include b/templates/info.ducktype.include
index fdc6de1..fdc6de1 100644
--- a/templates/py/templates/info.ducktype.include
+++ b/templates/info.ducktype.include
diff --git a/templates/py/templates/info.mallard.include b/templates/info.mallard.include
index d3209d7..d3209d7 100644
--- a/templates/py/templates/info.mallard.include
+++ b/templates/info.mallard.include
diff --git a/templates/meson.build b/templates/meson.build
index fa55c73..fdb424b 100644
--- a/templates/meson.build
+++ b/templates/meson.build
@@ -6,7 +6,9 @@ yelp_tools_templates_data = [
'reference.duck',
'reference.page',
'task.duck',
- 'task.page'
+ 'task.page',
+ 'info.ducktype.include',
+ 'info.mallard.include'
]
install_data(
@@ -14,4 +16,4 @@ install_data(
install_dir: join_paths(
pkgtemplatesdir,
)
-) \ No newline at end of file
+)
diff --git a/templates/py/templates/concept.duck b/templates/py/templates/concept.duck
deleted file mode 100644
index 0e6dff4..0000000
--- a/templates/py/templates/concept.duck
+++ /dev/null
@@ -1,15 +0,0 @@
-@ducktype/1.0
-[-] yelp-tmpl-desc Explanation of a concept or background information
-
-= {{TITLE}}
- [topic .concept version=1.1]
-
-{{INCLUDE info.ducktype.include}}
-
-
-Provide as many paragraphs, lists, or media as necessary to explain.
-
-[list]
-. Next steps
-* Optionally, links to other things the user might do now.
-* But consider using seealso and other info links instead.
diff --git a/templates/py/templates/concept.page b/templates/py/templates/concept.page
deleted file mode 100644
index 16f56e4..0000000
--- a/templates/py/templates/concept.page
+++ /dev/null
@@ -1,18 +0,0 @@
-<?yelp-tmpl-desc Explanation of a concept or background information?>
-<page xmlns="http://projectmallard.org/1.0/"
- type="topic" style="concept" version="1.1"
- id="{{ID}}">
- <info>
-{{INCLUDE info.mallard.include}}
- </info>
-
- <title>{{TITLE}}</title>
-
- <p>Provide as many paragraphs, lists, or media as necessary to explain.</p>
-
- <list>
- <title>Next steps</title>
- <item><p>Optionally, links to other things the user might do now.</p></item>
- <item><p>But consider using seealso and other info links instead.</p></item>
- </list>
-</page>
diff --git a/templates/py/templates/guide.duck b/templates/py/templates/guide.duck
deleted file mode 100644
index a7d13ea..0000000
--- a/templates/py/templates/guide.duck
+++ /dev/null
@@ -1,17 +0,0 @@
-@ducktype/1.0
-[-] yelp-tmpl-desc Navigational glue for Mallard documents
-
-= {{TITLE}}
- [guide version=1.1]
-
-{{INCLUDE info.ducktype.include}}
-
-
-Optionally, an introductory paragraph.
-
-[--
- The links element is implicit, but you might want to add one
- explicitly if you want to do link grouping or styles.
-[links topic .STYLE groups="GROUPS"]
- . Optional title
---]
diff --git a/templates/py/templates/guide.page b/templates/py/templates/guide.page
deleted file mode 100644
index 90b8a7d..0000000
--- a/templates/py/templates/guide.page
+++ /dev/null
@@ -1,21 +0,0 @@
-<?yelp-tmpl-desc Navigational glue for Mallard documents?>
-<page xmlns="http://projectmallard.org/1.0/"
- type="guide" version="1.1"
- id="{{ID}}">
- <info>
-{{INCLUDE info.mallard.include}}
- </info>
-
- <title>{{TITLE}}</title>
-
- <p>Optionally, an introductory paragraph.</p>
-
- <!--
- The links element is implicit, but you might want to add one
- explicitly if you want to do link grouping or styles.
- <links type="topic" style="STYLE" groups="GROUPS">
- <title>Optional title</title>
- </links>
- -->
-
-</page>
diff --git a/templates/py/templates/reference.duck b/templates/py/templates/reference.duck
deleted file mode 100644
index 2d1a770..0000000
--- a/templates/py/templates/reference.duck
+++ /dev/null
@@ -1,58 +0,0 @@
-@ducktype/1.0
-[-] yelp-tmpl-desc Lists or tables of information for quick lookup
-
-= {{TITLE}}
- [topic .reference version=1.1]
-
-{{INCLUDE info.ducktype.include}}
-
-
-Optionally provide introductory text.
-Use terms lists, tables, and bullet lists for reference material.
-
-
-[terms]
-. Example terms list (title optional)
-
-- Term 1
-* Description
-
-- Term 2
-* Terms can have multiple paragraphs.
-
- [screen]
- Or any other block element.
-
-- Term 3.1
-- Term 3.2
-* Terms can also have multiple titles.
-
-
-[table]
-. Example table (title optional)
-
-[thead]
-[tr]
-- Column 1
-- Column 2
-
-[tbody]
-[tr]
-* Row 1, column 1
-* Row 1, column 2
-
-[tr]
-* Row 2, column 1
-* Row 2, column 2
-
-
-[list]
-. Example list (title optional)
-
-* Item 1
-
-* Item 2
- * Subitem 2.1
- * Subitem 2.2
-
-* Item 3
diff --git a/templates/py/templates/reference.page b/templates/py/templates/reference.page
deleted file mode 100644
index 3551452..0000000
--- a/templates/py/templates/reference.page
+++ /dev/null
@@ -1,65 +0,0 @@
-<?yelp-tmpl-desc Lists or tables of information for quick lookup?>
-<page xmlns="http://projectmallard.org/1.0/"
- type="topic" style="reference" version="1.1"
- id="{{ID}}">
- <info>
-{{INCLUDE info.mallard.include}}
- </info>
-
- <title>{{TITLE}}</title>
-
- <p>Optionally provide introductory text.
- Use terms lists, tables, and bullet lists for reference material.</p>
-
- <terms>
- <title>Example terms list (title optional)</title>
- <item>
- <title>Term 1</title>
- <para>Description</para>
- </item>
- <item>
- <title>Term 2</title>
- <p>Terms can have multiple paragraphs.</p>
- <screen>Or any other block element.</screen>
- </item>
- <item>
- <title>Term 3.1</title>
- <title>Term 3.2</title>
- <p>Terms can also have multiple titles.</p>
- </item>
- </terms>
-
- <table>
- <title>Example table (title optional)</title>
- <thead>
- <tr>
- <th>Column 1</th>
- <th>Column 2</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Row 1, column 1</td>
- <td>Row 1, column 2</td>
- </tr>
- <tr>
- <td>Row 2, column 1</td>
- <td>Row 2, column 2</td>
- </tr>
- </tbody>
- </table>
-
- <list>
- <title>Example list (title optional)</title>
- <item><p>Item 1</p></item>
- <item>
- <p>Item 2</p>
- <list>
- <item><p>Subitem 2.1</p></item>
- <item><p>Subitem 2.2</p></item>
- </list>
- </item>
- <item><p>Item 3</p></item>
- </list>
-
-</page>
diff --git a/templates/py/templates/task.duck b/templates/py/templates/task.duck
deleted file mode 100644
index aab510c..0000000
--- a/templates/py/templates/task.duck
+++ /dev/null
@@ -1,29 +0,0 @@
-@ducktype/1.0
-[-] yelp-tmpl-desc Description of how to accomplish a user task
-
-= {{TITLE}}
- [topic .task version=1.1]
-
-{{INCLUDE info.ducktype.include}}
-
-
-Short introductory text: Write a couple sentences about what the
-user is doing here, and why they might want to do it.
-
-[list]
-. Prerequisites
-* Optionally, list things the user needs to know or do first.
-* Use links to other pages whenever they make sense.
-
-[steps]
-. Optional title if different from page title or if prereqs present
-* First step...
-* Second step...
-* Third step...
-
-Optionally, write expected results if non-obvious.
-
-[list]
-. Next steps
-* Optionally, links to other things the user might do now.
-* But consider using seealso and other info links instead.
diff --git a/templates/py/templates/task.page b/templates/py/templates/task.page
deleted file mode 100644
index ba6da8b..0000000
--- a/templates/py/templates/task.page
+++ /dev/null
@@ -1,35 +0,0 @@
-<?yelp-tmpl-desc Description of how to accomplish a user task?>
-<page xmlns="http://projectmallard.org/1.0/"
- type="topic" style="task" version="1.1"
- id="{{ID}}">
- <info>
-{{INCLUDE info.mallard.include}}
- </info>
-
- <title>{{TITLE}}</title>
-
- <p>Short introductory text: Write a couple sentences about what the
- user is doing here, and why they might want to do it.</p>
-
- <list>
- <title>Prerequisites</title>
- <item><p>Optionally, list things the user needs to know or do first.</p></item>
- <item><p>Use links to other pages whenever they make sense.</p></item>
- </list>
-
- <steps>
- <title>Optional title if different from page title or if prereqs present</title>
- <item><p>First step...</p></item>
- <item><p>Second step...</p></item>
- <item><p>Third step...</p></item>
- </steps>
-
- <p>Optionally, write expected results if non-obvious.</p>
-
- <list>
- <title>Next steps</title>
- <item><p>Optionally, links to other things the user might do now.</p></item>
- <item><p>But consider using seealso and other info links instead.</p></item>
- </list>
-
-</page>
diff --git a/templates/reference.duck b/templates/reference.duck
index 0aae96b..2d1a770 100644
--- a/templates/reference.duck
+++ b/templates/reference.duck
@@ -1,42 +1,10 @@
@ducktype/1.0
[-] yelp-tmpl-desc Lists or tables of information for quick lookup
-= @TITLE@
+= {{TITLE}}
[topic .reference version=1.1]
-[--
- Recommended statuses: stub incomplete draft outdated review candidate final
- Remove version attributes you don't use.
---]
-@revision[version=0.1 docversion=0.1 pkgversion=0.1 date=@DATE@ status=stub]
-
-@credit[author copyright]
- @name @NAME@
- @email @EMAIL@
- @years @YEAR@
-
-[--
- This puts a link to this topic on the index page.
- Change the xref to link it from another guide.
---]
-@link[guide >index]
-
-[--
- Think about whether other pages should be in the seealso list.
- The target page will automatically get a seealso link back.
-@link[seealso >someotherid]
---]
-
-[--
- Think about whether external resources should be in the seealso
- list. These require a title.
-@link[seealso >>http://someurl]
- @title Link title
---]
-
-@desc Write a short page description here.
-
-@keywords comma-separated list, of keywords, for search
+{{INCLUDE info.ducktype.include}}
Optionally provide introductory text.
diff --git a/templates/reference.page b/templates/reference.page
index c7364ee..3551452 100644
--- a/templates/reference.page
+++ b/templates/reference.page
@@ -1,46 +1,12 @@
<?yelp-tmpl-desc Lists or tables of information for quick lookup?>
<page xmlns="http://projectmallard.org/1.0/"
type="topic" style="reference" version="1.1"
- id="@ID@">
+ id="{{ID}}">
<info>
- <!--
- Recommended statuses: stub incomplete draft outdated review candidate final
- Remove version attributes you don't use.
- -->
- <revision version="0.1" docversion="0.1" pkgversion="0.1" date="@DATE@" status="stub"/>
-
- <credit type="author copyright">
- <name>@NAME@</name>
- <email>@EMAIL@</email>
- <years>@YEAR@</years>
- </credit>
-
- <!--
- This puts a link to this topic on the index page.
- Change the xref to link it from another guide.
- -->
- <link type="guide" xref="index"/>
-
- <!--
- Think about whether other pages should be in the seealso list.
- The target page will automatically get a seealso link back.
- <link type="seealso" xref="someotherid"/>
- -->
-
- <!--
- Think about whether external resources should be in the seealso
- list. These require a title.
- <link type="seealso" href="http://someurl">
- <title>Link title</title>
- </link>
- -->
-
- <desc>Write a short page description here.</desc>
-
- <keywords>comma-separated list, of keywords, for search</keywords>
+{{INCLUDE info.mallard.include}}
</info>
- <title>@TITLE@</title>
+ <title>{{TITLE}}</title>
<p>Optionally provide introductory text.
Use terms lists, tables, and bullet lists for reference material.</p>
diff --git a/templates/task.duck b/templates/task.duck
index 75c8243..aab510c 100644
--- a/templates/task.duck
+++ b/templates/task.duck
@@ -1,42 +1,10 @@
@ducktype/1.0
[-] yelp-tmpl-desc Description of how to accomplish a user task
-= @TITLE@
+= {{TITLE}}
[topic .task version=1.1]
-[--
- Recommended statuses: stub incomplete draft outdated review candidate final
- Remove version attributes you don't use.
---]
-@revision[version=0.1 docversion=0.1 pkgversion=0.1 date=@DATE@ status=stub]
-
-@credit[author copyright]
- @name @NAME@
- @email @EMAIL@
- @years @YEAR@
-
-[--
- This puts a link to this topic on the index page.
- Change the xref to link it from another guide.
---]
-@link[guide >index]
-
-[--
- Think about whether other pages should be in the seealso list.
- The target page will automatically get a seealso link back.
-@link[seealso >someotherid]
---]
-
-[--
- Think about whether external resources should be in the seealso
- list. These require a title.
-@link[seealso >>http://someurl]
- @title Link title
---]
-
-@desc Write a short page description here.
-
-@keywords comma-separated list, of keywords, for search
+{{INCLUDE info.ducktype.include}}
Short introductory text: Write a couple sentences about what the
@@ -59,5 +27,3 @@ Optionally, write expected results if non-obvious.
. Next steps
* Optionally, links to other things the user might do now.
* But consider using seealso and other info links instead.
-
-
diff --git a/templates/task.page b/templates/task.page
index ba7be5f..ba6da8b 100644
--- a/templates/task.page
+++ b/templates/task.page
@@ -1,46 +1,12 @@
<?yelp-tmpl-desc Description of how to accomplish a user task?>
<page xmlns="http://projectmallard.org/1.0/"
type="topic" style="task" version="1.1"
- id="@ID@">
+ id="{{ID}}">
<info>
- <!--
- Recommended statuses: stub incomplete draft outdated review candidate final
- Remove version attributes you don't use.
- -->
- <revision version="0.1" docversion="0.1" pkgversion="0.1" date="@DATE@" status="stub"/>
-
- <credit type="author copyright">
- <name>@NAME@</name>
- <email>@EMAIL@</email>
- <years>@YEAR@</years>
- </credit>
-
- <!--
- This puts a link to this topic on the index page.
- Change the xref to link it from another guide.
- -->
- <link type="guide" xref="index"/>
-
- <!--
- Think about whether other pages should be in the seealso list.
- The target page will automatically get a seealso link back.
- <link type="seealso" xref="someotherid"/>
- -->
-
- <!--
- Think about whether external resources should be in the seealso
- list. These require a title.
- <link type="seealso" href="http://someurl">
- <title>Link title</title>
- </link>
- -->
-
- <desc>Write a short page description here.</desc>
-
- <keywords>comma-separated list, of keywords, for search</keywords>
+{{INCLUDE info.mallard.include}}
</info>
- <title>@TITLE@</title>
+ <title>{{TITLE}}</title>
<p>Short introductory text: Write a couple sentences about what the
user is doing here, and why they might want to do it.</p>