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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
a90242ad
Commit
a90242ad
authored
Oct 21, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apidoc: make the guide PDF renderer work again
parent
fd55679c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
composer.json
extensions/apidoc/composer.json
+1
-1
ApiMarkdownLaTeX.php
extensions/apidoc/helpers/ApiMarkdownLaTeX.php
+5
-0
ApiMarkdownTrait.php
extensions/apidoc/helpers/ApiMarkdownTrait.php
+8
-3
main.tex
extensions/apidoc/templates/pdf/main.tex
+2
-2
No files found.
extensions/apidoc/composer.json
View file @
a90242ad
...
...
@@ -26,7 +26,7 @@
"nikic/php-parser"
:
"0.9.*"
,
"cebe/js-search"
:
"*"
,
"cebe/markdown"
:
"~1.0.0"
,
"cebe/markdown-latex"
:
"
*
"
"cebe/markdown-latex"
:
"
~1.0.0
"
},
"autoload"
:
{
"psr-4"
:
{
"yii
\\
apidoc
\\
"
:
""
}
...
...
extensions/apidoc/helpers/ApiMarkdownLaTeX.php
View file @
a90242ad
...
...
@@ -37,6 +37,11 @@ class ApiMarkdownLaTeX extends GithubMarkdown
return
$latex
;
}
protected
function
renderBrokenApiLink
(
$block
)
{
return
$this
->
renderApiLink
(
$block
);
}
/**
* Converts markdown into HTML
*
...
...
extensions/apidoc/helpers/ApiMarkdownTrait.php
View file @
a90242ad
...
...
@@ -48,7 +48,7 @@ trait ApiMarkdownTrait
];
return
[
[
'
text
'
,
'<span style="background: #f00;">'
.
$typeName
.
'::'
.
$subjectName
.
'</span>'
],
[
'
brokenApiLink
'
,
'<span style="background: #f00;">'
.
$typeName
.
'::'
.
$subjectName
.
'</span>'
],
$offset
];
}
else
{
...
...
@@ -71,7 +71,7 @@ trait ApiMarkdownTrait
];
return
[
[
'
text
'
,
'<span style="background: #ff0;">'
.
$type
->
name
.
'</span><span style="background: #f00;">::'
.
$subjectName
.
'</span>'
],
[
'
brokenApiLink
'
,
'<span style="background: #ff0;">'
.
$type
->
name
.
'</span><span style="background: #f00;">::'
.
$subjectName
.
'</span>'
],
$offset
];
}
...
...
@@ -104,7 +104,7 @@ trait ApiMarkdownTrait
];
return
[
[
'
text
'
,
'<span style="background: #f00;">'
.
$object
.
'</span>'
],
[
'
brokenApiLink
'
,
'<span style="background: #f00;">'
.
$object
.
'</span>'
],
$offset
];
}
...
...
@@ -116,4 +116,9 @@ trait ApiMarkdownTrait
{
return
$block
[
1
];
}
protected
function
renderBrokenApiLink
(
$block
)
{
return
$block
[
1
];
}
}
extensions/apidoc/templates/pdf/main.tex
View file @
a90242ad
...
...
@@ -93,7 +93,7 @@
Qiang Xue,
Alexander Makarov,
Carsten Brandt,
Klimov Paul
Klimov Paul
,
and
many contributors from the Yii community
}
...
...
@@ -133,7 +133,7 @@
Qiang Xue,
\\
Alexander Makarov,
\\
Carsten Brandt,
\\
Klimov Paul
\\
Klimov Paul
,
\\
and
\\
the Yii community
}
...
...
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