From 39d3edb7d59ac006aefb7edbe1ad4d8d9e27dcb9 Mon Sep 17 00:00:00 2001 From: Martin Thomas Date: Sat, 26 Aug 2023 13:49:38 -0500 Subject: [PATCH 1/2] Update index.rst - use double back-quote around Python dictionary --- docs/index.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index cd790a2..8078247 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -226,9 +226,9 @@ uploading assets to S3. be used for CORS, that must be set per S3 bucket using an XML config string.) E.g. to add custom metadata when serving text files, set this to: - `{r'\.txt$':` - ` {'Texted-Up-By': 'Mister Foo'}` - `}` + ``{r'\.txt$':`` + `` {'Texted-Up-By': 'Mister Foo'}`` + ``}`` **Default:** `{}` `FLASKS3_ONLY_MODIFIED` Only upload files that have been modified since last upload to S3. SHA-1 file hashes are used to compute From 84d7d567faf670c5db475f939f1a3bf2be6014fb Mon Sep 17 00:00:00 2001 From: Martin Thomas Date: Sat, 26 Aug 2023 13:55:03 -0500 Subject: [PATCH 2/2] Update index.rst - try inline version --- docs/index.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 8078247..148e71f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -226,9 +226,7 @@ uploading assets to S3. be used for CORS, that must be set per S3 bucket using an XML config string.) E.g. to add custom metadata when serving text files, set this to: - ``{r'\.txt$':`` - `` {'Texted-Up-By': 'Mister Foo'}`` - ``}`` + ``{r'\.txt$': {'Texted-Up-By': 'Mister Foo'} }`` **Default:** `{}` `FLASKS3_ONLY_MODIFIED` Only upload files that have been modified since last upload to S3. SHA-1 file hashes are used to compute