Skip to content

Commit 4f94b7b

Browse files
committed
docs: Make giscus work correctly on GitHub hosted docs
This change fixes giscus for https://hyperledger-labs.github.io/splice by hard-coding documentation page pathname (which is used as a discussion title by giscus) instead of relying on location.pathname from the browser which is prefixed with `<reponame>/` when hosted on GitHub. Signed-off-by: Stanislav German-Evtushenko <[email protected]>
1 parent d0062ca commit 4f94b7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/_templates/page.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ <h2>Comments<a class="headerlink" href="#comments"></a></h2>
88
data-repo-id="R_kgDONbkPcQ"
99
data-category="comments-for-docs"
1010
data-category-id="DIC_kwDONbkPcc4Cnaia"
11-
data-mapping="pathname"
11+
data-mapping="specific"
12+
data-term="{{ pagename }}"
1213
data-strict="1"
1314
data-reactions-enabled="0"
1415
data-emit-metadata="0"

0 commit comments

Comments
 (0)