Improve Tibi docs coverage and screenshot placement

This commit is contained in:
apairon committed 2026-10-18 09:36:37 +00:00
1 parent 7409bc2406
commit 15c1976c60
23 files changed
+417 -351

No files matched your search

+13 -6
View File
@@ -234,7 +234,8 @@ for (const f of files) {
stats.asciiUmlauts.push(rel(f));
if (/(?:waehl|einstell(?:ung)?en?|benutz(?:er)?|sc(?:h)luessel)/i.test('') ) {} // noop
// Hüllen-Reste (nur Fließtext — in Codeblöcken sind „Platzhalter"/„TODO" legitime Beispieltexte)
// Hüllen-Reste (nur konkrete Redaktionsmarker; Fachbegriffe wie „Platzhalter"
// und gültige Zustandsbeschreibungen wie „noch nicht registriert" sind kein Befund.)
const proseText = (() => {
const out = [];
let f = false;
@@ -244,14 +245,20 @@ for (const f of files) {
}
return out.join('\n');
})();
['Für spätere Agenten', 'TODO', 'FIXME', 'noch nicht', 'Hülle', 'Platzhalter', 'TBD', 'WIP']
.forEach((k) => {
const idx = proseText.indexOf(k);
[
{ label: 'Für spätere Agenten', pattern: /Für spätere Agenten/i },
{ label: 'TODO/FIXME/TBD/WIP', pattern: /\b(?:TODO|FIXME|TBD|WIP)\b/i },
{ label: 'Hülle', pattern: /\bHülle\b/i },
{ label: 'unersetzter Platzhalter-Vermerk', pattern: /\bStand\s*:\s*Platzhalter\b/i },
].forEach(({ label, pattern }) => {
const match = pattern.exec(proseText);
if (!match) return;
const idx = match.index;
if (idx < 0) return;
const line = proseText.slice(0, idx).split(/\r?\n/).length;
const ctx = proseText.split(/\r?\n/)[line - 1]?.trim().slice(0, 110) ?? '';
add(f, 'hollow', `Marker "${k}": ${ctx}`, line);
stats.hollowMarkers.push(`${rel(f)}:${line} ${k}`);
add(f, 'hollow', `Marker "${label}": ${ctx}`, line);
stats.hollowMarkers.push(`${rel(f)}:${line} ${label}`);
});
// Verbotene Namen