Skip to content

Commit

Permalink
fix: Trim trailing dash in api docs #2112 (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Oct 2, 2023
1 parent 91f8599 commit 4d527f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions py/docs/templates/text.mako
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ ${docstring | to_html}
<div className='api'>
% if is_method:
${"####"} ${f.name} <a name="${f.refname}"/>
## Using <a> with name prop as an anchor adds additional dash to the URL - https://github.com/facebook/docusaurus/issues/8901.
## Using <span> with id instead.
${"####"} <span id="${f.refname}">${f.name}</span>
% else:
${"###"} ${f.name} <a name="${f.refname}"/>
${"###"} <span id="${f.refname}">${f.name}</span>
% endif
<%
Expand Down

0 comments on commit 4d527f0

Please sign in to comment.