-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DITA-OT 4.2 compatibility #165
Comments
This isn't an issue with the <target name="extend.css.copy">
<fail/>
</target> If you run this on 4.1.2 then the build fails since <feature extension="depend.preprocess.copy-html.pre" value="extend.css"/> If you run this on the 4.2 branch then the build runs to completion because Unfortunately |
My investigation leads to the idea that the preprocess2 ANT is missing the extension hooks: Compare <target name="copy-html"
dita:depends="{depend.preprocess.copy-html.pre}"
dita:extension="depends org.dita.dost.platform.InsertDependsAction"
unless="preprocess.copy-html.skip"
description="Copy html files">
<condition property="copy-html.todir" value="${_dita.map.output.dir}/${uplevels}" else="${dita.output.dir}">
<equals arg1="${generate.copy.outer}" arg2="1"/>
</condition>
<copy todir="${copy-html.todir}" failonerror="false" overwrite="true">
<ditafileset>
<excludes format="dita"/>
<excludes format="ditamap"/>
<excludes format="ditaval"/>
<excludes format="image"/>
<excludes format="coderef"/>
</ditafileset>
<jobmapper/>
</copy>
</target> And <target name="copy-html2"
unless="preprocess.copy-html.skip"
description="Copy html files">
<copy todir="${dita.output.dir}" failonerror="false" overwrite="true">
<ditafileset>
<excludes format="dita"/>
<excludes format="ditamap"/>
<excludes format="ditaval"/>
<excludes format="image"/>
<excludes format="coderef"/>
</ditafileset>
<jobmapper/>
</copy>
</target> |
Adding the lines: <target name="copy-html2"
unless="preprocess.copy-html.skip"
+ dita:depends="{depend.preprocess.copy-html.pre}"
+ dita:extension="depends org.dita.dost.platform.InsertDependsAction"
description="Copy html files"> And reinstalling the plugins fixes the issue on the 4.2. branch. |
That's right: In DITA-OT 4.2, the HTML5 transformation uses map-first preprocessing, which no longer provides access to the legacy pre-processing extensions like Could the
We can't change the core toolkit code to make this work. |
Related to #165 --------- Signed-off-by: Roger Sheen <[email protected]> Co-authored-by: Roger Sheen <[email protected]>
You'll need to reinstall plugins now that dita-ot/registry#150 has landed. |
Tagged the 5.3.4 release and submitted dita-ot/registry#151. |
When testing #163 & #164 with the current state of the DITA-OT
release/4.2
branch (dita-ot/dita-ot@2a2c3f2), the nav ToC sidebarbs-sidebar
appears above the page content at desktop breakpoints, rather than in the left column as intended.The same code in these PRs works fine when built from the DITA-OT
master
branch (v4.1.2).Not sure yet if this is a bug in the current state of the DITA-OT release branch, or whether recent changes have rendered the custom XSL code in the DITA Bootstrap plug-in incompatible with the upcoming DITA-OT 4.2 release.
Can't debug further right now, so filing this as a reminder that it's something we'll need to investigate before we package up the new plug-in versions.
The text was updated successfully, but these errors were encountered: