Linux Batch ASCIIDoctor generation of a bunch of ADOC's

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Linux Batch ASCIIDoctor generation of a bunch of ADOC's

GeekMustHave
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



Reply | Threaded
Open this post in threaded view
|

Re: Linux Batch ASCIIDoctor generation of a bunch of ADOC's

mojavelinux
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:
http://discuss.asciidoctor.org/Linux-Batch-ASCIIDoctor-generation-of-a-bunch-of-ADOC-s-tp3863.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen