Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix composer to installable version. Update documentation #295

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run

```
composer require --prefer-dist yiisoft/yii2-apidoc
composer require --prefer-dist yiisoft/yii2-apidoc:"~3.0.6"
```

The above command may not work on an existing project due to version conflicts that need to be resolved, so it
is preferred to add the package manually to the `require` section of your composer.json:

```json
"yiisoft/yii2-apidoc": "~2.1.0"
"yiisoft/yii2-apidoc": "~3.0.6"
```

afterwards run `composer update`. You may also run `composer update yiisoft/yii2-apidoc cebe/markdown` if you
Expand All @@ -39,13 +39,14 @@ want to avoid updating unrelated packages.

Usage
-----
This extension creates executable at `/vendor/bin`. Please do change directory to that directory if you do not want to use full path i.e `/vendor/bin/apidoc` and use just the executable name as with below examples.

This extension offers two commands:

1)`api` to generate class API documentation. [phpDocumentor](https://www.phpdoc.org/) is used as a base framework
so refer to its guide for the syntax.

The output of `help api` command:
The output of `help api` command (i.e `apidoc help api`):

```
DESCRIPTION
Expand Down Expand Up @@ -106,7 +107,7 @@ OPTIONS

2)`guide` to render nice HTML pages from markdown files such as the yii guide.

The output of `help guide` command:
The output of `help guide` command (i.e `apidoc help guide`):

```
DESCRIPTION
Expand Down
Loading