Skip to content

Commit

Permalink
feat: Use x-tagGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
js-moreno committed Jan 9, 2021
1 parent 3a4a7a6 commit 06681f9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/idoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,21 @@
],
],

/*
|--------------------------------------------------------------------------
| iDoc tag groups
|--------------------------------------------------------------------------
|
| This is used to separate groups in sections in the side menu.
| Before you use it, make sure you add all tags to a group, since a tag that is not in a group,
| will not be displayed at all!
|
*/

'tag_groups' => [
// ["name"=> "Accounts", "tags"=>["Authentication", "Users"]]
],

/*
|--------------------------------------------------------------------------
| iDoc languages tab.
Expand Down
2 changes: 2 additions & 0 deletions src/idoc/IDocGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ function ($parameter) {
'servers' => config('idoc.servers'),

'paths' => $paths,

'x-tagGroups' => config('idoc.tag_groups'),
];

return json_encode($collection);
Expand Down

0 comments on commit 06681f9

Please sign in to comment.