From 39cd32aa26e37481ba9fca5c11df51f32a18d90e Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 10 Feb 2025 22:36:36 +0900 Subject: [PATCH 1/2] Update docs/maintenance-postgres.md: add the warning styling Signed-off-by: Suguru Hirahara --- docs/maintenance-postgres.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/maintenance-postgres.md b/docs/maintenance-postgres.md index 82c4757c6..ce27e7404 100644 --- a/docs/maintenance-postgres.md +++ b/docs/maintenance-postgres.md @@ -28,7 +28,8 @@ To change to another database (for example `synapse`), run `\connect synapse` (o You can then proceed to write queries. Example: `SELECT COUNT(*) FROM users;` -**Be careful**. Modifying the database directly (especially as services are running) is dangerous and may lead to irreversible database corruption. When in doubt, consider [making a backup](#backing-up-postgresql). +> [!WARNING] +> **Modifying the database directly (especially as services are running) is dangerous and may lead to irreversible database corruption.** When in doubt, consider [making a backup](#backing-up-postgresql). ## Vacuuming PostgreSQL From ea18d9d87ec76a14ee1b7f7a8ccd50631c01b551 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 10 Feb 2025 22:43:06 +0900 Subject: [PATCH 2/2] Remove blank lines around lists titled with "Table of contents" Signed-off-by: Suguru Hirahara --- docs/maintenance-postgres.md | 5 ----- docs/registering-users.md | 1 - 2 files changed, 6 deletions(-) diff --git a/docs/maintenance-postgres.md b/docs/maintenance-postgres.md index ce27e7404..2c69d038e 100644 --- a/docs/maintenance-postgres.md +++ b/docs/maintenance-postgres.md @@ -3,15 +3,10 @@ This document shows you how to perform various maintenance tasks related to the Postgres database server used by Matrix. Table of contents: - - [Getting a database terminal](#getting-a-database-terminal), for when you wish to execute SQL queries - - [Vacuuming PostgreSQL](#vacuuming-postgresql), for when you wish to run a Postgres [VACUUM](https://www.postgresql.org/docs/current/sql-vacuum.html) (optimizing disk space) - - [Backing up PostgreSQL](#backing-up-postgresql), for when you wish to make a backup - - [Upgrading PostgreSQL](#upgrading-postgresql), for upgrading to new major versions of PostgreSQL. Such **manual upgrades are sometimes required**. - - [Tuning PostgreSQL](#tuning-postgresql) to make it run faster ## Getting a database terminal diff --git a/docs/registering-users.md b/docs/registering-users.md index 2972378b6..d6b606055 100644 --- a/docs/registering-users.md +++ b/docs/registering-users.md @@ -3,7 +3,6 @@ This documentation page tells you how to create user accounts on your Matrix server. Table of contents: - - [Registering users](#registering-users) - [Registering users manually](#registering-users-manually) - [Managing users via a Web UI](#managing-users-via-a-web-ui)