From 4d527f0a21cf7ac2377c5487739858dae7aefec5 Mon Sep 17 00:00:00 2001 From: Marek Mihok Date: Mon, 2 Oct 2023 12:58:10 +0200 Subject: [PATCH] fix: Trim trailing dash in api docs #2112 (#2145) --- py/docs/templates/text.mako | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py/docs/templates/text.mako b/py/docs/templates/text.mako index a0025cfee4..dae28a1a80 100644 --- a/py/docs/templates/text.mako +++ b/py/docs/templates/text.mako @@ -55,9 +55,12 @@ ${docstring | to_html}
% if is_method: -${"####"} ${f.name} + ## Using with name prop as an anchor adds additional dash to the URL - https://github.com/facebook/docusaurus/issues/8901. + ## Using with id instead. +${"####"} ${f.name} + % else: -${"###"} ${f.name} +${"###"} ${f.name} % endif <%