You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Source of truth**: Individual `content/category/slug.json` files (85 across 10 category folders)
47
+
-**Source of truth**: Individual `content/category/slug.json` files (107 across 11 category folders)
40
48
-**Templates**: `templates/` — shared HTML templates with `{{placeholder}}` tokens
41
49
-**Generator**: `html-generators/generate.jar` — pre-built fat JAR that produces all HTML detail pages and `data/snippets.json`
42
50
-**Deploy**: GitHub Actions runs the generator and deploys to GitHub Pages
@@ -69,10 +77,10 @@ For development on the generator itself, you can use JBang or Python — see [ht
69
77
Contributions are welcome! Content is managed as JSON files — never edit generated HTML.
70
78
71
79
1. Fork the repo
72
-
2. Create or edit a JSON file in the appropriate content folder (e.g. `content/language/my-feature.json`)
73
-
3.Follow the [snippet JSON schema](.github/copilot-instructions.md) for all required fields
74
-
4.Run `java -jar html-generators/generate.jar` to verify your changes build correctly
75
-
5.Update `site/index.html` with a new preview card if adding a new snippet
80
+
2. Create a new JSON file in the appropriate `content/<category>/` folder (e.g. `content/language/my-feature.json`)
81
+
3.Copy [`content/template.json`](content/template.json) to the new file as a starting point for all required fields (see the [snippet JSON schema](.github/copilot-instructions.md) for details)
82
+
4.Update the `prev`/`next` fields in adjacent pattern JSON files to maintain navigation
83
+
5.Run `jbang html-generators/generate.java` to verify your changes build correctly
76
84
6. Open a pull request
77
85
78
86
Please ensure JDK version labels only reference the version where a feature became **final** (non-preview).
0 commit comments