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
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ Content files are YAML (preferred) or JSON under `content/{category}/{slug}.yaml
48
48
|`category`| Must match parent folder name |
49
49
|`whyModernWins`| Exactly **3** entries, each with `icon`, `title`, `desc`|
50
50
|`related`| Exactly **3** entries as `category/slug` paths (cross-category OK) |
51
+
|`tags`| Non-empty list of slugs registered in `html-generators/tags.properties`|
51
52
|`docs`| At least **1** entry with `title` and `href`|
52
53
|`prev` / `next`|`category/slug` path or `null` for first/last in the global chain |
53
54
|`jdkVersion`| The JDK version where the feature became **final** (not preview) |
@@ -57,10 +58,11 @@ Content files are YAML (preferred) or JSON under `content/{category}/{slug}.yaml
57
58
### Adding a new pattern
58
59
59
60
1. Create `content/{category}/new-slug.yaml` with all required fields (use `content/template.json` as reference).
60
-
2. Update `prev`/`next` in the adjacent patterns to maintain the navigation chain.
61
-
3. Create `proof/{category}/{PascalCaseSlug}.java` — JBang script wrapping the modern code.
62
-
4. Run `jbang html-generators/generate.java` and verify it completes.
63
-
5. Translations are optional — the AI translation workflow handles them, or create partial files under `translations/content/{locale}/`.
61
+
2. Add a non-empty `tags` list. Every tag slug must already exist in `html-generators/tags.properties`; add new `slug=Display Name` entries there in the same change.
62
+
3. Update `prev`/`next` in the adjacent patterns to maintain the navigation chain.
63
+
4. Create `proof/{category}/{PascalCaseSlug}.java` — JBang script wrapping the modern code.
64
+
5. Run `jbang html-generators/generate.java` and verify it completes. The generator rejects missing, empty, malformed, and unregistered tags.
65
+
6. Translations are optional — the AI translation workflow handles them, or create partial files under `translations/content/{locale}/`.
0 commit comments