feat: add working application and synthetic sample data
GBB Demo authored on Nov 2, 2026
commit 1ebffdaaff69
Root commit: changes are relative to an empty tree.
4 files changed, +31 −0
- .gitignore+3 −0@@ -1,0 +1,3 @@1+__pycache__/2+node_modules/3+.env
- README.md+5 −0@@ -1,0 +1,5 @@1+# Docs Portal2+3+A static documentation portal with searchable articles and stable URL slugs.4+5+Synthetic evaluation project.
- app.mjs+8 −0@@ -1,0 +1,8 @@1+export function slug(title) {2+ return title.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");3+}4+export function search(articles, query) {5+ const needle = query.trim().toLowerCase();6+ return articles.filter(article => `${article.title} ${article.body}`.toLowerCase().includes(needle));7+}8+
- data/sample.json+15 −0@@ -1,0 +1,15 @@1+{2+ "environment": "demo",3+ "items": [4+ {5+ "id": "sample-1",6+ "name": "Explore the source",7+ "done": true8+ },9+ {10+ "id": "sample-2",11+ "name": "Review the draft PR",12+ "done": false13+ }14+ ]15+}