Beta Release v0.22.0
Dan Brown posted on the 28th of May 2018
BookStack v0.22 is here with a much requested homepage option in addition to changes to the drawing system and improvements. Let’s get into it:
Books Homepage Option
Setting the ‘/books’ view as the homepage was the most-requested issue we had so @Abijeet went ahead and built this in as a new setting. Just like the ‘/books’ view a grid or list layout can be selected. This homepage view will still differ slightly in comparison to the ‘/books’ page since the sidebar items will remain more focused on the user’s activity rather than additional categories of books. The new setting can be found in the ‘App Settings’ section of BookStack under ‘Application Homepage’ as a toggle switch.
Sidebar Design Changes
The sidebar when viewing pages was beginning to get a little crowded, Especially when the page had both tags assigned and permissions set. This has now been cleaned up to be much more compact with new tag styling. The permissions are now shown in a more efficient manner within the details panel. The difference in space-efficiency can be seen the comparison below:
Ubuntu 18.04 Install Script
With the recent release of Ubuntu LTS 18.04, Bionic Beaver, A new install script has been put together. Details of the script and how to run it can be found here.
In comparison to the Ubuntu 16.04 script, This version now installs PHP-7.2 instead of PHP-7.0 and Apache2 is used instead of Nginx. The change to apache was done in the hopes of ensuring that BookStack plays nicer with other web-based packages such as phpMyAdmin and Let’s Encrypt.
Previously when updating a drawing the source file would be completely overwritten. In addition, there was no way to delete a drawing in the system. This has now been changed so that new images are created upon updating instead of being overwritten. This ensures that drawing changes are now versioned correctly alongside page updates.
This change does mean that more image files will be created and stored by BookStack. For one-off drawing deletions, or re-naming, you can now access a ‘Drawing Manager’ from the drawing-icon dropdown in the WYSIWYG editor or by shift-clicking the ‘Insert Drawing’ action in the markdown editor. To handle bulk image cleanup a new action has been added in the new ‘Maintenance’ area:
A new maintenance area has been added to sit alongside settings. This area will expand to hold all common operations an admin might want to perform. Currently it only includes the ability to clean-up images:
The clean-up images action provides a way to remove old, unused images from the system. It will search for uploaded gallery images and drawings that cannot be found within page content. It will also search within page revisions although you have the ability to ignore them to clean even more images.
Full List of Changes
- Added setting to set the Books view as the homepage. Thanks to @Abijeet. (#615,#830)
- Updated German translations. Thanks to @vriic. (#851)
- Updated Spanish translations. Thanks to @moucho. (#846)
- Updated Swedish translations. Thanks to @marcusforsberg. (#802)
- Ubuntu 18.04 install script now available. (#850)
- Updated tag and details design in sidebar to be more compact and cleaner. (#838)
- Drawings now create new image records instead of overwriting existing content. (#837, #770)
- Added new ‘Maintenance’ area to settings with option to clean-up images. (#837)
- Updated design of image manager and fixed search-cancel button to not always clear all images shown. (#837)
- Updated back-to-top button to not show on not scrollable pages such as the edit view. (#824)
.envoption to set Secure/HTTPS only cookies. (#817)
- Updated link attaching to allow any link types, Not only links matching a set pattern. (#812)
Secure Imagessetting to not alter names of uploaded images, Only their paths.
- Fixed relative CSS references causing WKHTML PDF exports to fail. Now callout icons will show in exports. (#796)
- Fixed issue with c-like languages not highlighting correctly in code blocks. (#849)
- Fixed design bug causing search icon to overlap input in header. (#859)
For the next release I’ll have another think about the best way to remove Composer as a dependency for installs and updates. Ideally I want to ensure the process is as simple as possible while remaining secure. Additionally I may start to have a proper think about the best solution for adding another level to the organisation hierarchy as that’s currently highly-requested.
Header Image Credits: John Michael Thomson