Skip to content

Commit 28b8981

Browse files
Update README & add license
1 parent 3797d88 commit 28b8981

File tree

3 files changed

+112
-39
lines changed

3 files changed

+112
-39
lines changed

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Graph Technology Developers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 89 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,80 @@
11
# Graph Technology Developers — Hub
22

3-
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.
3+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4+
[![Node.js](https://img.shields.io/badge/node-%3E%3D22.0.0-brightgreen.svg)](https://nodejs.org/)
5+
[![npm](https://img.shields.io/badge/npm-%3E%3D10.0.0-blue.svg)](https://www.npmjs.com/)
6+
[![Built with Eleventy](https://img.shields.io/badge/Built%20with-Eleventy-blueviolet.svg)](https://www.11ty.dev/)
7+
[![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue.svg)](https://www.typescriptlang.org/)
48

5-
## Prerequisites
9+
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.
610

7-
- Node.js 22+
8-
- npm 10+
11+
## Quick Start
912

10-
## Setup
13+
Get up and running in minutes:
1114

1215
```sh
16+
# Install dependencies
1317
npm install
14-
```
15-
16-
## Development
1718

18-
```sh
19+
# Start development server
1920
npm run dev
2021
```
2122

22-
- Runs esbuild in watch mode and Eleventy dev server at `http://localhost:8080`.
23-
- Source directories live in `src/`.
23+
Visit `http://localhost:8080` to see your local site. The dev server watches for changes and rebuilds automatically.
2424

25-
## Build
25+
## Prerequisites
2626

27-
```sh
28-
npm run build
29-
```
27+
- **Node.js** 22+ ([download](https://nodejs.org/))
28+
- **npm** 10+ (comes with Node.js)
3029

31-
- Outputs static site to `dist/` for deployment.
30+
## Development Guide
3231

33-
Preview the built site locally:
32+
### Project Structure
3433

35-
```sh
36-
npm run preview
34+
```
35+
src/
36+
├── _data/ # Site metadata and configuration
37+
├── _includes/ # Nunjucks templates and partials
38+
├── assets/ # Static assets (icons, images)
39+
├── content/ # Markdown pages
40+
├── css/ # Stylesheets
41+
├── data/ # Graph data (nodes and links)
42+
└── js/ # TypeScript source files
3743
```
3844

39-
## Editing Content
45+
### Available Scripts
4046

41-
- Homepage: `src/index.njk`
42-
- Markdown pages: `src/content/*.md`
43-
- Graph data: `src/data/graph.json`
44-
- CSS: `src/css/base.css`, `src/css/graph.css`
45-
- Scripts: `src/js/*.ts`
47+
| Command | Description |
48+
|---------|-------------|
49+
| `npm run dev` | Start development server with hot reload |
50+
| `npm run build` | Build production site to `dist/` |
51+
| `npm run preview` | Preview built site locally |
52+
| `npm run lint` | Type-check TypeScript files |
53+
| `npm run clean` | Remove build artifacts |
4654

47-
### Adding Nodes or Links
55+
### Editing Content
56+
57+
**Homepage**
58+
- Edit `src/index.njk` for the main page structure
59+
- Modify the hero section and CTA buttons here
60+
61+
**Markdown Pages**
62+
- All `.md` files in `src/content/` become pages
63+
- Front matter controls metadata and layout
64+
65+
**Graph Data**
66+
- Edit `src/data/graph.json` to add/remove nodes and links
67+
- Run `npm run build` after changes to regenerate the site
68+
69+
**Styling**
70+
- `src/css/base.css` - Base styles and typography
71+
- `src/css/graph.css` - Graph-specific styles
72+
73+
**TypeScript**
74+
- All scripts in `src/js/` are compiled via esbuild
75+
- Changes trigger rebuilds in watch mode
76+
77+
### Adding Nodes or Links to the Graph
4878

4979
Edit `src/data/graph.json`:
5080

@@ -53,10 +83,10 @@ Edit `src/data/graph.json`:
5383
"nodes": [
5484
{
5585
"id": "unique-id",
56-
"label": "Name",
86+
"label": "Node Name",
5787
"type": "topic",
5888
"href": "/path/",
59-
"description": "Short description.",
89+
"description": "Short description for tooltips.",
6090
"tags": ["tag1", "tag2"],
6191
"pinned": false
6292
}
@@ -67,27 +97,48 @@ Edit `src/data/graph.json`:
6797
}
6898
```
6999

70-
After updates, run `npm run build` to regenerate the site.
100+
**Node Types:**
101+
- `hub` - Central navigation node
102+
- `topic` - Topic or category
103+
- `asset` - External resource or link
104+
105+
**Link Kinds:**
106+
- `relates` - General relationship
107+
- `belongs` - Hierarchical relationship
108+
- `references` - Reference link
109+
110+
After editing graph data, rebuild with `npm run build`.
71111

72112
## Deployment
73113

74-
- GitHub Pages via `.github/workflows/pages.yml`
75-
- Custom domain `graphtech.dev` configured via `CNAME`
114+
This site is deployed to **GitHub Pages**:
76115

77-
Push to `main` to trigger the Pages workflow.
116+
- Custom domain: `graphtech.dev` (configured via `CNAME`)
117+
- Push to `main` branch to trigger deployment
118+
- Built site output: `dist/`
78119

79-
## Testing & Performance
120+
## Performance & Testing
80121

81-
- Run Lighthouse against `dist/` or deployed site (target ≥ 90 mobile Perf/Accessibility).
82-
- JS bundle budget: ≤ 200KB gzipped (D3 + modules bundled via esbuild).
83-
- Prefers-reduced-motion respected by graph interactions.
122+
- **Lighthouse**: Target ≥ 90 mobile Performance/Accessibility
123+
- **Bundle Size**: JS bundle budget ≤ 200KB gzipped
124+
- **Accessibility**: Prefers-reduced-motion respected for graph interactions
84125

85126
## Analytics
86127

87-
- Plausible (`data-domain="graphtech.dev"`) collects page views and custom events (`graph_node_hover`, `graph_node_click`, `graph_filter_used`).
128+
Plausible Analytics tracks:
129+
- Page views
130+
- Custom events: `graph_node_hover`, `graph_node_click`, `graph_filter_used`
131+
132+
## Join the Community
133+
134+
Connect with fellow graph technology developers:
135+
136+
- **[Join the X Community](https://x.com/i/communities/1977449294861881612)** - Daily threads, pulses, and data drops. Share schemas, queries, datasets, and benchmarks.
137+
- **[Follow @codegraphtheory](https://github.com/codegraphtheory)** - Personal GitHub profile with educational resources and projects
138+
- **[Explore GraphTechnologyDevelopers](https://github.com/GraphTechnologyDevelopers)** - Organization hub for graph tech resources and templates
88139

89140
## License
90141

91-
MIT
142+
MIT License - see [LICENSE](LICENSE) file for details.
92143

93144

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"keywords": [],
2222
"author": "",
23-
"license": "ISC",
23+
"license": "MIT",
2424
"bugs": {
2525
"url": "https://github.com/GraphTechnologyDevelopers/graphtech.dev/issues"
2626
},

0 commit comments

Comments
 (0)