Skip to content

Commit 0aae174

Browse files
committed
[bugfix] fix referrer spelling
1 parent deb3a23 commit 0aae174

2 files changed

Lines changed: 24 additions & 26 deletions

File tree

cityehr-documentation-common/src/main/xslt/create-topic-html.xslt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
<xsl:variable name="petal-source-file-uri-tokens" select="tokenize($petal-source-file-uri, concat($petal-github-repo-name, '/'))" />
185185
<xsl:variable name="petal-source-file" select="$petal-source-file-uri-tokens[last()]" />
186186
<xsl:variable name="petal-webpage-filename" select="hcom:dita-filename-to-html(com:filename($petal-source-file-uri))" />
187-
<xsl:sequence select="concat($petal-api-url, '?ghrepo=', $petal-github-org-name, '/', $petal-github-repo-name, '&amp;source=', $petal-source-file, '&amp;branch=', $petal-github-branch, '&amp;referer=', string-join(($petal-referrer-base-url, $petal-referrer-sub-folder, $petal-webpage-filename), '/'))" />
187+
<xsl:sequence select="concat($petal-api-url, '?ghrepo=', $petal-github-org-name, '/', $petal-github-repo-name, '&amp;source=', $petal-source-file, '&amp;branch=', $petal-github-branch, '&amp;referrer=', string-join(($petal-referrer-base-url, $petal-referrer-sub-folder, $petal-webpage-filename), '/'))" />
188188
</xsl:function>
189189

190190
</xsl:stylesheet>
Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<x:description
3-
xmlns:x="http://www.jenitennison.com/xslt/xspec"
2+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
43
xmlns:xs="http://www.w3.org/2001/XMLSchema"
5-
xmlns:htop="http://cityehr/html/topic"
6-
stylesheet="../../main/xslt/create-topic-html.xslt">
4+
xmlns:htop="http://cityehr/html/topic" stylesheet="../../main/xslt/create-topic-html.xslt">
75

8-
<x:param name="version" as="xs:string">xspec-test-version</x:param>
9-
<x:param name="petal-api-url" as="xs:string">https://petal.evolvedbinary.com</x:param>
10-
<x:param name="petal-github-org-name" as="xs:string">evolvedbinary</x:param>
11-
<x:param name="petal-github-repo-name" as="xs:string">cityehr-documentation</x:param>
12-
<x:param name="petal-github-branch" as="xs:string">develop</x:param>
13-
<x:param name="petal-referrer-base-url" as="xs:string">https://evolvedbinary.github.io/cityehr-documentation</x:param>
6+
<x:param name="version" as="xs:string">xspec-test-version</x:param>
7+
<x:param name="petal-api-url" as="xs:string">https://petal.evolvedbinary.com</x:param>
8+
<x:param name="petal-github-org-name" as="xs:string">evolvedbinary</x:param>
9+
<x:param name="petal-github-repo-name" as="xs:string">cityehr-documentation</x:param>
10+
<x:param name="petal-github-branch" as="xs:string">develop</x:param>
11+
<x:param name="petal-referrer-base-url" as="xs:string">https://evolvedbinary.github.io/cityehr-documentation</x:param>
1412
<x:param name="petal-referrer-sub-folder" as="xs:string">quick-start-guide</x:param>
15-
13+
1614
<x:scenario label="Scenario for testing the petal-edit-url function with source file from local filesytem">
1715
<x:call function="htop:petal-edit-url">
18-
<x:param name="petal-source-file-uri" as="xs:string">file:/Users/aretter/code/evolvedbinary/customers/cityehr/cityehr-documentation/cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita</x:param>
19-
<x:param name="petal-api-url" as="xs:string">https://petal.evolvedbinary.com</x:param>
20-
<x:param name="petal-github-org-name" as="xs:string">evolvedbinary</x:param>
21-
<x:param name="petal-github-repo-name" as="xs:string">cityehr-documentation</x:param>
22-
<x:param name="petal-github-branch" as="xs:string">develop</x:param>
16+
<x:param name="petal-source-file-uri" as="xs:string">file:/Users/aretter/code/evolvedbinary/customers/cityehr/cityehr-documentation/cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita</x:param>
17+
<x:param name="petal-api-url" as="xs:string">https://petal.evolvedbinary.com</x:param>
18+
<x:param name="petal-github-org-name" as="xs:string">evolvedbinary</x:param>
19+
<x:param name="petal-github-repo-name" as="xs:string">cityehr-documentation</x:param>
20+
<x:param name="petal-github-branch" as="xs:string">develop</x:param>
2321
<x:param name="petal-referrer-base-url" as="xs:string">https://evolvedbinary.github.io/cityehr-documentation</x:param>
2422
<x:param name="petal-referrer-sub-folder" as="xs:string">quick-start-guide</x:param>
2523
</x:call>
26-
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&amp;source=cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita&amp;branch=develop&amp;referer=https://evolvedbinary.github.io/cityehr-documentation/quick-start-guide/verify-install.html'"/>
24+
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&amp;source=cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita&amp;branch=develop&amp;referrer=https://evolvedbinary.github.io/cityehr-documentation/quick-start-guide/verify-install.html'"/>
2725
</x:scenario>
28-
26+
2927
<x:scenario label="Scenario for testing the petal-edit-url function with source file in GitHub Action container">
3028
<x:call function="htop:petal-edit-url">
31-
<x:param name="petal-source-file-uri" as="xs:string">file:/home/runner/work/cityehr-documentation/cityehr-documentation/cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita</x:param>
32-
<x:param name="petal-api-url" as="xs:string">https://petal.evolvedbinary.com</x:param>
33-
<x:param name="petal-github-org-name" as="xs:string">evolvedbinary</x:param>
34-
<x:param name="petal-github-repo-name" as="xs:string">cityehr-documentation</x:param>
35-
<x:param name="petal-github-branch" as="xs:string">develop</x:param>
29+
<x:param name="petal-source-file-uri" as="xs:string">file:/home/runner/work/cityehr-documentation/cityehr-documentation/cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita</x:param>
30+
<x:param name="petal-api-url" as="xs:string">https://petal.evolvedbinary.com</x:param>
31+
<x:param name="petal-github-org-name" as="xs:string">evolvedbinary</x:param>
32+
<x:param name="petal-github-repo-name" as="xs:string">cityehr-documentation</x:param>
33+
<x:param name="petal-github-branch" as="xs:string">develop</x:param>
3634
<x:param name="petal-referrer-base-url" as="xs:string">https://evolvedbinary.github.io/cityehr-documentation</x:param>
3735
<x:param name="petal-referrer-sub-folder" as="xs:string">quick-start-guide</x:param>
3836
</x:call>
39-
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&amp;source=cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita&amp;branch=develop&amp;referer=https://evolvedbinary.github.io/cityehr-documentation/quick-start-guide/verify-install.html'"/>
37+
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&amp;source=cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita&amp;branch=develop&amp;referrer=https://evolvedbinary.github.io/cityehr-documentation/quick-start-guide/verify-install.html'"/>
4038
</x:scenario>
41-
39+
4240
</x:description>

0 commit comments

Comments
 (0)