-
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 #3 from bumble-tech/1.x.x
1.0.0
- Loading branch information
Showing
549 changed files
with
26,217 additions
and
3,457 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
ini_set('memory_limit', '-1'); | ||
|
||
$dir = __DIR__; | ||
$autoloadFound = false; | ||
while ($dir !== DIRECTORY_SEPARATOR) { | ||
$autoloadFileName = realpath($dir . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'); | ||
$autoloadFound = file_exists($autoloadFileName) && is_readable($autoloadFileName); | ||
if ($autoloadFound) { | ||
require $autoloadFileName; | ||
break; | ||
} | ||
$dir = dirname($dir); | ||
} | ||
|
||
if (!$autoloadFound) { | ||
die('Composer autoload.php file not found.'); | ||
} | ||
|
||
(new \BumbleDocGen\Console\App())->run(); |
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,27 @@ | ||
project_root: '%WORKING_DIR%' | ||
templates_dir: '%project_root%/selfdoc/templates' | ||
output_dir: "%project_root%/docs" | ||
cache_dir: '%project_root%/.bumbleDocGenCache' | ||
output_dir_base_url: "/docs" | ||
language_handlers: | ||
php: | ||
class: \BumbleDocGen\LanguageHandler\Php\PhpHandler | ||
settings: | ||
file_source_base_url: 'https://github.com/bumble-tech/bumble-doc-gen/blob/master' | ||
async_source_loading_enabled: true | ||
source_locators: | ||
- class: \BumbleDocGen\Core\Parser\SourceLocator\RecursiveDirectoriesSourceLocator | ||
arguments: | ||
directories: | ||
- "%project_root%/src" | ||
- "%project_root%/selfdoc" | ||
twig_filters: | ||
- class: \SelfDocConfig\Twig\CustomFilter\EvalString | ||
twig_functions: | ||
- class: \SelfDocConfig\Twig\CustomFunction\FindEntitiesClassesByCollectionClassName | ||
- class: \SelfDocConfig\Twig\CustomFunction\PrintClassCollectionAsGroupedTable | ||
- class: \SelfDocConfig\Twig\CustomFunction\GetConfigParametersDescription | ||
plugins: | ||
- class: \SelfDocConfig\Plugin\RoaveStubber\BetterReflectionStubberPlugin | ||
- class: \SelfDocConfig\Plugin\TwigFilterClassParser\TwigFilterClassParserPlugin | ||
- class: \SelfDocConfig\Plugin\TwigFunctionClassParser\TwigFunctionClassParserPlugin |
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 |
---|---|---|
|
@@ -49,6 +49,8 @@ BumbleDocGen's interface consists of mainly two classes: <a href="/docs/classes/ | |
|
||
<embed> <h3>Examples of usage</h3> </embed> | ||
|
||
1) Working with a library in a PHP file | ||
|
||
```php | ||
require_once 'vendor/autoload.php'; | ||
|
||
|
@@ -64,18 +66,31 @@ $docgen = $factory->create('/path/to/configuration/files'); | |
$docgen->generate(); | ||
``` | ||
|
||
2) Working with the library through a console application | ||
|
||
```bash | ||
# List of available commands | ||
./vendor/bin/bumbleDocGen list | ||
|
||
# Documentation generation example | ||
./vendor/bin/bumbleDocGen generate -c <path to config file> | ||
|
||
# Getting detailed information about a command | ||
./vendor/bin/bumbleDocGen generate -h | ||
``` | ||
|
||
------------------ | ||
|
||
**This documentation was generated using the Bumble Documentation Generator, and is an example of how it works.** | ||
|
||
To update this documentation, run the following command: | ||
|
||
```console | ||
php SelfDoc/docGen.php generate | ||
./bin/bumbleDocGen generate | ||
``` | ||
|
||
|
||
|
||
<div id='page_committer_info'> | ||
<hr> | ||
<b>Last page committer:</b> fshcherbanich <[email protected]><br><b>Last modified date:</b> Sun Jul 30 16:49:10 2023 +0300<br><b>Page content update date:</b> Thu Aug 31 2023<br>Made with <a href='https://github.com/bumble-tech/bumble-doc-gen/blob/master/docs/readme.md'>Bumble Documentation Generator</div> | ||
<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> Sun Sep 10 2023<br>Made with <a href='https://github.com/bumble-tech/bumble-doc-gen/blob/master/docs/README.md'>Bumble Documentation Generator</a></div> |
Oops, something went wrong.