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
e583e0be
Commit
e583e0be
authored
Jun 28, 2014
by
Antonio Ramirez
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into upstream
* upstream/master: resolved naming conflict in apidoc
parents
73706648
fd8828cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ApiMarkdown.php
extensions/apidoc/helpers/ApiMarkdown.php
+2
-2
ApiMarkdownLaTeX.php
extensions/apidoc/helpers/ApiMarkdownLaTeX.php
+2
-2
ApiMarkdownTrait.php
extensions/apidoc/helpers/ApiMarkdownTrait.php
+2
-2
No files found.
extensions/apidoc/helpers/ApiMarkdown.php
View file @
e583e0be
...
...
@@ -29,7 +29,7 @@ class ApiMarkdown extends GithubMarkdown
*/
public
static
$renderer
;
protected
$
c
ontext
;
protected
$
renderingC
ontext
;
/**
* Renders a code block
...
...
@@ -104,7 +104,7 @@ class ApiMarkdown extends GithubMarkdown
if
(
is_string
(
$context
))
{
$context
=
static
::
$renderer
->
apiContext
->
getType
(
$context
);
}
Markdown
::
$flavors
[
'api'
]
->
c
ontext
=
$context
;
Markdown
::
$flavors
[
'api'
]
->
renderingC
ontext
=
$context
;
if
(
$paragraph
)
{
return
Markdown
::
processParagraph
(
$content
,
'api'
);
...
...
extensions/apidoc/helpers/ApiMarkdownLaTeX.php
View file @
e583e0be
...
...
@@ -27,7 +27,7 @@ class ApiMarkdownLaTeX extends GithubMarkdown
*/
public
static
$renderer
;
protected
$
c
ontext
;
protected
$
renderingC
ontext
;
protected
function
inlineMarkers
()
{
...
...
@@ -62,7 +62,7 @@ class ApiMarkdownLaTeX extends GithubMarkdown
if
(
is_string
(
$context
))
{
$context
=
static
::
$renderer
->
apiContext
->
getType
(
$context
);
}
Markdown
::
$flavors
[
'api-latex'
]
->
c
ontext
=
$context
;
Markdown
::
$flavors
[
'api-latex'
]
->
renderingC
ontext
=
$context
;
if
(
$paragraph
)
{
return
Markdown
::
processParagraph
(
$content
,
'api-latex'
);
...
...
extensions/apidoc/helpers/ApiMarkdownTrait.php
View file @
e583e0be
...
...
@@ -14,13 +14,13 @@ use yii\apidoc\models\TypeDoc;
/**
* Class ApiMarkdownTrait
*
* @property TypeDoc $
c
ontext
* @property TypeDoc $
renderingC
ontext
*/
trait
ApiMarkdownTrait
{
protected
function
parseApiLinks
(
$text
)
{
$context
=
$this
->
c
ontext
;
$context
=
$this
->
renderingC
ontext
;
if
(
preg_match
(
'/^\[\[([\w\d\\\\\(\):$]+)(\|[^\]]*)?\]\]/'
,
$text
,
$matches
))
{
...
...
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