launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #31517
[Merge] ~pelpsi/launchpad:rock-api-doc-fix-entry-points into launchpad:master
Simone Pelosi has proposed merging ~pelpsi/launchpad:rock-api-doc-fix-entry-points into launchpad:master.
Commit message:
Fix Rock API doc
These changes fix the URL entry point displayed on the generated
documentation.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~pelpsi/launchpad/+git/launchpad/+merge/473627
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~pelpsi/launchpad:rock-api-doc-fix-entry-points into launchpad:master.
diff --git a/lib/lp/services/webservice/wadl-to-refhtml.xsl b/lib/lp/services/webservice/wadl-to-refhtml.xsl
index 4ddccb9..ad918b1 100644
--- a/lib/lp/services/webservice/wadl-to-refhtml.xsl
+++ b/lib/lp/services/webservice/wadl-to-refhtml.xsl
@@ -314,6 +314,34 @@
<xsl:text>/+build-request/</xsl:text>
<var><id></var>
</xsl:when>
+ <xsl:when test="@id = 'rock_recipe'">
+ <xsl:text>/~</xsl:text>
+ <var><person.name></var>
+ <xsl:text>/</xsl:text>
+ <var><project.name></var>
+ <xsl:text>/+rock/</xsl:text>
+ <var><recipe.name></var>
+ </xsl:when>
+ <xsl:when test="@id = 'rock_recipe_build'">
+ <xsl:text>/~</xsl:text>
+ <var><person.name></var>
+ <xsl:text>/</xsl:text>
+ <var><project.name></var>
+ <xsl:text>/+rock/</xsl:text>
+ <var><recipe.name></var>
+ <xsl:text>/+build/</xsl:text>
+ <var><id></var>
+ </xsl:when>
+ <xsl:when test="@id = 'rock_recipe_build_request'">
+ <xsl:text>/~</xsl:text>
+ <var><person.name></var>
+ <xsl:text>/</xsl:text>
+ <var><project.name></var>
+ <xsl:text>/+rock/</xsl:text>
+ <var><recipe.name></var>
+ <xsl:text>/+build-request/</xsl:text>
+ <var><id></var>
+ </xsl:when>
<xsl:when test="@id = 'cve'">
<xsl:text>/bugs/cve/</xsl:text>
<var><sequence></var>
@@ -810,6 +838,9 @@
<xsl:when test="@id = 'snaps'">
<xsl:text>/+snaps</xsl:text>
</xsl:when>
+ <xsl:when test="@id = 'rock_recipes'">
+ <xsl:text>/+rock-recipes</xsl:text>
+ </xsl:when>
<xsl:otherwise>
<xsl:text>/</xsl:text><xsl:value-of select="@id" />
</xsl:otherwise>