|
44 | 44 | <delete file="${inputdir.techniques}/technique-associations.xml" failonerror="false"/> |
45 | 45 | <delete file="output.html" failonerror="false"/> |
46 | 46 | <delete dir="output" failonerror="false"/> |
| 47 | + <delete dir="input" failonerror="false"/> |
47 | 48 | </target> |
48 | 49 |
|
49 | 50 | <target name="flatten" depends="init" description="Build a copy of guidelines with all data-include files incorporated"> |
|
181 | 182 | </target> |
182 | 183 |
|
183 | 184 | <!-- Understanding --> |
184 | | - <target name="understanding" depends="guidelines-xml, techniques-list, understanding-index" description="Generate formatted Understanding docs"> |
185 | | - <makeurl file="${basedir}/understanding/" property="base.understanding"/> |
| 185 | + <target name="understanding" depends="guidelines-xml, techniques-list, understanding-index, understanding-flatten" description="Generate formatted Understanding docs"> |
| 186 | + <makeurl file="${basedir}/input/understanding/" property="input.understanding"/> |
186 | 187 | <mkdir dir="${basedir}/output/understanding/"/> |
187 | 188 | <local name="output.dir"/> |
188 | 189 | <makeurl file="${basedir}/output/understanding/" property="output.dir"/> |
189 | 190 | <echo message="Outputting Understanding to ${output.dir}"/> |
190 | 191 | <xslt in="${inputdir.guidelines}/wcag.xml" out="output.html" style="xslt/generate-understanding.xslt" force="true"> |
191 | 192 | <classpath path="${classpath.saxon}"/> |
192 | 193 | <factory name="${xslt.factory}"/> |
193 | | - <param name="base.dir" expression="${base.understanding}"/> |
| 194 | + <param name="base.dir" expression="${input.understanding}"/> |
194 | 195 | <param name="output.dir" expression="${output.dir}"/> |
195 | 196 | <param name="loc.guidelines" expression="https://www.w3.org/TR/WCAG21/" if="publication"/> |
196 | 197 | <param name="loc.understanding" expression="https://www.w3.org/WAI/WCAG21/Understanding/" if="publication"/> |
|
229 | 230 | </xslt> |
230 | 231 | </target> |
231 | 232 |
|
| 233 | + <target name="understanding-flatten" depends="guidelines-xml" description="Generate temp files for Understanding with includes included"> |
| 234 | + <makeurl file="${basedir}/understanding/" property="base.understanding"/> |
| 235 | + <mkdir dir="${basedir}/input/understanding/"/> |
| 236 | + <local name="output.dir"/> |
| 237 | + <makeurl file="${basedir}/input/understanding/" property="output.dir"/> |
| 238 | + <xslt in="${inputdir.guidelines}/wcag.xml" out="output.html" style="xslt/flatten-understanding.xslt" force="true"> |
| 239 | + <classpath path="${classpath.saxon}"/> |
| 240 | + <factory name="${xslt.factory}"/> |
| 241 | + <param name="base.dir" expression="${base.understanding}"/> |
| 242 | + <param name="output.dir" expression="${output.dir}"/> |
| 243 | + </xslt> |
| 244 | + |
| 245 | + </target> |
| 246 | + |
232 | 247 | <!-- Publish --> |
233 | 248 | <target name="deploy" depends="init, understanding-toc, techniques-toc" description="Generate content ready to deploy to gh-pages"> |
234 | 249 | <property name="editors" value="true"/> |
|
0 commit comments