[Trac] How to display HTML files form the SVN repository in trac?
Christian Boos
cboos at neuf.fr
Mon Jul 24 09:05:10 CDT 2006
Thomas Sturm wrote:
> Christian Boos wrote:
>
>> Hello,
>>
>> Thomas Sturm wrote:
>>
>>> ...
>>> What can I do in the wiki, with wiki syntax, to get real rendered
>>> HTML documentation and not the HTML source?
>>>
>> You have to explicitely request the "raw" format of the file.
>> For now, you have to use relative links, e.g.
>> [/YourTracEnv/browser/trunk/test.html?format=raw test.html]
>>
>
> The ugly detail: if I follow the links inside the document, the
> links don't have the '?format=raw' and the new target will be
> displayed in HTML source again.
>
I see.
One approach would be to encode the format elsewhere, e.g.
[raw-source:trunk/test.html test.html], which would translate to the URL
/YourTracEnv/raw-source/trunk/test.html
The request dispatcher of the browser module could be adapted to
extract the format argument from there.
-- Christian
More information about the Trac
mailing list