Release v2.10.0: Implement progressive scale-ready UI navigation for growing datasets across /quant/, /graph/, /learn/, /engineering/, and /math/
This commit is contained in:
1 parent
f0aaae680f
commit
e788f357ff
36 files changed
+402
-176
No files matched your search
@@ -408,12 +408,21 @@ def _render_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_p
|
||||
f'<a class="btn" href="{rel_prefix}../index.html">Portal Home (/)</a>',
|
||||
f'<a class="btn" href="{rel_prefix}index.html" style="border-color:{"var(--gold)" if active_slug is None else "rgba(56,189,248,0.55)"};">Engineering Hub (E0)</a>',
|
||||
]
|
||||
for s in enabled_subpages:
|
||||
direct_pages = enabled_subpages[:6]
|
||||
overflow_pages = enabled_subpages[6:]
|
||||
for s in direct_pages:
|
||||
spec = ENGINEERING_SUBPAGE_SPECS[s]
|
||||
is_act = (s == active_slug)
|
||||
href = f"{s}/index.html" if active_slug is None else (f"../{s}/index.html" if not is_act else "index.html")
|
||||
style = "border-color:var(--gold);color:var(--gold);" if is_act else ""
|
||||
links.append(f'<a class="btn" href="{href}" style="{style}">{spec["short_title"]}</a>')
|
||||
if overflow_pages:
|
||||
opts = ['<option value="">More Units ▾</option>']
|
||||
for s in overflow_pages:
|
||||
spec = ENGINEERING_SUBPAGE_SPECS[s]
|
||||
href = f"{s}/index.html" if active_slug is None else (f"../{s}/index.html" if s != active_slug else "index.html")
|
||||
opts.append(f'<option value="{href}">{spec["short_title"]}</option>')
|
||||
links.append(f'<select class="btn hs-nav-overflow-select" onchange="if(this.value)window.location.href=this.value">{"".join(opts)}</select>')
|
||||
links.append(f'<a class="btn" href="{rel_prefix}../math/index.html">Math Hub (/math/)</a>')
|
||||
links.append(_render_polyglot_selector_html())
|
||||
links.append('<span class="nav-donate-sep" aria-hidden="true"></span>')
|
||||
@@ -546,11 +555,26 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
|
||||
</section>
|
||||
|
||||
<section class="panel hs-plate-g3" style="padding:1rem 1.2rem;">
|
||||
<h2 style="font-size:0.92rem;color:var(--cyan);margin-bottom:0.4rem;">Live Introspected CLI Entrypoints (pyproject.toml [project.scripts])</h2>
|
||||
<table>
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.6rem;margin-bottom:0.4rem;">
|
||||
<h2 style="font-size:0.92rem;color:var(--cyan);">Live Introspected CLI Entrypoints (pyproject.toml [project.scripts])</h2>
|
||||
<input type="text" id="engCliFilterInput" placeholder="Filter CLI command or module..." style="background:var(--bg-well);color:var(--text-main);border:1px solid var(--border);padding:0.25rem 0.55rem;font-size:0.71rem;font-family:inherit;width:230px;" aria-label="Filter CLI entrypoints" />
|
||||
</div>
|
||||
<table id="engCliTable">
|
||||
<thead><tr><th>CLI Command</th><th>Python Module:Function Target</th></tr></thead>
|
||||
<tbody>{cli_rows}</tbody>
|
||||
</table>
|
||||
<script>
|
||||
(function(){{
|
||||
var inp=document.getElementById("engCliFilterInput"),tbl=document.getElementById("engCliTable");
|
||||
if(!inp||!tbl)return;
|
||||
inp.addEventListener("input",function(){{
|
||||
var q=(inp.value||"").trim().toLowerCase();
|
||||
tbl.querySelectorAll("tbody tr").forEach(function(tr){{
|
||||
tr.style.display=(!q||tr.textContent.toLowerCase().indexOf(q)!==-1)?"":"none";
|
||||
}});
|
||||
}});
|
||||
}})();
|
||||
</script>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
|
||||
Reference in new issue
Block a user