File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 135135 | Paths to additional documentation
136136 |--------------------------------------------------------------------------
137137 | An array of documentation paths to merge with the main documentation.
138+ |
139+ | For example, if your additional documentation is located in storage/additional_docs/example.json
140+ | you need to add 'storage/additional_docs/example.json' to additional_paths, if your additional
141+ | documentation is located in the root directory of your project you need to add the filename to additional_paths
138142 */
139143 'additional_paths ' => [],
140144
Original file line number Diff line number Diff line change @@ -626,7 +626,7 @@ public function getDocFileContent()
626626 $ additionalDocs = config ('auto-doc.additional_paths ' , []);
627627
628628 foreach ($ additionalDocs as $ filePath ) {
629- $ fileContent = json_decode (file_get_contents ($ filePath ), true );
629+ $ fileContent = json_decode (file_get_contents (base_path ( $ filePath) ), true );
630630
631631 $ paths = array_keys ($ fileContent ['paths ' ]);
632632
You can’t perform that action at this time.
0 commit comments