gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-docs] branch master updated: fix typescript links in


From: gnunet
Subject: [GNUnet-SVN] [taler-docs] branch master updated: fix typescript links in non-root docs
Date: Thu, 29 Aug 2019 16:31:28 +0200

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 765c9ac  fix typescript links in non-root docs
765c9ac is described below

commit 765c9ac3080360900945da4a3c5f2213933ae3a3
Author: Florian Dold <address@hidden>
AuthorDate: Thu Aug 29 16:31:24 2019 +0200

    fix typescript links in non-root docs
---
 _exts/tsref.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/_exts/tsref.py b/_exts/tsref.py
index ae10832..ae0e924 100644
--- a/_exts/tsref.py
+++ b/_exts/tsref.py
@@ -171,8 +171,10 @@ class LinkFilter(Filter):
                 defname = make_id('tsref-type-' + value);
                 t = copy_token(ttype)
                 if defname in id_to_doc:
+                    current_docname = self.app.builder._current_docname
                     docname = id_to_doc[defname]
-                    href = self.app.builder.get_target_uri(docname) + "#" + 
defname
+                    uri = self.app.builder.get_relative_uri(current_docname, 
docname)
+                    href = uri + "#" + defname
                     tok_setprop(t, "href", href)
 
                 yield t, value

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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