DeepBlueCLtd / Fi3ldMan

Field Service Manual with advanced data exploitation
https://deepbluecltd.github.io/Fi3ldMan/
Apache License 2.0
1 stars 1 forks source link

Specify CSS styles in DITA-OT publish step #97

Closed IanMayo closed 1 year ago

IanMayo commented 1 year ago

We have CSS styling in our Oxygen export template.

But, it would also be useful to see this styling in our html5 publishing step.

This appears to be the procedure: https://www.dita-ot.org/dev/topics/html-customization-css

The output from this task will be the command-line instruction necessary to:

Note: this is our current DITA publish command: image

dita -i target/dita/index.ditamap -f html5 -o target/html

brahnavank commented 1 year ago

dita -i FieldMan.ditamap -f html5 -o output_dir -v -Dargs.copycss=yes -Dargs.css=oxygen.css -Dargs.cssroot=/Fi3ldMan/dita/resource/ -Dargs.csspath=css/

url

IanMayo commented 1 year ago

Ok, this is the command that worked for me:

dita -i target/dita/index.ditamap -f html5 -o target/html -Dargs.copycss=yes -Dargs.css=oxygen.css -Dargs.cssroot=/Users/me/git/LegacyMan/template/F13ldMan

Note that the cssroot expects an absolute path. So, I think we have to modify that path in python - so we can't put it into a properties file (which we're trying in #98).

Aah, here is is with a command to include the PWD:

dita -i target/dita/index.ditamap -f html5 -o target/html -Dargs.copycss=yes -Dargs.css=oxygen.css -Dargs.cssroot=$(pwd)/template/F13ldMan

IanMayo commented 1 year ago

Fixed in #98