From 1d68acf8f0a4ffa23ecf831ed048449ca83df39a Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 11 Oct 2024 21:52:44 +0000 Subject: [PATCH] add `preadme.md`; closes #105 --- README.md | 4 ++- copyparty/__main__.py | 6 ++--- copyparty/httpcli.py | 51 ++++++++++++++++++++++++++------------- copyparty/web/browser.css | 2 +- copyparty/web/browser.js | 27 +++++++++++++++------ 5 files changed, 60 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index bb06258b..76fbad21 100644 --- a/README.md +++ b/README.md @@ -937,6 +937,8 @@ see [./srv/expand/](./srv/expand/) for usage and examples * files named `README.md` / `readme.md` will be rendered after directory listings unless `--no-readme` (but `.epilogue.html` takes precedence) + * and `PREADME.md` / `preadme.md` is shown above directory listings unless `--no-readme` or `.prologue.html` + * `README.md` and `*logue.html` can contain placeholder values which are replaced server-side before embedding into directory listings; see `--help-exp` @@ -2047,7 +2049,7 @@ other misc notes: behavior that might be unexpected -* users without read-access to a folder can still see the `.prologue.html` / `.epilogue.html` / `README.md` contents, for the purpose of showing a description on how to use the uploader for example +* users without read-access to a folder can still see the `.prologue.html` / `.epilogue.html` / `PREADME.md` / `README.md` contents, for the purpose of showing a description on how to use the uploader for example * users can submit `