From f1eea67c417171d0f68f7985db033cf16e11a4c5 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 5 Dec 2023 23:57:35 +0200 Subject: [PATCH] Add green and red side border for good and bad examples --- _static/devguide_overrides.css | 7 +++++++ getting-started/git-boot-camp.rst | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/_static/devguide_overrides.css b/_static/devguide_overrides.css index a8e96a43c..e86b6c177 100644 --- a/_static/devguide_overrides.css +++ b/_static/devguide_overrides.css @@ -78,3 +78,10 @@ fill: #2222EE; stroke: #008888; } + +.good pre { + border-left: 3px solid rgba(74, 182, 93, 1); +} +.bad pre { + border-left: 3px solid rgb(244, 76, 78); +} diff --git a/getting-started/git-boot-camp.rst b/getting-started/git-boot-camp.rst index fd080320e..3783f9141 100644 --- a/getting-started/git-boot-camp.rst +++ b/getting-started/git-boot-camp.rst @@ -492,6 +492,7 @@ In either case, adjust and clean up the commit message. ✅ Here's an example of a **good** commit message: .. code-block:: text + :class: good gh-12345: Improve the spam module (GH-777) @@ -501,6 +502,7 @@ In either case, adjust and clean up the commit message. ❌ Here's an example of a **bad** commit message: .. code-block:: text + :class: bad gh-12345: Improve the spam module (#777) @@ -576,6 +578,7 @@ one as is and delete the number of the backport pull request. ✅ Example of good backport commit message: .. code-block:: text + :class: good gh-12345: Improve the spam module (GH-777) @@ -587,6 +590,7 @@ one as is and delete the number of the backport pull request. ❌ Example of bad backport commit message: .. code-block:: text + :class: bad gh-12345: Improve the spam module (GH-777) (#888)