integrating documentation into demo files, first draft; run Ant targets docs-download and docs-process to generate the files

This commit is contained in:
Jörn Zaefferer 2009-01-08 21:57:49 +00:00
parent e9d2650278
commit ad6baf2444
2 changed files with 13 additions and 13 deletions

View File

@ -164,7 +164,7 @@
updateDemoNotes();
});
if (/default.html$/.test(path)) {
$.get("../documentation/" + path.match(/demos\/(.+)\//)[1] + ".html", function(html) {
$.get("../documentation/docs-" + path.match(/demos\/(.+)\//)[1] + ".html", function(html) {
$("#demo-notes").after(html);
$("#widget-docs").tabs();
$(".param-header").click(function() {

View File

@ -220,24 +220,24 @@
<target name="docs-download">
<property name="url" value="http://www.exfer.net/jquery/createjQueryXMLDocs.py?start=UI/" />
<get src="${url}Accordion" dest="accordion.xml" />
<get src="${url}Datepicker" dest="datepicker.xml" />
<get src="${url}Dialog" dest="dialog.xml" />
<get src="${url}Draggable" dest="draggable.xml" />
<get src="${url}Droppable" dest="droppable.xml" />
<get src="${url}Progressbar" dest="progressbar.xml" />
<get src="${url}Resizable" dest="resizable.xml" />
<get src="${url}Selectable" dest="selectable.xml" />
<get src="${url}Slider" dest="slider.xml" />
<get src="${url}Sortable" dest="sortable.xml" />
<get src="${url}Tabs" dest="tabs.xml" />
<get src="${url}Accordion" dest="docs-accordion.xml" />
<get src="${url}Datepicker" dest="docs-datepicker.xml" />
<get src="${url}Dialog" dest="docs-dialog.xml" />
<get src="${url}Draggable" dest="docs-draggable.xml" />
<get src="${url}Droppable" dest="docs-droppable.xml" />
<get src="${url}Progressbar" dest="docs-progressbar.xml" />
<get src="${url}Resizable" dest="docs-resizable.xml" />
<get src="${url}Selectable" dest="docs-selectable.xml" />
<get src="${url}Slider" dest="docs-slider.xml" />
<get src="${url}Sortable" dest="docs-sortable.xml" />
<get src="${url}Tabs" dest="docs-tabs.xml" />
</target>
<target name="docs-process" depends="docs-download">
<property name="docs.dir" value="${ui.dir}/documentation" />
<delete dir="${docs.dir}" />
<mkdir dir="${docs.dir}" />
<xslt includes="*.xml,accordion.xml" excludes="build.xml" destdir="${docs.dir}" style="build/style.xsl" />
<xslt includes="docs-*.xml" destdir="${docs.dir}" style="build/style.xsl" />
</target>
<target name="docs-clean">