Show the reference tables collapsed and the task guide on expand, from one file

This commit is contained in:
Gmer4Lfe
2026-08-04 19:45:23 -04:00
parent 64a28acd64
commit 87fa2693f0
3 changed files with 49 additions and 15 deletions
+14 -2
View File
@@ -507,12 +507,24 @@ $runningScripts = array_unique($runningScripts);
<!-- Rendered from pages/readme/scheduler-readme.md, not maintained here. That file is
also what the AI tab retrieves, so the panel you read and the answer the
assistant gives are the same text and cannot drift — the same argument that
makes this page parse script PURPOSE blocks instead of restating them. -->
makes this page parse script PURPOSE blocks instead of restating them.
Two tiers, one file. Collapsed leaves the reference tables visible: that is the
terse per-control lookup this panel has always been, and it is what you want
open while actually working. Expanding adds the task guide above it — the
walkthroughs you need once and then stop reading. The split is taken from the
section titles, so neither tier is a second copy of anything.
vvToggleSug() toggles the header's immediate next sibling, so the guide must
stay directly after the header and the quick tier must sit outside it. -->
<div class="vv-sug-body vv-info-body">
<div class="vv-doc">
<?= vv_docs_render('Plugin/unraid/pages/readme/scheduler-readme.md', $_vv_doc_vars) ?>
<?= vv_docs_render('Plugin/unraid/pages/readme/scheduler-readme.md', $_vv_doc_vars,
fn($h) => !is_string($h) || !str_starts_with($h, 'Reference —')) ?>
</div>
</div>
<div class="vv-info-body vv-doc vv-doc-quick">
<?= vv_docs_render('Plugin/unraid/pages/readme/scheduler-readme.md', $_vv_doc_vars,
fn($h) => is_string($h) && str_starts_with($h, 'Reference —')) ?>
</div>
</div>
<!-- ── Next Runs ── -->