Bil Kleb wrote:
Jamis Buck wrote:
1) Create a YAML document that contains your manual metadata, as well as the content of your manual in textile format. (A few gotchas to be avoided there, if you decide to go that route--just let me know.)
I am considering this route, please expand.
Mostly, the gotchas have to do with some subtle interactions between YAML and Textile. For example, in strings, YAML will join lines, unless there are two newlines between them. Thus, when authoring your document, you have to add one more line than usual between paragraphs, or list elements, etc. For example:
key: >
This will all be
joined in one line.
This will be part of the above paragraph, separated
by a line break (<br>).
This is a new paragraph.
* This is a list element.
* This is another element in the same list.
It makes for a lot of whitespace (as you may have noticed, if you've looked at the sources for Copland's manual.)
This also means that if you are using the little style-hint elements for block elements (like tables and so forth), you need to put _two_ newlines after them:
key: >
Here is a table:
table(list).
>column 1a|column 1b|column 1c|
>column 2a|column 2b|column 2c|
5) Run the ruby script to convert your YAML document into HTML.
Does anyone have a script that would convert to something that could
produce a nice hardcopy? For example, LaTeX.
I seem to recall _why saying that he's got RedCloth converting some Textile strings to LaTeX. Don't know how far that's gone. (Seems like he's got so many projects on his plate, I'm surprised he gets anything done.)
- Jamis
···
--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis