Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into fix
  • Loading branch information
Webkadabra committed Jan 10, 2019
2 parents 5a01510 + 1ca7597 commit d7dc3aa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Anyways, add this module to your `backend` config first:
// ...
```

Advanced configuration, with breadcrumbs and shit can be achieved like this (simple example):
Advanced configuration example (e.g. add breadcrumbs):

```
// ...
Expand All @@ -57,21 +57,26 @@ Advanced configuration, with breadcrumbs and shit can be achieved like this (sim
],
// ...
```
Also, looks like this should be in too, for `backend` (or any yii2 app):

Add custom rule in `urlManager` component:

```
// ...
'components' => [
// ...
'urlManager' => [
'rules' => [
'docs/<page:[\w\d\/\-]+>' => 'docs/docs/index',
'docs/<page:[\w\d\/_-]*>' => 'docs/docs/index',
],
],
],
```

Now you have your documentaiton available at `http://backend/docs/user/orders/fulfillment`.
Now you have your documentaiton available at `http://backend.website.test/docs/user/orders/fulfillment`, and going up a tree structure would bring index of documents in that directory, e.g.: `http://backend.website.test/docs/user/` will bring list of documents in 'docs/user` directory (recursively).

# TODO

* Add multilingual support

TODO:

Expand Down

0 comments on commit d7dc3aa

Please sign in to comment.