Skip to content

Commit

Permalink
Run article_list_all.xsl as part of makeInternalPreview
Browse files Browse the repository at this point in the history
  • Loading branch information
amclark42 committed Jul 2, 2024
1 parent df35610 commit f1eb4f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,21 @@ To proof only the internal preview, hit the return key or type "false".</input>
<ant unless:true="${do.proofing.full}"
antfile="${toDir.base.path}${file.separator}article-map.xml"
target="copyArticleResources" inheritRefs="true"/>
<!-- Generate the sorted article lists hosted alongside `editorial/index.html`. -->
<echo>Generating list of DHQ articles from TOC</echo>
<xslt in="toc${file.separator}toc.xml"
out="${toDir.base.path}${file.separator}article-list.xml"
style="common${file.separator}xslt${file.separator}article_list_all.xsl"
classpath="${processor.location}"
force="true"
failonerror="false">
<factory name="${processor.name}"/>
<param name="context" expression="${context}"/>
<param name="proofing-dir" expression="${toDir.use}"/>
</xslt>
<!-- Remove the file "article-list.xml" created from the last transformation. It
will be empty; the XSLT produces no direct output. -->
<delete file="${toDir.base.path}${file.separator}article-list.xml"/>
<!-- If we're generating a proofing copy of the entire site, run "generateSite". -->
<antcall if:true="${do.proofing.full}" target="generateSite"/>
</target>
Expand Down
2 changes: 1 addition & 1 deletion common/xslt/article_list_all.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@


<!--
TEMPLATES, #default mode
TEMPLATES
-->

<xsl:template match="/toc">
Expand Down

0 comments on commit f1eb4f0

Please sign in to comment.