On Jul 3, 2:04 pm, Rickard Lindberg <ricl...@gmail.com> wrote:
> What I would like to do is to pull a wiki page down using wget, for example
>
> wgethttp://.../wiki/Page?format=txt-O Page
>
> and then convert it to HTML, for example
>
> wikitohtml Page Page.html
You can't really do that, as the HTML needs to render in the context
of the project - if not then links will not be completed, and macros
will not run in context.
I'd suggest you look at http://trac-hacks.org/wiki/XmlRpcPlugin
With recently added JSON-RPC interface this is quite simple:
user: ~ > cat body.json
{"params": ["WikiStart"], "method": "wiki.getPageHTML", "id": 123}
user: ~ > curl -H "Content-Type: application/json" --data @body.json
http://host/project/jsonrpc
{"id": 123, "error": null, "result": "<the page as markup>"}
:::simon
https://www.coderesort.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---