1.1 --- a/moinconvert Fri Jul 12 21:54:20 2019 +0200
1.2 +++ b/moinconvert Fri Jul 12 22:04:11 2019 +0200
1.3 @@ -107,6 +107,7 @@
1.4 # Flags.
1.5
1.6 all = False
1.7 + bundle = False
1.8 fragment = False
1.9 macros = False
1.10 tree = False
1.11 @@ -120,6 +121,11 @@
1.12 if arg == "--all":
1.13 all = True
1.14
1.15 + # Detect resource bundling.
1.16 +
1.17 + elif arg == "--bundle":
1.18 + bundle = True
1.19 +
1.20 # Detect fragment output (if serialising).
1.21
1.22 elif arg == "--fragment":
1.23 @@ -237,6 +243,7 @@
1.24
1.25 metadata = Metadata({
1.26 "attachments" : getvalue(attachments_dir, "attachments"),
1.27 + "bundle" : bundle,
1.28 "document_index" : getvalue(document_indexes),
1.29 "input_context" : input_dir and \
1.30 getvalue(input_dir_types, "directory") or \
1.31 @@ -367,6 +374,9 @@
1.32
1.33 Output options:
1.34
1.35 +--bundle Bundle resources such as stylesheets within every document,
1.36 + useful for publishing documents that need to be copied or
1.37 + distributed individually.
1.38 --document-index Provide a "DocumentIndex" filename to be used in links in
1.39 HTML format output, useful for local file browsing instead
1.40 of Web-published content