mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 16:28:59 +00:00
Replace remaining uses of shorthand codeblock syntax, add CI check
This commit is contained in:
Executable
+10
@@ -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
|
||||
Reference in New Issue
Block a user