Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
5526cad1
Commit
5526cad1
authored
Nov 19, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use css class to indicate broken links in generated guide/api docs. [skip ci]
parent
0d12bbe1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
ApiMarkdownTrait.php
extensions/apidoc/helpers/ApiMarkdownTrait.php
+3
-3
style.css
extensions/apidoc/templates/bootstrap/assets/css/style.css
+3
-0
No files found.
extensions/apidoc/helpers/ApiMarkdownTrait.php
View file @
5526cad1
...
@@ -48,7 +48,7 @@ trait ApiMarkdownTrait
...
@@ -48,7 +48,7 @@ trait ApiMarkdownTrait
];
];
return
[
return
[
[
'brokenApiLink'
,
'<span
style="background: #f00;
">'
.
$typeName
.
'::'
.
$subjectName
.
'</span>'
],
[
'brokenApiLink'
,
'<span
class="broken-link
">'
.
$typeName
.
'::'
.
$subjectName
.
'</span>'
],
$offset
$offset
];
];
}
else
{
}
else
{
...
@@ -71,7 +71,7 @@ trait ApiMarkdownTrait
...
@@ -71,7 +71,7 @@ trait ApiMarkdownTrait
];
];
return
[
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
$offset
];
];
}
}
...
@@ -104,7 +104,7 @@ trait ApiMarkdownTrait
...
@@ -104,7 +104,7 @@ trait ApiMarkdownTrait
];
];
return
[
return
[
[
'brokenApiLink'
,
'<span
style="background: #f00;
">'
.
$object
.
'</span>'
],
[
'brokenApiLink'
,
'<span
class="broken-link
">'
.
$object
.
'</span>'
],
$offset
$offset
];
];
}
}
...
...
extensions/apidoc/templates/bootstrap/assets/css/style.css
View file @
5526cad1
...
@@ -208,3 +208,6 @@ h1:hover .hashlink, h2:hover .hashlink, h3:hover .hashlink, h4:hover .hashlink,
...
@@ -208,3 +208,6 @@ h1:hover .hashlink, h2:hover .hashlink, h3:hover .hashlink, h4:hover .hashlink,
width
:
100%
;
width
:
100%
;
}
}
.broken-link
{
background
:
lightpink
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment