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

オープン
#385 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
markdown, typescript
領域
backend, data, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C++
スター
2
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ibra-kdbra/Math-Problems のほかの issue

ibra-kdbra/Math-Problems の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。