|
|
|
|
Re: WikiText (textile) Markup Question [message #62227 is a reply to message #61960] |
Tue, 25 November 2008 22:08 |
David Green Messages: 136 Registered: July 2009 |
Senior Member |
|
|
Philip Quitslund wrote:
> Forgive me if this is the wrong forum for this but I haven't seen a more
> appropriate group. Please redirect if I've mis-fired!
This is the right place
> Anyway, I have a
> really simple textile markup question. I'm playing with it as a source
> for my HTML files and am puzzling over how to set a document's title
> (changing the document name is not an ideal option).
As far as I am aware, none of the markup languages supported by WikiText
have syntax for setting the document title. (Textile, MediaWiki,
Confluence, TracWiki and TWiki)
>
> Inserting this at the beginning of the file:
>
> <title>Version History</title>
>
> "works" (sort of), in the sense that it renders correctly (FireFox
> anyway) but the generated markup is not quite right. As you'd expect,
> the title is injected into the body and not into the head:
>
> <head></head>
> <body>
> <p><title>Version History</title></p>
That's a side-effect of lenient browsers, and this is not really
best-practice (as you noticed)
>
> So... Is there a more proper way to do this? Is this something I need
> to do in the build phase (e.g., like the <stylesheet> entries in the
> online ant example)? If so, do you have any concrete examples?
>
The way to do this is via the Ant task. You can specify the title as an
attribute as follows:
<wikitext-to-html markupLanguage="Textile" title="My Title"
file="docs/my-file.textile">
<stylesheet url="docs/styles/main.css"/>
</wikitext-to-html>
I hope that helps.
|
|
|
|
|
|
|
Re: WikiText (textile) Markup Question [message #595005 is a reply to message #61960] |
Tue, 25 November 2008 22:08 |
David Green Messages: 96 Registered: July 2009 |
Member |
|
|
Philip Quitslund wrote:
> Forgive me if this is the wrong forum for this but I haven't seen a more
> appropriate group. Please redirect if I've mis-fired!
This is the right place
> Anyway, I have a
> really simple textile markup question. I'm playing with it as a source
> for my HTML files and am puzzling over how to set a document's title
> (changing the document name is not an ideal option).
As far as I am aware, none of the markup languages supported by WikiText
have syntax for setting the document title. (Textile, MediaWiki,
Confluence, TracWiki and TWiki)
>
> Inserting this at the beginning of the file:
>
> <title>Version History</title>
>
> "works" (sort of), in the sense that it renders correctly (FireFox
> anyway) but the generated markup is not quite right. As you'd expect,
> the title is injected into the body and not into the head:
>
> <head></head>
> <body>
> <p><title>Version History</title></p>
That's a side-effect of lenient browsers, and this is not really
best-practice (as you noticed)
>
> So... Is there a more proper way to do this? Is this something I need
> to do in the build phase (e.g., like the <stylesheet> entries in the
> online ant example)? If so, do you have any concrete examples?
>
The way to do this is via the Ant task. You can specify the title as an
attribute as follows:
<wikitext-to-html markupLanguage="Textile" title="My Title"
file="docs/my-file.textile">
<stylesheet url="docs/styles/main.css"/>
</wikitext-to-html>
I hope that helps.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03495 seconds