-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from MarketDataApp/customize-phpdoc-template
Try custom docs
- Loading branch information
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'layout.html.twig' %} | ||
|
||
{% | ||
set topMenu = { | ||
"menu": [ | ||
{ "name": "PHP Documentation", "url": "https://www.marketdata.app/docs/sdk-php/"}, | ||
] | ||
} | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h1 class="phpdocumentor-title"> | ||
<a href="https://www.marketdata.app/docs/sdk" class="phpdocumentor-title__link">MarketData SDK</a> | ||
</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block content %} | ||
<section> | ||
<h2>PHP Documentation</h2> | ||
|
||
{% set node = project.namespace %} | ||
|
||
{{ | ||
include( | ||
'components/table-of-contents.html.twig', | ||
{ | ||
'node': project.namespace, | ||
'namespaces': usesNamespaces or not usesPackages ? node.children : [], | ||
'packages': usesPackages ? project.package.children : [] | ||
} | ||
) | ||
}} | ||
{{ include('components/constants.html.twig', {'node': project.namespace}) }} | ||
{{ include('components/functions.html.twig', {'node': project.namespace}) }} | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<template> | ||
<name>MarketData - PHPDoc Template</name> | ||
<author>Kerry Jones</author> | ||
<email>kerryjones21@gmail.com</email> | ||
<version>1.0.0</version> | ||
<extends>default</extends> | ||
<transformations> | ||
</transformations> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ | |
</source> | ||
</api> | ||
</version> | ||
<template name=".phpdoc/template" /> | ||
</phpdocumentor> |