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

Open
#385 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown, typescript
Domain
backend, data, testing

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.