diff --git a/pom.xml b/pom.xml index 9998084..4743dab 100644 --- a/pom.xml +++ b/pom.xml @@ -432,15 +432,15 @@ - generate-xhtml + generate-html build - xhtml - com.rackspace.cloud.api.docs.HTMLMojo + html + com.rackspace.cloud.api.docs.ApiRefMojo ${excluded.properties},root.filename,base.dir diff --git a/src/main/java/com/rackspace/cloud/api/docs/ApiRefMojo.java b/src/main/java/com/rackspace/cloud/api/docs/ApiRefMojo.java new file mode 100644 index 0000000..91c8707 --- /dev/null +++ b/src/main/java/com/rackspace/cloud/api/docs/ApiRefMojo.java @@ -0,0 +1,26 @@ +package com.rackspace.cloud.api.docs; + +import com.agilejava.docbkx.maven.AbstractHtmlMojo; +import com.agilejava.docbkx.maven.PreprocessingFilter; +import com.agilejava.docbkx.maven.TransformerBuilder; +import org.apache.maven.plugin.MojoExecutionException; +import java.io.File; +import javax.xml.transform.stream.StreamSource; +import javax.xml.transform.Source; + +public abstract class ApiRefMojo extends AbstractHtmlMojo { + + protected String getNonDefaultStylesheetLocation() { + return "cloud/apipage/apipage.xsl"; + } + + @Override + protected Source createSource(String inputFilename, File sourceFile, PreprocessingFilter filter) + throws MojoExecutionException { + + String pathToPipelineFile = "classpath:/wadl2html.xpl"; //use "classpath:/path" for this to work + Source source = super.createSource(inputFilename, sourceFile, filter); + + return CalabashHelper.createSource(source, pathToPipelineFile); + } +} diff --git a/src/main/java/com/rackspace/cloud/api/docs/HTMLMojo.java b/src/main/java/com/rackspace/cloud/api/docs/HTMLMojo.java index 2c58dc9..2888278 100644 --- a/src/main/java/com/rackspace/cloud/api/docs/HTMLMojo.java +++ b/src/main/java/com/rackspace/cloud/api/docs/HTMLMojo.java @@ -1,6 +1,26 @@ package com.rackspace.cloud.api.docs; import com.agilejava.docbkx.maven.AbstractHtmlMojo; +import com.agilejava.docbkx.maven.PreprocessingFilter; +import com.agilejava.docbkx.maven.TransformerBuilder; +import org.apache.maven.plugin.MojoExecutionException; +import java.io.File; +import javax.xml.transform.stream.StreamSource; +import javax.xml.transform.Source; public abstract class HTMLMojo extends AbstractHtmlMojo { + + protected String getNonDefaultStylesheetLocation() { + return "cloud/apipage/apipage.xsl"; + } + + @Override + protected Source createSource(String inputFilename, File sourceFile, PreprocessingFilter filter) + throws MojoExecutionException { + + String pathToPipelineFile = "classpath:/wadl2html.xpl"; //use "classpath:/path" for this to work + Source source = super.createSource(inputFilename, sourceFile, filter); + + return CalabashHelper.createSource(source, pathToPipelineFile); + } } diff --git a/src/main/resources/cloud/apipage/apipage.xsl b/src/main/resources/cloud/apipage/apipage.xsl new file mode 100644 index 0000000..d307497 --- /dev/null +++ b/src/main/resources/cloud/apipage/apipage.xsl @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/programlisting-keep-together.xpl b/src/main/resources/programlisting-keep-together.xpl new file mode 100644 index 0000000..a226ff2 --- /dev/null +++ b/src/main/resources/programlisting-keep-together.xpl @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !!! In programlisting-keep-together-xslt !!! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + + + + + + + + + + 8 + + + + + + keep-together + linefeeds: + + + + + + + + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + <?rax fail?> found in the document. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/rackspace-library.xpl b/src/main/resources/rackspace-library.xpl new file mode 100644 index 0000000..3784dee --- /dev/null +++ b/src/main/resources/rackspace-library.xpl @@ -0,0 +1,254 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + no + + + + @@@@@@@@@@@@@@@@@@@@@@ + !!!VALIDATION ERROR!!! + !!!!!!!!!!!!!!!!!!!!!! + + !!!!!!!!!!!!!!!!!!!!!! + !!!VALIDATION ERROR!!! + @@@@@@@@@@@@@@@@@@@@@@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + keep-together + linefeeds: + + + + + + + + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + <?rax fail?> found in the document. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + shortdesc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/test.xpl b/src/main/resources/test.xpl index ccfb4bf..8825261 100644 --- a/src/main/resources/test.xpl +++ b/src/main/resources/test.xpl @@ -11,7 +11,7 @@ - + - + @@ -85,7 +85,7 @@ - + @@ -149,11 +149,52 @@ + + + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + <?rax fail?> found in the document. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + + + - + + + + + + + + + + + + + + + + + + + + + + + !!!!!!!!!!!!!!!!!!!!!!!!!!!!! + THIS WORKS!!!!!!!!!!!!!!!!!!! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!! + + + + + + + diff --git a/src/main/resources/validate-transform.xpl b/src/main/resources/validate-transform.xpl new file mode 100644 index 0000000..ead81e0 --- /dev/null +++ b/src/main/resources/validate-transform.xpl @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + no + + + + @@@@@@@@@@@@@@@@@@@@@@ + !!!VALIDATION ERROR!!! + !!!!!!!!!!!!!!!!!!!!!! + + !!!!!!!!!!!!!!!!!!!!!! + !!!VALIDATION ERROR!!! + @@@@@@@@@@@@@@@@@@@@@@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/wadl2html.xpl b/src/main/resources/wadl2html.xpl new file mode 100644 index 0000000..f83acfe --- /dev/null +++ b/src/main/resources/wadl2html.xpl @@ -0,0 +1,491 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ERROR: + compute.wadl.path.from.docbook.path=1 not yet + supported + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + processADetailBtn(theText,'_btn_section START','_btn_section END',''); + processSelection(theText,'_req_xml_selection START','_req_xml_selection END','generate_token','_req_xml'); + processSelection(theText,'_resp_xml_selection START','_resp_xml_selection END','generate_token','_resp_xml'); + + + + + $("#.hide(); + $("#_select").val("xml"); + + + + + if(selectorId=='_select'){ + else if(optoinId=='xml'){ + $("#_json").hide(); + $("#_xml").show(); + }else{ + $("#_xml").hide(); + $("#_json").show(); + } + } + + + + + + + OpenStack API Documentation + + + + + + + + + +
+
+
+ +
+
+ + + +
+ +
+
+
+
+
+
 
+
+
 
+
+ + + + +
+ + +
+

+ +
+
+ + +
+

+ + +
+
+ + + +
+
+ +
+
+ +
+
+ +
+
+ detail +
+
row + +
+ Do not edit or remove the next comment + + + +
+ + +
+
+
+ + + + + + + + + + + + + + + +
ParameterDescription
+
+
+
+ + + + + + Do not delete or edit the next comment + + + +
+ +
+ + + Do not delete or edit the previous comment + + Do not delete or edit the next comment + + + +
+ +
+ + + Do not delete or edit the previous comment + +
+ + + +
+ + + + + Do not delete or edit the next comment + +
+ +
+ + + + Do not delete or edit the previous comment + + Do not delete or edit the next comment + + + +
+ +
+ + + Do not delete or edit the previous comment + +
+ + + +
+
+ + Do not edit or remove the previous comment +
+ + + + + + +

+
+ + + + + +
+
+ + + + + + + + +
+ +
+
+ + + + (Optional) + + + + + + + +
+
+
+ + + +
+ + + + + + + +