DeepBlueCLtd / LegacyMan

Legacy content for Field Service Manual
https://deepbluecltd.github.io/LegacyMan/index.html
Apache License 2.0
2 stars 0 forks source link

The system cannot find the file specified error when running DITA-OT #441

Closed robintw closed 1 year ago

robintw commented 1 year ago

When running DITA-OT on site, the following error was raised:

The system cannot find the file specified

Can you check what happens if you replace the dita entry in the list below with dita.exe or dita.bat?

This is in this list, on line 764 of parser.py:

dita_command = [
            "dita",
            "-i",
            "./target/dita/index.ditamap",
            "-f",
            "html5",
            "-o",
            "./target/html",
        ]
IanMayo commented 1 year ago

Yes, dita.bat works on the target network. I'll manually fix the name on each new release.

robintw commented 1 year ago

I can easily do a simple if statement to change the name when we're on Windows - shall I do that?

IanMayo commented 1 year ago

yes please :-D

robintw commented 1 year ago

Fixed in #440. Haven't tested on Windows - but it should work - let me know how it goes.