SID-00190: Direct Creation of TWiki Pages from a script
I am able to create a script that can create text files formatted in TWiki markup language.
To establish the pages under a Web is it just a simple matter of copying the files into the web directory? I'm thinking that I might also need to issue an rcs command for each file from the command line to complete the establishment? If so what would that rcs command be?
The reason I want to do this is I find that I can turn rather MS Word into about 250 nice twiki topics and I'm assuming that the approach I am proposing would be a good way to get the topics onto the twiki. This would really help me to get twiki under way as a documentation repository.
Hope you can advise.
--
TWikiGuest - 14 Mar 2009
Discussion and Answer
>
To establish the pages under a Web is it just a simple matter of copying the files into the web directory?
Yes, but you need a couple of lines of meta data. E.g., take a look at the raw version of this topic:
https://www.twiki.org/cgi-bin/view/Support/SID-00190?raw=debug
--
SeanCMorgan - 15 Mar 2009
TWiki is designed to be robust, you do not need to generate the meta data, such as
%META:INFO. You also do not need to create a
.txt,v RCS file. The first time someone updates a page, the history file will be created. The original version is preserved as rev 1, and a new rev 2 is create. You can generate form meta data if needed.
If you want to create the
RCS files use the official API to post content over http. More at
TWikiScripts (save),
WwwMechanize,
CurlTool,
CPAN:LWP
.
If you created a useful M$-Word to TWiki converter please consider contributing it back to the TWiki community. You cold create a MsWordToTWikiAddOn at
AddOnPackageHowTo.
--
PeterThoeny - 15 Mar 2009
There is
MsWordToTWikiMLAddOn, but I'm reluctant to mention it: even though I've done a few revisions on it, it still has a long way to go.
--
SeanCMorgan - 16 Mar 2009
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.