-
Notifications
You must be signed in to change notification settings - Fork 5
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
Set up static site generator for DHQ #40
Comments
The new stylesheet In order for Ant to make use of file mapping, the XSLT must generate a new Ant build file, structured like this: <project name="dhq_articles">
<target name="copyArticleResources">
<copy todir="${toDir.path}">
<fileset dir="${basedir}${file.separator}articles"/>
<firstmatchmapper>
<regexpmapper from="^000654/(.*)$" to="vol/17/1/000654/\1" handledirsep="true"/>
<regexpmapper from="^000116/(.*)$" to="vol/7/2/000116/\1" handledirsep="true"/>
</firstmatchmapper>
</copy>
</target>
</project> Once the derived build file is available, the main build file can run the task to copy article resources into their static directories: <ant antfile="..${file.separator}${toDir}${file.separator}article-mapper.xml"
target="copyArticleResources" inheritRefs="true"/> |
The Ant build file in the
The default target is To run an Ant target, use this command:
Because this command provides the value of |
Some guidance on testing static site generation:
For Windows testing, be especially attentive to file structure and paths. Are As you’re going through this, think about maintainability and quality-of-life. Could anything be made more transparent, or easier? Are there additional preventative measures that could be taken to head off errors or mistakes? |
Replace Apache Cocoon's dynamic transformations with static web pages and resources, compiled though an Apache Ant build file. For additional context, see the DHQ infrastructure meeting notes and the specification document.
Tasks:
We still need to decide what to do with the editorial section (which requires authentication) and redirected URLs.
The text was updated successfully, but these errors were encountered: