-
Notifications
You must be signed in to change notification settings - Fork 5
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 #39 from bumble-tech/1.x.x
1.x.x
- Loading branch information
Showing
57 changed files
with
532 additions
and
757 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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,40 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
ini_set('memory_limit', '-1'); | ||
|
||
require_once __DIR__ . '/../../vendor/autoload.php'; | ||
|
||
try { | ||
$docGen = (new \BumbleDocGen\DocGeneratorFactory()) | ||
->createByConfigArray([ | ||
'project_root' => '%WORKING_DIR%/vendor/doctrine', | ||
'demo_dir' => '%WORKING_DIR%/demo/demo5-config-array', // <= custom parameter | ||
'cache_dir' => '%demo_dir%/.cache', | ||
'templates_dir' => '%demo_dir%/templates', | ||
'output_dir' => "%demo_dir%/docs", | ||
'output_dir_base_url' => "%demo_dir%/docs", | ||
'check_file_in_git_before_creating_doc' => false, | ||
'language_handlers' => [ | ||
'php' => [ | ||
'class' => \BumbleDocGen\LanguageHandler\Php\PhpHandler::class, | ||
'settings' => [ | ||
'async_source_loading_enabled' => true, | ||
], | ||
] | ||
], | ||
'source_locators' => [ | ||
[ | ||
'class' => \BumbleDocGen\Core\Parser\SourceLocator\RecursiveDirectoriesSourceLocator::class, | ||
'arguments' => [ | ||
'directories' => [ | ||
'%project_root%' | ||
] | ||
] | ||
] | ||
], | ||
]); | ||
$docGen->generate(); | ||
} catch (\Exception | \Psr\Cache\InvalidArgumentException $e) { | ||
die($e->getMessage()); | ||
} |
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 @@ | ||
{% set title = 'Demo 5' %} | ||
|
||
{{ "Demo 5" | textToHeading('H1') }} | ||
|
||
{{ printEntityCollectionAsList( phpClassEntityCollection.filterByPaths(['/annotations']) ) }} | ||
|
||
To update this documentation, run the following command: | ||
|
||
{{ 'php demo/demo5-config-array/demoScript.php' | textToCodeBlock('console') }} |
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 |
---|---|---|
|
@@ -62,6 +62,8 @@ $factory = new DocGeneratorFactory(); | |
// Create a DocGenerator instance | ||
$docgen = $factory->create('/path/to/configuration/files'); | ||
|
||
// or $docgen = $factory->createByConfigArray([...]); | ||
|
||
// Now call the desired operation | ||
$docgen->generate(); | ||
``` | ||
|
@@ -93,4 +95,4 @@ To update this documentation, run the following command: | |
|
||
<div id='page_committer_info'> | ||
<hr> | ||
<b>Last page committer:</b> fshcherbanich <[email protected]><br><b>Last modified date:</b> Sun Sep 10 17:47:00 2023 +0300<br><b>Page content update date:</b> Thu Sep 28 2023<br>Made with <a href='https://github.com/bumble-tech/bumble-doc-gen/blob/master/docs/README.md'>Bumble Documentation Generator</a></div> | ||
<b>Last page committer:</b> fshcherbanich <[email protected]><br><b>Last modified date:</b> Thu Oct 5 17:42:06 2023 +0300<br><b>Page content update date:</b> Fri Oct 06 2023<br>Made with <a href='https://github.com/bumble-tech/bumble-doc-gen/blob/master/docs/README.md'>Bumble Documentation Generator</a></div> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.