]> BookStack Code Mirror - website/commitdiff
Made required doc updates for v0.19 changes
authorDan Brown <redacted>
Sat, 9 Dec 2017 20:05:30 +0000 (20:05 +0000)
committerDan Brown <redacted>
Sat, 9 Dec 2017 20:05:30 +0000 (20:05 +0000)
Also enabled post modified times via last git change

config.toml
content/docs/admin/installation.md
content/docs/admin/third-party-auth.md [moved from content/docs/admin/social-auth.md with 77% similarity]
content/docs/admin/updates.md
content/docs/user/markdown-editor.md
content/docs/user/wysiwyg-editor.md
themes/bookstack/layouts/partials/header.html
themes/bookstack/layouts/partials/menu_admin_docs.html

index 21a3c5113a689d3fd5644210e5377bdba805b538..acc3aae489f84f888ce728e37ecb77c13e7cce6c 100644 (file)
@@ -2,6 +2,7 @@ languageCode = "en-gb"
 title = "BookStack"
 baseurl = "https://bookstackapp.com/"
 theme="bookstack"
+enableGitInfo=true
 
 [permalinks]
   post = "/blog/:slug/"
index efe9617f78ba84771091aaa5da9fdaa5ecd08be0..837968b93f591d5b5693d22e403c5c6b634279a3 100644 (file)
@@ -18,7 +18,7 @@ Below are some different methods of installing BookStack. If you cannot find a g
 
 BookStack has similar requirements to Laravel:
 
-* PHP >= 5.6.4, Will need to be usable from the command line.
+* PHP >= 7.0.0, Will need to be usable from the command line.
 * PHP Extensions: `OpenSSL`, `PDO`, `MBstring`, `Tokenizer`, `GD`, `MySQLND`, `Tidy`
 * MySQL >= 5.6, Single DB *(All permissions advised since application manages schema)*
 * Git *(Not strictly required but helps manage updates)*
similarity index 77%
rename from content/docs/admin/social-auth.md
rename to content/docs/admin/third-party-auth.md
index 6f21f8ecff27ac25137bd451488b1abfa5748f2a..cb24a2e6975d70418b1c0bb8a0fa5e87c05e7b28 100644 (file)
@@ -1,11 +1,14 @@
 +++
-title = "Social Authentication"
-description = "Enabling and configuring social authentication for easier logins"
+title = "Third Party Authentication"
+description = "Enabling and configuring third-party authentication for easier logins"
 date = "2017-01-01"
 type = "admin-doc"
+aliases = [
+    "/docs/admin/social-auth"
+]
 +++
 
-BookStack currently supports login via Google, Facebook, Slack, Twitter & GitHub. Once enabled options for these services will show up in the login, registration and user profile pages. By default these services are disabled. To enable them you will have to create an application on the external services to obtain the require application id's and secrets. Here are instructions to do this for the current supported services:
+BookStack currently supports login via Google, Facebook, Slack, Twitter, GitHub, AzureAD and Okta. Once enabled options for these services will show up in the login, registration and user profile pages. By default these services are disabled. To enable them you will have to create an application on the external services to obtain the require application id's and secrets. Here are instructions to do this for the current supported services:
 
 ---
 
@@ -126,3 +129,27 @@ To create a Twitter application for signing in with you may require a phone numb
        APP_URL=http://mybookstackurl.com
        ```
 10. All done! Users should now be able to link their AzureAD account in their account profile pages and also register/login using their Slack account.
+
+---
+
+### Okta
+
+1. Login to Okta and, once logged in, Note the current URL. This is used for the 'BASE_URL' in step 6.
+2. Navigate to the Admin panel then 'Applications' then select 'Add Application'. Then select 'Create New App' on the left.
+3. For the 'Platform' choose 'Web'. For the 'Sign on method' choose 'OpenID Connect' then click 'Create'.
+4. Give the app a name such as 'BookStack' or 'Our documentation'. Under the 'Login redirect URIs' option add both of the below URLs, Changing `https://example.com` to the base URL of your BookStack instance:
+    - `https://example.com/login/service/okta/callback`
+    - `https://example.com/register/service/okta/callback`
+5. Save and scroll down to the 'Client Credentials' area. Copy the 'Client ID' and 'Client secret' values. These are your 'APP_ID' and 'APP_SECRET' values for step 6.
+6. Copy these details and add them as new variables in your `.env` file like so:
+       ```bash
+       # Replace the below (including '{}' braces) with your okta APP_ID and APP_SECRET and BASE_URL.
+       OKTA_APP_ID={APP_ID}
+       OKTA_APP_SECRET={APP_SECRET}
+       # The base URL is the URL from step 1 but with everything after the domain (okta.com) removed.
+       OKTA_BASE_URL={BASE_URL}
+
+       # APP_URL Needs to be set to your BookStack base url
+       APP_URL=http://mybookstackurl.com
+       ```
+7. All set up! Remember to assign the new application you created in Okta to your Okta users otherwise they will not be able to register/login using the service.
\ No newline at end of file
index c999c7a550c7b15391c78ec218cbf5428cc7528d..e9d159a5c93d55088d99579eb11fa7d34799d86b 100644 (file)
@@ -30,6 +30,12 @@ Check the below list for the version you are updating to for any additional inst
 
 ## Version Specific Instructions
 
+#### Updating to v0.19 or higher
+
+Version v0.19 needs the following requirement change:
+
+* Minimum required version of PHP has changed from 5.6.4 to 7.0.0.
+
 #### Updating to v0.18 or higher
 
 Version v0.18 introduced a commenting system. After updating you should check the permissions for all roles if you'd like to enable comments for your users.
index 7e9e7d6548c34128eef1c37416d3932be378ff54..72c35a211ee614b47c9efeb83b63c1bb1ff4e2d6 100644 (file)
@@ -6,9 +6,7 @@ type = "user-doc"
 +++
 
 If you prefer the write in Markdown the editor in BookStack can be changed at a instance level
-to use a markdown editor instead of the default WYSIWYG editor.
-
-The option to use Markdown is currently **not** a user setting but a global instance setting
+to use a markdown editor instead of the default WYSIWYG editor. The option to use Markdown is currently **not** a user setting but a global instance setting
 due to formatting differences between the two editors.
 
 ### Editor Shortcuts
@@ -27,6 +25,10 @@ The following shortcuts are available in the Markdown Editor:
       <td><code>Ctrl+S</code> / <code>Cmd+S</code></td>
       <td>Save Draft</td>
     </tr>
+    <tr>
+      <td><code>Ctrl+Enter</code> / <code>Cmd+Enter</code></td>
+      <td>Save Page &amp; Continue</td>
+    </tr>
     <tr>
       <td>
         <code>Ctrl+1</code> / <code>Cmd+1</code> <br>
index d949d1beb70c0d446e4fc265b11032ffce1cafa6..bf55cdef7c053e4b71d1a996143ff31f0c506907 100644 (file)
@@ -24,6 +24,10 @@ The following shortcuts are available in the WYSIWYG Editor:
       <td><code>Ctrl+S</code> / <code>Cmd+S</code></td>
       <td>Save Draft</td>
     </tr>
+    <tr>
+      <td><code>Ctrl+Enter</code> / <code>Cmd+Enter</code></td>
+      <td>Save Page &amp; Continue</td>
+    </tr>
     <tr>
       <td><code>Ctrl+B</code> / <code>Cmd+B</code></td>
       <td>Bold</td>
index 6bfdb0ce8c0ba7c47d7f24d8ffbdbe6174b58ad5..4f3a0d17c3a45fd2fb992d9201b6350f909cae51 100644 (file)
@@ -23,6 +23,7 @@
 
        <meta property="og:type" content="article" />
     <meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
+    <meta property="og:article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
 
     {{ range .Params.tags }}
     <meta property="og:article:tag" content="{{ . }}" />
index d65d906cc9c55cc1af267b7a4ae26d3bf62283a8..3ec39d55cb7ac3cacf3271bee190144fec6f5683 100644 (file)
@@ -18,7 +18,7 @@
 <h4>Configuration</h4>
 <ul>
        <li><a href="/docs/admin/cache-session-config">Caching &amp; Sessions</a></li>
-       <li><a href="/docs/admin/social-auth">Social Authentication</a></li>
+       <li><a href="/docs/admin/social-auth">Third Party Authentication</a></li>
        <li><a href="/docs/admin/ldap-auth">LDAP Authentication</a></li>
        <li><a href="/docs/admin/pdf-rendering">PDF Rendering</a></li>
        <li><a href="/docs/admin/ut8mb4-support">UTF8mb4/Emoji Support</a></li>