gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] branch master updated: fix typescript links (closes https:/


From: gnunet
Subject: [taler-docs] branch master updated: fix typescript links (closes https://bugs.taler.net/n/6732)
Date: Mon, 01 Mar 2021 13:00:21 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository docs.

The following commit(s) were added to refs/heads/master by this push:
     new f4f1fa0  fix typescript links (closes https://bugs.taler.net/n/6732)
f4f1fa0 is described below

commit f4f1fa0e17b95270d244a950b4b938419dc52029
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Mar 1 13:00:15 2021 +0100

    fix typescript links (closes https://bugs.taler.net/n/6732)
---
 _exts/typescriptdomain.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/_exts/typescriptdomain.py b/_exts/typescriptdomain.py
index 83ab26c..ac6e4b8 100644
--- a/_exts/typescriptdomain.py
+++ b/_exts/typescriptdomain.py
@@ -420,6 +420,7 @@ class LinkingHtmlFormatter(HtmlFormatter):
                 + "#"
                 + r1[1]
             )
+            print(f"relative URL from {self._bridge.docname} to {r1[0]} is 
{rel_uri}")
             return (
                 '<a style="color:inherit;text-decoration:underline" 
href="%s">%s</a>'
                 % (rel_uri, content)
@@ -521,7 +522,7 @@ class MyPygmentsBridge(PygmentsBridge):
         elif isinstance(location, Element):
             self.line = location.line
             self.path = location.source
-            self.docname = Path(location.source).stem
+            self.docname = self.builder.env.path2doc(self.path)
         return super().highlight_block(source, lang, opts, force, location, 
**kwargs)
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]