I am trying to get this to work, but don't know what was missing in the process. I was following the instruction here: http://idratherbewriting.com/md2html2ditav2/ to automate conversion of Markdown files to HTML and ultimately to DITA, and I had written a script based on the tutorial in the URL, here is the script (I named it "ditaqrg.sh"):
Code: Select all
multimarkdown -f -b *.md
cd /Applications/oxygenAuthor/frameworks/dita/DITA-OT/plugins/h2d ant -Dargs.input=/Users/%user_name%/projects/ditaqrg -Dargs.output=/Users/%user_name%/projects/ditaqrg
As you can see, this script points to the Oxygen installation directory and to the h2d subdirectory. Supposedly if your script points to the h2d subdirectory, Oxygen should automatically fire up the ant script to process the conversion of html files to DITA, but unfortunately, the process stopped after I ran ./ditaqrg.sh in the Terminal screen. Although an HTML file was successfully produced, yet the script failed to further generate a DITA file from the HTML. I know I could just simply copy contents from the HTML to Oxygen's editor screen, but I would very much love this process to be automatic, given that I have quite a few Markdown files that I want to batch-process all at once.
Could you point out the error in the script? Or is there something I missed in the process? Thanks.