Linux Batch ASCIIDoctor generation of a bunch of ADOC's
I am considering creating a process where
1. On a scheduled basis I would read a single directory with a bunch of ADOC files in it.
2. I would generate a matching *.HTML file for each ADOC file into a different directory
3. I would generate a matching *.PDF file for each ADOC file into another differnt directory.
I understand this will need to be written in Ruby using the ASCIIDoctor.JS which I can contract out.
I'm assuming that a CRON job could be the scheduler and the launcher for this Ruby utility.
Questions
1. Is this all fesible or am I really crazy like folks claim? ;-)
2. Any suggestions where I can find someone to write this form me?
Re: Linux Batch ASCIIDoctor generation of a bunch of ADOC's
Administrator
The Asciidoctor command supports the glob operator, so you can run:
$ asciidoctor -D output_directory *.adoc
$ asciidoctor-pdf -D output_directory *.adoc
Cheers,
-Dan
On Fri, Oct 16, 2015 at 11:10 AM, GeekMustHave [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I am considering creating a process where
1. On a scheduled basis I would read a single directory with a bunch of ADOC files in it.
2. I would generate a matching *.HTML file for each ADOC file into a different directory
3. I would generate a matching *.PDF file for each ADOC file into another differnt directory.
I understand this will need to be written in Ruby using the ASCIIDoctor.JS which I can contract out.
I'm assuming that a CRON job could be the scheduler and the launcher for this Ruby utility.
Questions
1. Is this all fesible or am I really crazy like folks claim? ;-)
2. Any suggestions where I can find someone to write this form me?
Thanks
If you reply to this email, your message will be added to the discussion below: