Better documentation for --static, closes #641

https://datasette.readthedocs.io/en/stable/custom_templates.html#serving-static-files
This commit is contained in:
Simon Willison 2019-11-25 18:31:42 -08:00
commit df2879ee2a
9 changed files with 54 additions and 9 deletions

View file

@ -159,7 +159,7 @@ def plugins(all, plugins_dir):
@click.option(
"--static",
type=StaticMount(),
help="mountpoint:path-to-directory for serving static files",
help="Serve static files from this directory at /MOUNT/...",
multiple=True,
)
@click.option(
@ -281,7 +281,7 @@ def package(
@click.option(
"--static",
type=StaticMount(),
help="mountpoint:path-to-directory for serving static files",
help="Serve static files from this directory at /MOUNT/...",
multiple=True,
)
@click.option("--memory", is_flag=True, help="Make :memory: database available")