
oddsimons at gmail
Jul 3, 2009, 10:15 AM
Post #3 of 5
(286 views)
Permalink
|
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 [at] googlegroups To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
|