Skip to content

Commit

Permalink
use css class to indicate broken links in generated guide/api docs. […
Browse files Browse the repository at this point in the history
…skip ci]
  • Loading branch information
qiangxue committed Nov 19, 2014
1 parent 0d12bbe commit 5526cad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/apidoc/helpers/ApiMarkdownTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function parseApiLinks($text)
];

return [
['brokenApiLink', '<span style="background: #f00;">' . $typeName . '::' . $subjectName . '</span>'],
['brokenApiLink', '<span class="broken-link">' . $typeName . '::' . $subjectName . '</span>'],
$offset
];
} else {
Expand All @@ -71,7 +71,7 @@ protected function parseApiLinks($text)
];

return [
['brokenApiLink', '<span style="background: #ff0;">' . $type->name . '</span><span style="background: #f00;">::' . $subjectName . '</span>'],
['brokenApiLink', '<span class="broken-link">' . $type->name . '::' . $subjectName . '</span>'],
$offset
];
}
Expand Down Expand Up @@ -104,7 +104,7 @@ protected function parseApiLinks($text)
];

return [
['brokenApiLink', '<span style="background: #f00;">' . $object . '</span>'],
['brokenApiLink', '<span class="broken-link">' . $object . '</span>'],
$offset
];
}
Expand Down
3 changes: 3 additions & 0 deletions extensions/apidoc/templates/bootstrap/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,6 @@ h1:hover .hashlink, h2:hover .hashlink, h3:hover .hashlink, h4:hover .hashlink,
width: 100%;
}

.broken-link {
background: lightpink;
}

0 comments on commit 5526cad

Please sign in to comment.