[Docs] Generate a knowledge-graph dataset (graph.json) from manifests and frontmatter

Aperta
#385 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
markdown, typescript
Ambito
backend, data, testing

Direzione di ricerca

Start with docs/src/content.config.ts and inspect the project manifests, concept files, and MDX frontmatter listed in the issue to see how their data is represented. Then trace how Astro emits endpoints from src/pages/; the proposed endpoint is src/pages/graph.json.ts. Done means the build emits schema-validated dist/graph.json, the tests cover dangling references, concept coverage, and unique slugs, and CONTENT_GUIDE documents schema v1.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: docs-site priority: P2 size: M type: enhancement

Summary

To build an Obsidian-style graph of projects and math concepts, the site needs a validated graph dataset derived from data (not hand-drawn). Relations currently exist only implicitly (e.g. three separate Mandelbrot projects, Lorenz implementations in both Lorenz-Attractor and Theories_Visuals).

Location

  • docs/src/content.config.ts
  • Mandlebrot/
  • Math_Chaos/Lorenz-Attractor/
  • Math_Chaos/Theories_Visuals/

Evidence

Related-but-unlinked projects today: Mandelbrot appears in Mandlebrot/Fractal-gh, Mandlebrot/Mandelbrot-Coloring, Mandlebrot/Mandelbrot-set-explorer, Math_Chaos/Chaos_Patterns/mandelbrot-set, Math_Chaos/Buddhabrot_Computation; no page links to the others.

Expected

/graph.json emitted at build time with a documented, versioned schema and tests.

Proposed fix

Schema v1:

type Node = { id: string; kind: 'project'|'concept'|'field'|'language'; label: string; url: string; stage?: number; field?: string; weight: number };
type Edge = { source: string; target: string; kind: 'implements'|'uses'|'related'|'prerequisite'|'written-in'|'part-of'; weight?: number };
type Graph = { version: 1; generatedAt: string; commit: string; nodes: Node[]; edges: Edge[] };

Sources: project manifests (concepts, related, languages), page frontmatter (concepts), concept files (prerequisites, field), and <Ref>/wiki-style [[concept]] links found in MDX (remark plugin collects them). Implemented as an Astro endpoint src/pages/graph.json.ts; Vitest unit tests check: no dangling edges, every project has >= 1 concept, ids are unique slugs.

Acceptance criteria

  • dist/graph.json produced on build and validated by a JSON Schema
  • Unit tests fail on dangling references
  • Schema documented in CONTENT_GUIDE

Repository audit, November 2026 · Phase 8 · Knowledge graph · evidence: found by code reading · ref platform-035


Generated by Claude Code

Lingua principale
C++
Stelle
2
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ibra-kdbra/Math-Problems

Tutte le issue di ibra-kdbra/Math-Problems

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.