taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 765c9ac3080360900945da4a3c5f2213933ae3a3
parent f5ac4b1b15e59271581299123439e68d0943e8fe
Author: Florian Dold <florian.dold@gmail.com>
Date:   Thu, 29 Aug 2019 16:31:24 +0200

fix typescript links in non-root docs

Diffstat:
M_exts/tsref.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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