Add offline availability of w3css

This commit is contained in:
KnugiHK
2023-02-13 12:23:43 +08:00
parent a275a0f40c
commit 26320413e8
5 changed files with 54 additions and 11 deletions

View File

@@ -103,6 +103,11 @@ def main():
default=False,
action='store_true',
help="Move the media directory to output directory if the flag is set, otherwise copy it")
parser.add_option(
"--offline",
dest="offline",
default=None,
help="Relative path to offline static files")
(options, args) = parser.parse_args()
if options.android and options.iphone:
@@ -194,7 +199,7 @@ def main():
messages(db, data)
media(db, data, options.media)
vcard(db, data)
create_html(data, options.output, options.template, options.embedded)
create_html(data, options.output, options.template, options.embedded, options.offline)
else:
print(
"The message database does not exist. You may specify the path "