Replace remaining uses of shorthand codeblock syntax, add CI check

This commit is contained in:
Danil Alexeev
2025-07-25 16:20:16 -04:00
committed by skyace65
parent c2d94e2db9
commit 3946ede7aa
22 changed files with 243 additions and 120 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -uo pipefail
output=$(grep -r -P '^(?!\s*\.\.).*\S::$' --include='*.rst' --exclude='docs_writing_guidelines.rst' .)
if [[ -n $output ]]; then
echo 'The shorthand codeblock syntax (trailing `::`) is not allowed.'
echo "$output"
exit 1
fi