]> BookStack Code Mirror - website/commitdiff
Performed docs updates for v24.12, added import/export page
authorDan Brown <redacted>
Fri, 20 Dec 2024 18:50:12 +0000 (18:50 +0000)
committerDan Brown <redacted>
Fri, 20 Dec 2024 18:50:12 +0000 (18:50 +0000)
content/blog/2024/bookstack-release-v24-12.md
content/docs/admin/email-webhooks.md
content/docs/admin/installation.md
content/docs/admin/ldap-auth.md
content/docs/admin/updates.md
content/docs/user/export-import.md [new file with mode: 0644]
static/images/docs/user/import-overview.png [new file with mode: 0644]
themes/bookstack/layouts/partials/menu_user_docs.html

index 8a4933a799cdbd246f987682dc92a464cfe57fef..6c87e3e459c0c497e54dcbaa56ff7ff85a8cfbb1 100644 (file)
@@ -17,6 +17,10 @@ new import & export format, while improving upon the new editor introduced in th
 
 TODO - Peertube
 
+**Upgrade Notices**
+
+- **Requirements Change** - The "zip" PHP extension is now a requirement for BookStack. If you installed via our Ubuntu scripts, this should already be installed.
+
 ### New Importable Export Format
 
 A new export option is now available for books, chapters & pages: "Portable ZIP"
index c3d196ce44920b5a505bddd0e0c055e3de9b0656..927c5e7c4246591e4d6a59c0ef2b9963a4482a34 100644 (file)
@@ -86,6 +86,12 @@ MAIL_SENDMAIL_COMMAND="/usr/sbin/sendmail -bs"
 
 #### Debugging Email
 
+Failed email sends are handled differently depending on what triggers them.
+In some cases, like for user invites, an error will be shown to the user within BookStack since the email
+is required to perform the intended action.
+In other cases, like user activity/watch notification emails, failure of email send will not be shown 
+to the BookStack user performing activity, but the error will just be logged to the application error log file.
+
 You can follow the instructions provided in the [debugging documentation page](/docs/admin/debugging/)
 to help gain more details about issues you may come across. Within the "Settings > Maintenance" area of
 BookStack you can find a "Send a Test Email" action which provides a quick & easy way to send emails
index e7ff09c55f22ed3770cd6f1d6567eed0e9cd4d2e..ddfb4cd03df2faa56e348638d2cfe201b078cab5 100644 (file)
@@ -29,7 +29,7 @@ BookStack has the following core requirements:
 
 * **PHP** >= 8.1
     * For installation and maintenance, you'll need to be able to run `php` from the command line.
-    * Required Extensions: gd, dom, iconv, mbstring, mysqlnd, openssl, pdo, pdo_mysql, tokenizer, xml.
+    * Required Extensions: gd, dom, iconv, mbstring, mysqlnd, openssl, pdo, pdo_mysql, tokenizer, xml, zip.
     * Optional Extensions: ldap *(If wanting to use LDAP Auth)*.
     * *For PHP MySQL extensions use `nd` (Native Driver) variants where provided, otherwise these may be the default provided in modern `mysql` PHP extension packages.*
 * **MySQL** >= 5.7 or **MariaDB** >= 10.2
index 3f3f09c745c0e361df95fe3b05e5d084f288dc66..d28f46be2702c47c25f52913661af839ed355fa9 100644 (file)
@@ -51,7 +51,10 @@ LDAP_ID_ATTRIBUTE=uid
 # Set the default 'email' attribute. Defaults to 'mail'
 LDAP_EMAIL_ATTRIBUTE=mail
 
-# Set the property to use for a user's display name. Defaults to 'cn'
+# Set the property to use for a user's display name. Defaults to 'cn'.
+# Can have multiple attributes listed, separated with a '|' in which 
+# case those values will be joined with a space.
+# Example: LDAP_DISPLAY_NAME_ATTRIBUTE=given_name|family_name
 LDAP_DISPLAY_NAME_ATTRIBUTE=cn
 
 # Set the attribute to use for the user's avatar image.
index 4720ce78f40182ab3949e07721d473dc95a4ed03..0603d51879f226fbab80d7324f3e095baf019bb7 100644 (file)
@@ -41,6 +41,9 @@ This is primarily a list of breaking changes & security notices.
 Details of updates can be found on [our blog](https://www.bookstackapp.com/blog/) or via 
 the [GitHub releases page](https://github.com/BookStackApp/BookStack/releases).
 
+#### Updating to v24.12 or higher
+
+**Requirements Change** - The "zip" PHP extension is now a requirement for BookStack. If you installed via our Ubuntu scripts, this should already be installed.
 
 #### Updating to v24.10.2 or higher
 
diff --git a/content/docs/user/export-import.md b/content/docs/user/export-import.md
new file mode 100644 (file)
index 0000000..3d9aa79
--- /dev/null
@@ -0,0 +1,51 @@
++++
+title = "Exporting & Importing Content"
+date = "2024-12-20"
+type = "user-doc"
++++
+
+BookStack allows its content to be exported in a range of formats, while also providing 
+a few options for importing content.
+Note that these option are not intended for backup or restore, for which you [can find relevant documentation here](/docs/admin/backup-restore/).
+
+### Exporting
+
+Within BookStack, if you have the required "Export content" role permission, you can export books,
+chapters or pages in the following formats:
+
+- Contained Web File
+  - A ".html" file with images embedded where possible, which can be opened in a browser.
+  - This usually provides the best representation of your BookStack content.
+- PDF File
+  - A ".pdf" document file representation of your content.
+  - The output of this can sometimes be inaccurate or lack certain features compared to how its represented in BookStack.
+- Plain Text File
+  - A ".txt" file with just the text containing in your content.
+- Markdown File
+  - A ".md" file with a markdown representation of your content.
+  - If the page was written using the Markdown editor, then that original content will be provided otherwise this export will attempt a conversion to Markdown.
+  - The resulting markdown may still use HTML for some content types.
+- Portable ZIP
+  - A ".zip" containing data, attachment and image files.
+  - This can be re-imported to BookStack instances as mentioned below.
+  - The exact format can be found documented [in the BookStack source here](https://github.com/BookStackApp/BookStack/blob/development/dev/docs/portable-zip-file-format.md).
+
+Although not shown as an export format, care is taken in BookStack to ensure that pages display well via browser printing options.
+This allows you to print to paper, or often to PDF, via your browser's print action as another form of export.
+
+For developers, many of these export options can also be accessed over the [BookStack REST API](/docs/admin/hacking-bookstack/#bookstack-api), which
+also provides many other endpoints that may be found useful for export-focused tasks.
+
+### Importing
+
+Within BookStack, if you have the required "Import content" role permission, you can import "Portable ZIP" 
+files (as mentioned in the [exporting](#exporting) section above) via the "Import" action seen when viewing the
+top-level "Books" view, or by going to the `/import` URL path of your instance:
+
+<img src="/images/docs/user/import-overview.png" alt='View of the import page, with a field to select a ZIP for upload, and a section below showing "Pending Imports" with one "IT Department" book listed' width="600">
+
+Here you'll be able to upload a new ZIP file for import, or continue a previously uploaded pending import.
+Before the import runs, you'll be provided a preview of what's due to be imported.
+When ran, the content will be imported into BookStack, and the original uploaded ZIP file will be deleted.
+
+For developers, the details of this importable ZIP format [can be found here](https://github.com/BookStackApp/BookStack/blob/development/dev/docs/portable-zip-file-format.md) otherwise you could also consider the [BookStack REST API](/docs/admin/hacking-bookstack/#bookstack-api) as an option for import.
\ No newline at end of file
diff --git a/static/images/docs/user/import-overview.png b/static/images/docs/user/import-overview.png
new file mode 100644 (file)
index 0000000..650fd61
--- /dev/null
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:521ab395b54c25722e1b8b0f320d9d91fe66354411fc613cf43f4844ef282873
+size 38369
index b00bd4d3ebccd1aeb73c6f6932593c7d660afcf4..dac2a68050a52db03a75223c04f6814e6f2a9140 100644 (file)
@@ -15,6 +15,7 @@
                <li><a href="/docs/user/markdown-editor">Markdown Editor</a></li>
                <li><a href="/docs/user/attachments">Attachments</a></li>
                <li><a href="/docs/user/diagrams">Drawings & Diagrams</a></li>
+               <li><a href="/docs/user/export-import">Exporting & Importing</a></li>
        </ul>
 </div>