1
1
# bookstack-file-exporter
2
2
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 )
5
8
- [ 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 )
14
26
- [ Images] ( #images )
27
+ - [ General] ( #general-1 )
15
28
- [ 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 )
19
35
20
36
## Background
21
37
_ 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.
122
138
123
139
#### Examples
124
140
``` bash
141
+ # --user flag to override the uid/gid for created files. Set this to your uid/gid
125
142
docker run \
126
143
--user ${USER_ID} :${USER_GID} \
127
144
-v $( pwd) /config.yml:/export/config/config.yml:ro \
@@ -144,7 +161,7 @@ Tokens and other options can be specified, example:
144
161
145
162
``` bash
146
163
# '-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
148
165
docker run \
149
166
-e LOG_LEVEL=' debug' \
150
167
-e BOOKSTACK_TOKEN_ID=' xyz' \
@@ -190,11 +207,11 @@ host: "https://bookstack.yourdomain.com"
190
207
credentials :
191
208
token_id : " "
192
209
token_secret : " "
193
- formats :
210
+ formats : # md only example
194
211
- markdown
195
- - html
196
- - pdf
197
- - plaintext
212
+ # - html
213
+ # - pdf
214
+ # - plaintext
198
215
output_path : " bkps/"
199
216
assets :
200
217
export_images : false
@@ -204,7 +221,7 @@ assets:
204
221
` ` `
205
222
206
223
#### 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.
208
225
209
226
` ` ` yaml
210
227
host : " https://bookstack.yourdomain.com"
@@ -289,9 +306,11 @@ kafka (shelf)
289
306
---> settings (chapter)
290
307
---> retention-settings.md (page)
291
308
---> retention-settings_meta.json
309
+ ...
292
310
---> compression.html (page)
293
311
---> compression.pdf
294
312
---> compression_meta.json
313
+ ...
295
314
---> optional-config.md (page)
296
315
...
297
316
---> main.md (page)
@@ -320,7 +339,7 @@ unassigned (shelf)
320
339
---> img-010.png
321
340
---> img-020.png
322
341
---> test_page.md (page)
323
- ...
342
+ ...
324
343
---> rec_page (page)
325
344
---> rec_page.md
326
345
---> rec_page.pdf
@@ -382,7 +401,7 @@ Page (parent) -> Images (Children) relationships are created and then each image
382
401
[ ![ 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 )
383
402
384
403
## 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 )
386
405
```
387
406
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.
388
407
0 commit comments