Stuart Rackham <[email protected]> writes: > Phillip Lord wrote: > [...] >> While I am on a roll with mercurial, I've attached another patch; we >> discussed this a while back, getting blogpost to read both categories >> and status from file. > > Thanks for the patch. I haven't forgotten the orginal discussion > http://groups.google.com/group/asciidoc/browse_frm/thread/36ff073c79cbc20a/bc18d5604f2ec4f5 > though it probably seemed like it, it was quite a long time ago.
Don't worry, I don't want to sound like a nag, I just thought that a patch would make the process easier. Also, if I am practical, I'm effectively running on a fork of the mercurial version now; versioning makes this possible, but I still run the risk of getting conflicts. > > I've been trying to get my head around it again. Just to summarise (correct me > if I'm wrong): > > - The --read-categories option is an alternative to the > --categories=CATEGORIES option, it allows categories to be specified in the > AsciiDoc source file. > > - The --read-status option is an alternative to the --publish and --unpublish > options, it allows the publication status be specified in the AsciiDoc source > file. > > Both options throw an error if the AsciiDoc source does not have the requested > attribute. Yep, that's it. In my case, I pretty much always use blogpost with the "post" command, then let attributes sort everything else out. For me, this works superbly. I'd love to be able to add a "--read-tags" option as well, which does the same as the read-categories, but as far as I can tell none of the XML-RPC interfaces support it. Pity. I can work around all of this, of course; I could write a driver script that calls blogpost appropriately, but I though others would like the functionality. Phil -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
