fix: reproduce legacy diagnostic publications

This commit is contained in:
Dandaedre 2026-09-16 03:30:10 +02:00
parent 8c7ae54cac
commit d18057169c
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
4 changed files with 21 additions and 5 deletions

View File

@ -15,6 +15,13 @@ See [`reporter/examples`](reporter/examples) for complete inputs.
## Generate one diagnostic report
```bash
./beffroi.sh diagnostic-pdf capture.json diagnostic.pdf
```
This renders the capture directly with the established diagnostic layout. For
the evidence-backed analysis workflow, run:
```bash
./beffroi.sh diagnostic \
capture.json /path/to/evidence /path/to/new-output \
@ -44,6 +51,7 @@ destination.
```text
./beffroi.sh report INPUT OUTPUT.pdf
./beffroi.sh diagnostic-pdf CAPTURE OUTPUT.pdf
./beffroi.sh diagnostic CAPTURE EVIDENCE_ROOT OUTPUT_DIR REFERENCE_TIME TITLE AUTHOR DATE
./beffroi.sh all NEW_OUTPUT_DIR
./beffroi.sh package BUILD_DIR ARTIFACT_DIR

View File

@ -6,6 +6,7 @@ usage() {
cat <<'EOF'
Usage:
./beffroi.sh report INPUT OUTPUT.pdf
./beffroi.sh diagnostic-pdf CAPTURE OUTPUT.pdf
./beffroi.sh diagnostic CAPTURE EVIDENCE_ROOT OUTPUT_DIR REFERENCE_TIME TITLE AUTHOR DATE
./beffroi.sh all NEW_OUTPUT_DIR
./beffroi.sh package BUILD_DIR ARTIFACT_DIR
@ -28,6 +29,13 @@ case "$command_name" in
[[ $# -eq 2 ]]||usage 2; require typst
reporter/render.sh "$1" --output "$2"
;;
diagnostic-pdf)
[[ $# -eq 2 ]]||usage 2; require typst
reporter/render-diagnostic.sh "$1" \
--output "$2" \
--author "${DIAGNOSTICS_AUTHOR:-Beffroi}" \
--logo reports/assets/beffroi.png
;;
diagnostic)
[[ $# -eq 7 ]]||usage 2; require git typst
scripts/workflow.sh all "$@"

@ -1 +1 @@
Subproject commit 23e456e826851c5c54a2cd98412c9f0814755635
Subproject commit d4b0f9f175a08ccaa490cda6d33e63f18a330e62

View File

@ -8,8 +8,8 @@ mkdir -p "$output_root/reports" "$output_root/diagnostics"
reports/tools/convert-legacy-reports.sh reports/reports "$output_root/reports/sources"
reporter/tools/validate-all.sh "$output_root/reports/sources"
reporter/tools/render-all.sh "$output_root/reports/sources" --output-dir "$output_root/reports/pdfs"
scripts/workflow-all.sh reports/diagnostics \
reports/diagnostics "$output_root/diagnostic-work" \
2026-09-15T12:15:00Z 'Windows diagnostic assessment' "${DIAGNOSTICS_AUTHOR:-Beffroi}" 2026-09-15
cp -R "$output_root/diagnostic-work/pdfs/." "$output_root/diagnostics/"
reporter/render-diagnostics.sh reports/diagnostics \
--output-dir "$output_root/diagnostics" \
--author "${DIAGNOSTICS_AUTHOR:-Beffroi}" \
--logo reports/assets/beffroi.png
echo "Built publishable reports under $output_root"