Vale DITA-OT plugin — how to see the output in stdout? #4484
-
Hello there! I'm trying to build a DITA-OT plugin for Vale. I'm quite new to Ant and DITA-OT plugins, so forgive me beforehand. This is my plugin.xml file: <?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://www.dita-ot.org/rng/plugin.rnc" type="application/relax-ng-compact-syntax"?>
<plugin id="org.splunk.vale.check" version="1.0">
<feature extension="package.support.name" value="Fabrizio Ferri Benedetti"/>
<feature extension="package.support.email" value="[email protected]"/>
<feature extension="package.version" value="1.0"/>
<transtype name="vale" desc="Check against style guide"/>
<feature extension="ant.import" file="vale.xml"/>
</plugin> And this is the vale.xml file: <?xml version='1.0' encoding='UTF-8'?>
<project name="dita2vale" default="vale-check" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<target name="dita2vale">
<exec executable="vale">
<arg value="> output.log" />
</exec>
</target>
</project> The plugin installs with no error, but doesn't show any output to stdout ( I'm open to suggestions. Thanks in advance for your patience. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Could you paste the command line that you are running to test the plugin? Have you tried adding the "-v" flag? |
Beta Was this translation helpful? Give feedback.
-
👋 Hi Fabrizio, glad to see you're exploring this, could be very useful to the community. A few years ago, we considered running Vale on the DITA-OT docs, and I opened a pull request to test it: dita-ot/docs#284. IIRC, it had to do with performance issues that were related to the way Vale parsed DITA content at the time. I think back then, Vale would run the toolkit process on each DITA file, convert it to HTML, and run its checks on that. But that was a long time ago, and both Vale and DITA-OT have changed since, so it may work differently now. Anyhow, not sure how relevant that old PR will be for your efforts here, but thought I should mention it in case there's anything there that's useful to you. |
Beta Was this translation helpful? Give feedback.
I solved this by doing this:
Now I only have to figure out how to pass each DITA file preprocessing path to Vale... :)