Skip to content

Fix the docs generator, tidy the module reference, and wire fabric.mod.json to the build - #1

Merged
Eabusham2 merged 1 commit into
mainfrom
claude/issue-review-uq1hzc
Sep 25, 2026
Merged

Eabusham2 merged 1 commit into
mainfrom
claude/issue-review-uq1hzc

Conversation

@Eabusham2

Copy link
Copy Markdown
Owner

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:

  • any setting whose type has nested generics (Setting<List<Item>>) was skipped by the type regex;
  • a default was read only up to the first closing bracket, so List.of(...) and new SettingColor(...) defaults came out as slices of Java source (the committed file had 22 lines of raw Items.X and 106 colours ending mid-bracket);
  • enum constants that carry a comment were dropped from the Modes lines (Noclip showed only Flying, Speed only Simple);
  • its README step looked for a ## Every module heading 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}, which processResources already expands but had nothing to expand, so mod_version in 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.py passes.
  • python3 tools/gen_docs.py is idempotent and leaves README.md untouched.
  • The Java changes are three lines; the sandbox could not run Gradle (Maven Central rate-limits it), so CI is the compile check.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X5XR1gkXueoNmUYWMN5UNp


Generated by Claude Code

…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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Eabusham2
Eabusham2 merged commit c937a23 into main Sep 25, 2026
2 checks passed
@Eabusham2
Eabusham2 deleted the claude/issue-review-uq1hzc branch September 25, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant