Theme Modules: Updated install command to handle nested folder

Theme module ZIPs will now support their files being in a single nested
directory within a ZIP, to support common ZIP structure approaches.
Added test to cover.
For #6066
This commit is contained in:
Dan Brown
2026-04-11 14:34:54 +01:00
parent 5e78dc6ed5
commit 3d9d5fef51
3 changed files with 83 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ Here are some general best practices when it comes to creating modules:
### Distribution Format
Modules are expected to be distributed as a compressed ZIP file, where the ZIP contents follow that of a module folder.
Contents may optionally be placed within a nested folder inside the ZIP.
BookStack provides a `php artisan bookstack:install-module` command which allows modules to be installed from these ZIP files, either from a local path or from a web URL.
Currently, there's a hardcoded total filesize limit of 50MB for module contents installed via this method.