=== BastionBytes integration for BookStack === Contributors: tingeltangel7 Donate link: https://bb-integration-for-bookstack.bastionbytes.de/ Tags: integration, content Requires at least: 6.7.1 Tested up to: 6.9 Stable tag: 0.4.12 Requires PHP: 8.0 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html A BookStack (https://www.bookstackapp.com/) integration plugin to display BookStack sites via shortcode. == Description == The intention of this plugin is to let non-technical users edit parts of your Wordpress page in [BookStack](https://www.bookstackapp.com/). Changes in BookStack will be displayed on your website. When a BookStack user changes content on a BookStack site a REST request is sent to https://yoursite/wp-json/bookstack/v1/site-update to Wordpress that the site has changed. The next time a Wordpress page containing a shortcode to the previously changed BookStack site is requested, the plugin will make a request to BookStack to fetch the new content. In normal operation the content is cached. == Frequently Asked Questions == = How do I configure BookStack and the plugin? = To grant API access to the plugin, you should create a special API user in BookStack. The API user will need the role 'API' and an 'API Token'. When creating the token you will need to specify the 'Token ID' and 'Token Secret' values in the plugin settings. To get instant updates of your content from BookStack, you need to add a webhook in 'Settings'->'Webhooks'. The 'Webhook Endpoint' value is displayed on the plugin settings page under 'BookStack Webhook URL'. The webhook must be enabled and fire on the following events: * page_create * page_update * page_delete * page_move * chapter_create * chapter_update * chapter_delete * chapter_move * book_update * book_delete * book_sort A reasonable value for the 'Webhook Request Timeout (in Seconds)' might be '2'. Creating a webhook is not strictly necessary, but allows instant updates of content changes. = Will my website go down if BookStack goes down? = In normal mode (which is highly recommended and the default), the BookStack content is cached in Wordpress. Even if the cached data is is marked as invalid, it will be served as long as Bookstack is offline. = I changed something in BookStack while my site was offline. Why is my changed content not displayed? = If you make changes in BookStack while Wordpress is down, Wordpress won't notice the changes. The changes will be automatically reloaded when the cached content is automatically invalidated after the cache timeout (in hours) (default 24 hours). = How are images handled? = The plugin now only caches the pure markup content of BookStack. Images are loaded directly from BookStack by the client browser. = How do the shortcodes work? = An example is `[bb-bookstack id=17 show_title show_date]` This would show the BookStack page with the ID 17. Getting the ID from BookStack is a bit tricky: 1. Open the page 2. Select any text 3. The ID can be extracted from the displayed link For example the link `https://mybookstack/link/8#bkmrk-something-here` has the ID 8. The 'show_title' attribute means that the title of the BookStack page is always displayed. If the 'hide_title' attribute is given, the title is suppressed. If neither 'show_title' nor 'hide_title' is given, the default setting selected in the plugin settings will be used. The 'show_date' attribute means that the last change date of the BookStack page is always displayed. If the 'hide_date' attribute is given, the date is suppressed. If neither 'show_date' nor 'hide_date' is given, the default setting selected in the plugin settings will be used. = How do I style BookStack content? = The content is surrounded by the tag `