Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hub for Graph Technology Developers community.

License

NotificationsYou must be signed in to change notification settings

GraphTechnologyDevelopers/graphtech.dev

Repository files navigation

License: MITNode.jsnpmBuilt with EleventyTypeScript

Static site powered by Eleventy (11ty), TypeScript (esbuild), and D3.js. The site delivers an SEO-friendly hub with a progressively-enhanced graph navigation experience.

Quick Start

Get up and running in minutes:

# Install dependenciesnpm install# Start development servernpm run dev

Visithttp://localhost:8080 to see your local site. The dev server watches for changes and rebuilds automatically.

Prerequisites

  • Node.js 22+ (download)
  • npm 10+ (comes with Node.js)

Development Guide

Project Structure

src/├── _data/          # Site metadata and configuration├── _includes/      # Nunjucks templates and partials├── assets/         # Static assets (icons, images)├── content/        # Markdown pages├── css/            # Stylesheets├── data/           # Graph data (nodes and links)└── js/             # TypeScript source files

Available Scripts

CommandDescription
npm run devStart development server with hot reload
npm run buildBuild production site todist/
npm run previewPreview built site locally
npm run lintType-check TypeScript files
npm run cleanRemove build artifacts

Editing Content

Homepage

  • Editsrc/index.njk for the main page structure
  • Modify the hero section and CTA buttons here

Markdown Pages

  • All.md files insrc/content/ become pages
  • Front matter controls metadata and layout

Graph Data

  • Editsrc/data/graph.json to add/remove nodes and links
  • Runnpm run build after changes to regenerate the site

Styling

  • src/css/base.css - Base styles and typography
  • src/css/graph.css - Graph-specific styles

TypeScript

  • All scripts insrc/js/ are compiled via esbuild
  • Changes trigger rebuilds in watch mode

Adding Nodes or Links to the Graph

Editsrc/data/graph.json:

{"nodes": [    {"id":"unique-id","label":"Node Name","type":"topic","href":"/path/","description":"Short description for tooltips.","tags": ["tag1","tag2"],"pinned":false    }  ],"links": [    {"source":"hub","target":"unique-id","kind":"relates" }  ]}

Node Types:

  • hub - Central navigation node
  • topic - Topic or category
  • asset - External resource or link

Link Kinds:

  • relates - General relationship
  • belongs - Hierarchical relationship
  • references - Reference link

After editing graph data, rebuild withnpm run build.

Deployment

This site is deployed toGitHub Pages:

  • Custom domain:graphtech.dev (configured viaCNAME)
  • Push tomain branch to trigger deployment
  • Built site output:dist/

Performance & Testing

  • Lighthouse: Target ≥ 90 mobile Performance/Accessibility
  • Bundle Size: JS bundle budget ≤ 200KB gzipped
  • Accessibility: Prefers-reduced-motion respected for graph interactions

Analytics

Plausible Analytics tracks:

  • Page views
  • Custom events:graph_node_hover,graph_node_click,graph_filter_used

Join the Community

Connect with fellow graph technology developers:

License

MIT License - seeLICENSE file for details.


[8]ページ先頭

©2009-2025 Movatter.jp