Skip to content

docs: fix 0.1.4 documentation gaps and enforce API doc hygiene#70

Merged
MaxMichel2 merged 3 commits into
mainfrom
docs/fix-0.1.4-documentation
Jul 22, 2026
Merged

docs: fix 0.1.4 documentation gaps and enforce API doc hygiene#70
MaxMichel2 merged 3 commits into
mainfrom
docs/fix-0.1.4-documentation

Conversation

@MaxMichel2

Copy link
Copy Markdown
Collaborator

Summary

  • KDoc fixesSection.NETWORK missing from all three bulleted KDoc lists in Section.kt; containerColor/contentColor extension properties had no KDoc at all; Module.kt ## Available Sections list was missing NETWORK
  • Doc site fixescontainerColour/contentColour typos in theming.md (wrong spelling and invalid MaterialTheme usage in a non-composable context); NetworkMockResourceLoader (added in v0.1.3) had no doc page; three Dokka placeholder links resolved; containerColor/contentColor missing from the Module interface listing in custom-modules.md; section-derived color defaults table added for v0.1.4
  • Pre-commit hook fixdetekt runs with autoCorrect = true but the hook was silently leaving corrections as unstaged diffs. Added git diff --exit-code after detektFull so the hook fails when auto-corrections occur, forcing them to be staged before the commit lands. Applied the pending ktlint corrections from the UI refresh files in the same commit.

Test plan

  • .\gradlew.bat detektFull passes
  • ./scripts/build_docs.sh --prep-only completes without error (regenerates Dokka with updated KDoc, copies CHANGELOG)
  • Spot-check rendered docs: theming.md color table, networkmock-core.md NetworkMockResourceLoader section, custom-modules.md Module interface listing
  • Verify pre-commit hook behaviour: make a formatting change, attempt commit — hook should fail and show the diff; stage the fix and retry — should pass

🤖 Generated with Claude Code

MaxMichel2 and others added 3 commits July 22, 2026 17:57
…workMockResourceLoader

- Section.kt: add NETWORK to all KDoc bulleted lists (Section Organization,
  Default Icons, Icon Mapping); add KDoc to containerColor and contentColor
  extension properties which had none
- Module.kt: add Section.NETWORK to the Available Sections KDoc list
- theming.md: fix containerColour/contentColour typos → containerColor/contentColor;
  fix invalid MaterialTheme usage in non-composable context (use Color literals);
  add section-derived defaults table (v0.1.4+); replace Dokka placeholder link
- custom-modules.md: add containerColor/contentColor to Module interface listing;
  replace Dokka placeholder link
- networkmock.md: replace Dokka placeholder link; remove redundant trailing line
- networkmock-core.md: add NetworkMockResourceLoader section (added in v0.1.3)
  with signature, basic usage, DI example, and rationale

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- CLAUDE.md: new Documentation Hygiene section — any metalava api.txt change
  must be accompanied by KDoc and doc site updates; checklist covers source
  KDoc, module pages, theming guide, custom-modules guide, and code samples
- update-docs skill: renamed to "4 coordinated changes", added step 4 for
  verifying KDoc is in sync (enum entries, extension properties, bulleted lists);
  added table row for changed enum entries/extension properties

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
detekt runs with autoCorrect=true, so the pre-commit hook was silently
rewriting files and leaving the corrections as unstaged diffs. Added
`git diff --exit-code` after detektFull so the hook fails when auto-
corrections occur, forcing them to be reviewed and re-staged before the
commit lands.

Also commits the ktlint formatting fixes that detekt had already applied
to the UI refresh files (import ordering, indentation, trailing commas).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MaxMichel2 MaxMichel2 self-assigned this Jul 22, 2026
@MaxMichel2 MaxMichel2 added bug Something isn't working documentation Improvements or additions to documentation labels Jul 22, 2026
@MaxMichel2 MaxMichel2 added this to the 0.2.0 milestone Jul 22, 2026
@MaxMichel2
MaxMichel2 requested a review from matthiaslao July 22, 2026 16:06
@MaxMichel2
MaxMichel2 merged commit 2c908cd into main Jul 22, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant