Skip to content

Commit 0ddeb86

Browse files
committed
improve read me
1 parent 64c95a7 commit 0ddeb86

File tree

1 file changed

+40
-21
lines changed

1 file changed

+40
-21
lines changed

README.md

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
11
# bookstack-file-exporter
22
Table of Contents
3-
- [Background](#background)
4-
- [Using This Application](#using-this-application)
3+
- [bookstack-file-exporter](#bookstack-file-exporter)
4+
- [Background](#background)
5+
- [Features](#features)
6+
- [Use Case](#use-case)
7+
- [Using This Application](#using-this-application)
58
- [Run via Pip](#run-via-pip)
6-
- [Run via Docker](#run-via-docker)
7-
- [Authentication](#authentication)
8-
- [Configuration](#configuration)
9-
- [Simple example](#just-run)
10-
- [Full example](#full-example)
11-
- [Options and descriptions](#options-and-descriptions)
12-
- [Environment variables](#valid-environment-variables)
13-
- [Backup Behavior](#backup-behavior)
9+
- [Examples](#examples)
10+
- [Options](#options)
11+
- [Environment Variables](#environment-variables)
12+
- [Python Version](#python-version)
13+
- [Run Via Docker](#run-via-docker)
14+
- [Examples](#examples-1)
15+
- [Environment Variables](#environment-variables-1)
16+
- [Bind Mounts](#bind-mounts)
17+
- [Authentication](#authentication)
18+
- [Configuration](#configuration)
19+
- [Just Run](#just-run)
20+
- [Full Example](#full-example)
21+
- [Options and Descriptions](#options-and-descriptions)
22+
- [Valid Environment Variables](#valid-environment-variables)
23+
- [Backup Behavior](#backup-behavior)
24+
- [Export File](#export-file)
25+
- [General](#general)
1426
- [Images](#images)
27+
- [General](#general-1)
1528
- [Modify Markdown Files](#modify-markdown-files)
16-
- [Object Storage](#object-storage)
17-
- [Minio](#minio-backups)
18-
- [Future Items](#future-items)
29+
- [Object Storage](#object-storage)
30+
- [Minio Backups](#minio-backups)
31+
- [Authentication](#authentication-1)
32+
- [Example](#example)
33+
- [Configuration](#configuration-1)
34+
- [Future Items](#future-items)
1935

2036
## Background
2137
_Features are actively being developed. See `Future Items` section for more details. Open an issue for a feature request._
@@ -122,6 +138,7 @@ Docker can be utilized to run the exporter.
122138

123139
#### Examples
124140
```bash
141+
# --user flag to override the uid/gid for created files. Set this to your uid/gid
125142
docker run \
126143
--user ${USER_ID}:${USER_GID} \
127144
-v $(pwd)/config.yml:/export/config/config.yml:ro \
@@ -144,7 +161,7 @@ Tokens and other options can be specified, example:
144161

145162
```bash
146163
# '-e' flag for env vars
147-
# --user flag to override the uid/gid for created files
164+
# --user flag to override the uid/gid for created files. Set this to your uid/gid
148165
docker run \
149166
-e LOG_LEVEL='debug' \
150167
-e BOOKSTACK_TOKEN_ID='xyz' \
@@ -190,11 +207,11 @@ host: "https://bookstack.yourdomain.com"
190207
credentials:
191208
token_id: ""
192209
token_secret: ""
193-
formats:
210+
formats: # md only example
194211
- markdown
195-
- html
196-
- pdf
197-
- plaintext
212+
# - html
213+
# - pdf
214+
# - plaintext
198215
output_path: "bkps/"
199216
assets:
200217
export_images: false
@@ -204,7 +221,7 @@ assets:
204221
```
205222
206223
#### Full Example
207-
Below is an example configuration that shows all possible options,
224+
Below is an example configuration that shows example values for all possible options.
208225
209226
```yaml
210227
host: "https://bookstack.yourdomain.com"
@@ -289,9 +306,11 @@ kafka (shelf)
289306
---> settings (chapter)
290307
---> retention-settings.md (page)
291308
---> retention-settings_meta.json
309+
...
292310
---> compression.html (page)
293311
---> compression.pdf
294312
---> compression_meta.json
313+
...
295314
---> optional-config.md (page)
296315
...
297316
---> main.md (page)
@@ -320,7 +339,7 @@ unassigned (shelf)
320339
---> img-010.png
321340
---> img-020.png
322341
---> test_page.md (page)
323-
...
342+
...
324343
---> rec_page (page)
325344
---> rec_page.md
326345
---> rec_page.pdf
@@ -382,7 +401,7 @@ Page (parent) -> Images (Children) relationships are created and then each image
382401
[![pool-topology-1.png](https://demo.bookstack/uploads/images/gallery/2023-07/scaled-1680-/pool-topology-1.png)](https://demo.bookstack/uploads/images/gallery/2023-07/pool-topology-1.png)
383402

384403
## after
385-
[![pool-topology-1.png](./images/pool-topology-1.png)](https://demo.bookstack/uploads/images/gallery/2023-07/pool-topology-1.png)
404+
[![pool-topology-1.png](./images/{page_name}/pool-topology-1.png)](https://demo.bookstack/uploads/images/gallery/2023-07/pool-topology-1.png)
386405
```
387406
This allows the image to be found locally within the export files and allow your `markdown` docs to have all the images display properly like it would normally would.
388407

0 commit comments

Comments
 (0)