Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix inline links to methods in generated docs

Summary: After D2181.

Test Plan: Click on method name in ToC, click on method name linked in text.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin

Differential Revision: https://secure.phabricator.com/D2288
  • Loading branch information...
commit 6105e651033f1d34a96bd07a84c85ee744186c76 1 parent e8c4904
vrana authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/renderer/default/DivinerDefaultRenderer.php
View
10 src/renderer/default/DivinerDefaultRenderer.php
@@ -260,16 +260,13 @@ public function renderAtomAnchor(DivinerAtom $atom) {
$type = $atom->getType();
$name = $atom->getName();
-
- $type = $this->getNormalizedName($type);
- $name = $this->getNormalizedName($name);
$anchor_name = $type.'/'.$name;
$link_text = phutil_escape_html($atom->getName().$suffix);
return phutil_render_tag(
'a',
array(
- 'href' => '#'.$anchor_name,
+ 'href' => '#'.$this->getNormalizedName($anchor_name),
'class' => 'atom-symbol',
),
$link_text);
@@ -293,15 +290,12 @@ public function renderAtomLink(DivinerAtom $atom) {
public function renderAtomAnchorTarget(DivinerAtom $atom) {
$type = $atom->getType();
$name = $atom->getName();
-
- $type = $this->getNormalizedName($type);
- $name = $this->getNormalizedName($name);
$anchor_name = $type.'/'.$name;
return phutil_render_tag(
'a',
array(
- 'name' => $anchor_name,
+ 'name' => $this->getNormalizedName($anchor_name),
),
'');
}
Please sign in to comment.
Something went wrong with that request. Please try again.