Repository navigation
Fix the docs generator, tidy the module reference, and wire fabric.mod.json to the build - #1
Merged
Merged
Conversation
…d.json to the build tools/gen_docs.py could not reproduce the committed MODULES.md. It lost any setting whose type has nested generics (Setting<List<Item>>), read a default only up to the first closing bracket so list and colour defaults came out as slices of Java source, and missed enum constants that carry a comment. Its README step looked for a heading the README no longer has and would have appended a second module list. It now strips comments before parsing, reads defaults with their brackets balanced, renders list and colour defaults readably, and only replaces the backticked line under the existing "Every module" heading. Its default root is the repository the script lives in. MODULES.md is regenerated with it: the same 96 modules and 918 settings, with the ten list defaults and 106 colour defaults now readable, and the Noclip and Speed mode lists complete. fabric.mod.json now takes its version and Minecraft version from the build, which already expands those placeholders but had nothing to expand, and its description no longer lists the five modules the addon started with. Swarm drops a worker whose socket has gone away instead of counting it forever, and rare-finder++ no longer lists conduit and netherite block twice. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X5XR1gkXueoNmUYWMN5UNp
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
What this changes
tools/gen_docs.py could not reproduce the committed MODULES.md. Running it in the repo produced 908 settings against the 918 the file describes, because:
Setting<List<Item>>) was skipped by the type regex;List.of(...)andnew SettingColor(...)defaults came out as slices of Java source (the committed file had 22 lines of rawItems.Xand 106 colours ending mid-bracket);Flying, Speed onlySimple);## Every moduleheading the README no longer has and would have appended a second module list under the hand-laid-out one.It now strips comments before parsing, reads defaults with their brackets balanced, renders list defaults as their items and colours as
rgba(...), and only replaces the backticked line under the existing "Every module, one line" heading. The default root is the repository the script lives in rather than a path that no longer exists.MODULES.md is regenerated with it. Same 96 modules and 918 settings, same names, same descriptions; only the default renderings and the two mode lists change.
fabric.mod.json now uses
${version}and${mc_version}, whichprocessResourcesalready expands but had nothing to expand, somod_versionin gradle.properties actually reaches the jar. Its description no longer lists the five modules the addon started with.Swarm drops a worker whose socket has gone away instead of counting it forever. rare-finder++ no longer lists conduit and netherite block twice.
Checks
python3 tools/check_sources.pypasses.python3 tools/gen_docs.pyis idempotent and leaves README.md untouched.🤖 Generated with Claude Code
https://claude.ai/code/session_01X5XR1gkXueoNmUYWMN5UNp
Generated by Claude Code