Browse Source

Adding docs for encountering memory limitations

Guy Marriott 5 năm trước cách đây
mục cha
commit
de0d787199
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      docs/generating-documentation.md

+ 8 - 0
docs/generating-documentation.md

@@ -60,6 +60,14 @@ php artisan apidoc:rebuild
 
 To customise existing language templates you can perform the `vendor:publish` command above, then modify the blade templates in `resources/` as necessary.
 
+## Memory Limitations
+
+Generating docs for large APIs can be memory intensive. If you run into memory limits, consider running PHP with command line flags to increase memory limit or update your CLI php.ini file:
+
+```
+php -d memory_limit=1G artisan apidoc:generate
+```
+
 ## Further modification
 
 This package uses [Documentarian](https://github.com/mpociot/documentarian) to generate the API documentation. If you want to modify the CSS files of your documentation, or simply want to learn more about what is possible, take a look at the [Documentarian guide](http://marcelpociot.de/documentarian/installation).