summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2022-05-18 18:24:44 +0100
committerGitHub <noreply@github.com>2022-05-18 17:24:44 +0000
commit0fce474a4019b441940b6e12ac8a50ffac09727e (patch)
tree49d420387fbd5cf6b37db3cd8bcf4cbf5f39ab27
parentRefactor `resolve_state_groups_for_events` to not pull out full state when no... (diff)
downloadsynapse-0fce474a4019b441940b6e12ac8a50ffac09727e.tar.xz
Fix YAML parsing error in `url_preview_accept_language` (#12785)
-rw-r--r--changelog.d/12785.doc1
-rw-r--r--docs/usage/configuration/config_documentation.md12
2 files changed, 7 insertions, 6 deletions
diff --git a/changelog.d/12785.doc b/changelog.d/12785.doc
new file mode 100644
index 0000000000..5209dfeb05
--- /dev/null
+++ b/changelog.d/12785.doc
@@ -0,0 +1 @@
+Fix invalid YAML syntax in the example documentation for the `url_preview_accept_language` config option.
diff --git a/docs/usage/configuration/config_documentation.md b/docs/usage/configuration/config_documentation.md
index 3ad3085bfa..6b9ffc09d2 100644
--- a/docs/usage/configuration/config_documentation.md
+++ b/docs/usage/configuration/config_documentation.md
@@ -1194,7 +1194,7 @@ For more information on using Synapse with Postgres,
 see [here](../../postgres.md).
 
 Example SQLite configuration:
-```
+```yaml
 database:
   name: sqlite3
   args:
@@ -1202,7 +1202,7 @@ database:
 ```
 
 Example Postgres configuration:
-```
+```yaml
 database:
   name: psycopg2
   txn_limit: 10000
@@ -1679,10 +1679,10 @@ Defaults to "en".
 Example configuration:
 ```yaml
  url_preview_accept_language:
-   - en-UK
-   - en-US;q=0.9
-   - fr;q=0.8
-   - *;q=0.7
+   - 'en-UK'
+   - 'en-US;q=0.9'
+   - 'fr;q=0.8'
+   - '*;q=0.7'
 ```
 ----
 Config option: `oembed`