KISC arch init
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
DOC_PATH="${1:-KISC-merkarhitektura-apraksts.md}"
|
||||
|
||||
if [ ! -f "$DOC_PATH" ]; then
|
||||
echo "ERROR: regenerated doc not found: $DOC_PATH"
|
||||
echo "Hint: pass path as argument, e.g.: tools/qa/check_generated_doc_headings.sh docs/output.md"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
need_heading() {
|
||||
h="$1"
|
||||
if ! grep -Eq "^[#]{1,6}[[:space:]]+$h([[:space:]]|\$)" "$DOC_PATH"; then
|
||||
echo "ERROR: missing heading: $h"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Required headings (core completeness gates)
|
||||
need_heading "1.2 Iesaistītās puses"
|
||||
need_heading "1.3 Saīsinājumi"
|
||||
need_heading "1.4 Saistītie dokumenti"
|
||||
need_heading "4.1 Juridiskais skats"
|
||||
need_heading "5.1 Pasākumu plāns"
|
||||
need_heading "5.2 Mijiedarbība ar citām jomām"
|
||||
need_heading "5.3 Riski"
|
||||
|
||||
echo "OK: required headings exist in $DOC_PATH"
|
||||
Reference in New Issue
Block a user