Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Written some user documentation with snm itself
- Loading branch information
Showing
12 changed files
with
93 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
title: How to use snm | ||
unique: how | ||
number: 3 | ||
text: | ||
- "snm generates a manual from a number of yaml files, held in your documentation source directory. In the snm source distribution, this directory is called 'doc_src'." | ||
- "This source directory must contain a file called 'header.yaml'. The next sub-section deals with what you put in header.yaml, and what it means." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Note... note a header file for snm! | ||
title: header.yaml | ||
number: 1 | ||
unique: header | ||
text: | ||
- "The header file has 1 required field:" | ||
- text: "{indent}title: The title of the manual" | ||
class: example | ||
- "The header file has 4 optional fields:" | ||
- text: | ||
"{indent}copyright: The name of the person or people holding copyright over the document, and the year it was copyright.{line} | ||
{indent}license: The name of the license by which the document is being distributed{line} | ||
{indent}license_file: The file containing the license{line} | ||
{indent}preamble: Zero or more {section paragraphs paragraph}, which are not included in the manual's {section contents contents}." | ||
class: example | ||
- "For example, here is the header.yaml file for this document:" | ||
- text: | ||
"{indent}title: The Simple Nice-Looking Manual Generator{line} | ||
{indent}copyright: 'John Morrice 2010'{line} | ||
{indent}license: GNU Free Documentation License{line} | ||
{indent}license_file: 'DOC-COPYING'{line} | ||
{indent}preamble:{line} | ||
{indent}{indent}- 'The Simple Nice-Looking Manual Generator - aka snm - generates nice looking manuals from {external YAML http://www.yaml.org/} files.'{line} | ||
{indent}{indent}- 'Currently, it can produce XHTML and text manuals.'" | ||
class: example | ||
- "You can see how snm processes this by looking at the {literal <a href='#'>top</a>} of the document." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.banner {text-align: center;} | ||
.example {font-family: monospace; font-size: x-large;} | ||
body {font: arial; font-family: sans;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
title: What snm does and is | ||
unique: what | ||
number: 1 | ||
text: | ||
- "snm allows you to write clean, web-friendly reports without having to edit fickle html" | ||
- "snm allows you to structure your document in a modular fashion." | ||
- "snm is a generator of valid xhtml, as long as you don't kludge {section style.css style}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
title: What snm does not do and is not | ||
number: 2 | ||
unique: whatnot | ||
text: | ||
- "snm is not a man-page generator." | ||
- "snm is not a web-page creator" | ||
- "snm is not a gui based tool" | ||
- "snm is not an adult activity." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>The Simple Nice-Looking Manual Generator</title><style type="text/css">.banner {text-align: center;} | ||
.example {font-family: monospace; font-size: x-large;} | ||
body {font: arial; font-family: sans;} | ||
</style></head><body><h1 class="banner">The Simple Nice-Looking Manual Generator</h1><h2 class="banner">Copyright John Morrice 2010</h2><h2 class="banner">Distributed under terms of the GNU Free Documentation License.</h2><h2 class="banner">See the file <a href="DOC-COPYING">DOC-COPYING</a> for copying conditions.</h2><p class="">The Simple Nice-Looking Manual Generator - aka snm - generates nice looking manuals from <a href="http://www.yaml.org/">YAML</a> files. </p><p class="">Currently, it can produce XHTML and text manuals. </p><p><a href="#what">1 What snm does and is</a><br /><a href="#whatnot">2 What snm does not do and is not</a><br /><a href="#how">3 How to use snm</a><br /> <a href="#header">3.1 header.yaml</a><br /></p><h2><a name="what">1 What snm does and is</a></h2><p class="">snm allows you to write clean, web-friendly reports without having to edit fickle html </p><p class="">snm allows you to structure your document in a modular fashion. </p><p class="">snm is a generator of valid xhtml, as long as you don't kludge <a href="#style">style.css</a></p><h2><a name="whatnot">2 What snm does not do and is not</a></h2><p class="">snm is not a man-page generator. </p><p class="">snm is not a web-page creator </p><p class="">snm is not a gui based tool </p><p class="">snm is not an adult activity. </p><h2><a name="how">3 How to use snm</a></h2><p class="">snm generates a manual from a number of yaml files, held in your documentation source directory. In the snm source distribution, this directory is called 'doc_src'. </p><p class="">This source directory must contain a file called 'header.yaml'. The next sub-section deals with what you put in header.yaml, and what it means. </p><h2><a name="header">3.1 header.yaml</a></h2><p class="">The header file has 1 required field: </p><p class="example"> title: The title of the manual </p><p class="">The header file has 4 optional fields: </p><p class="example"> copyright: The name of the person or people holding copyright over the document, and the year it was copyright. <br /> license: The name of the license by which the document is being distributed <br /> license_file: The file containing the license <br /> preamble: Zero or more <a href="#paragraph">paragraphs</a>, which are not included in the manual's <a href="#contents">contents</a>. </p><p class="">For example, here is the header.yaml file for this document: </p><p class="example"> title: The Simple Nice-Looking Manual Generator <br /> copyright: 'John Morrice 2010' <br /> license: GNU Free Documentation License <br /> license_file: 'DOC-COPYING' <br /> preamble: <br /> - 'The Simple Nice-Looking Manual Generator - aka snm - generates nice looking manuals from <a href="http://www.yaml.org/">YAML</a> files.' <br /> - 'Currently, it can produce XHTML and text manuals.' </p><p class="">You can see how snm processes this by looking at the <a href='#'>top</a> of the document. </p></body></html> |