Fix enterprise category not generating HTML pages#46
Merged
brunoborges merged 4 commits intomainfrom Feb 19, 2026
Merged
Conversation
Co-authored-by: brunoborges <[email protected]>
Co-authored-by: brunoborges <[email protected]>
Copilot
AI
changed the title
[WIP] Fix enterprise category not showing any slug
Fix enterprise category not generating HTML pages
Feb 19, 2026
Contributor
|
@copilot let's externalize the category display map to an external properties file that can be easily consumed by the java and python generators. |
…ties Co-authored-by: brunoborges <[email protected]>
Contributor
Author
Done in commit language=Language
collections=Collections
strings=Streams
...
enterprise=EnterpriseBoth |
brunoborges
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
generate.java(used by the deploy workflow) was missing"enterprise"from itsCATEGORY_DISPLAYmap. SinceloadAllSnippets()iterates overCATEGORY_DISPLAY.sequencedKeySet(), the entirecontent/enterprise/directory was silently skipped — no index cards and no detail pages were ever generated for enterprise patterns.Changes
html-generators/categories.properties— New file that serves as the single source of truth for category ID-to-display-name mappings; adding a new category now only requires editing this one filehtml-generators/generate.java— Replaced hardcodedCATEGORY_DISPLAYmap with aloadCategoryDisplay()method that reads fromcategories.propertieshtml-generators/generate.py— Replaced hardcodedCATEGORY_DISPLAYdict and inline category list with aload_category_display()function that reads fromcategories.properties;load_all_snippets()now iterates overCATEGORY_DISPLAY.keys()instead of a separate hardcoded list.gitignore— Addsite/enterprise/*.htmlto align with all other category HTML files (generated artifacts, not source-controlled); remove the four previously-committed enterprise HTML files from trackingOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.