Skip to content

docs: add config.toml Configuration section, trim README links, shrink hero image#28

Merged
saadmanrafat merged 1 commit into
mainfrom
claude/readme-config-setup-65683b
Jul 23, 2026
Merged

docs: add config.toml Configuration section, trim README links, shrink hero image#28
saadmanrafat merged 1 commit into
mainfrom
claude/readme-config-setup-65683b

Conversation

@saadmanrafat

@saadmanrafat saadmanrafat commented Jul 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a Configuration section to the README documenting config.toml, with a copy-paste-safe shell snippet (quoted heredoc + sed) that writes the full [record]/[replay]/[storage]/[redaction] example without mangling regex escapes or requiring manual home-directory substitution — verified end-to-end against hh-core's actual TOML parser (byte-exact escaping, correct $HOME fill-in, valid regex).
  • Include a ready-made [redaction] rules pack (AI/ML platforms, payment processors, package registries, DB URLs) that fills gaps the built-in detectors don't cover, per hh-core/src/config.rs.
  • Replace external halfhandorg.github.io links (badge + 4 prose links) with local docs/*.md references so the README doesn't depend on the Pages site being live.
  • docs/redaction.md now points back to the README's Configuration section instead of duplicating the same block, to keep one source of truth.
  • Crop/strip/downscale the hero logo asset (docs/assets/halfhand-cli.png): removed a noisy background and shrank it from 2048×2048 / 4.94 MiB to 280×280 / 55 KiB, displayed at a fixed width="120" in the README.

Test plan

  • Confirmed config.toml schema (field names, RedactionRule{name,pattern} shape, Theme enum values) against hh-core/src/config.rs.
  • Verified the heredoc+sed script produces byte-exact regex escaping and correct $HOME substitution; parsed the result with Python's tomllib to confirm validity.
  • Confirmed no other file in the repo (Cargo.toml, docs/book.toml, CI, RELEASING.md) references a halfhand.org domain, so README links now point at existing local docs files instead.
  • Manual render check of the README on GitHub (not done in this session).

README:
- Add a Configuration section documenting config.toml, including a
  copy-paste-safe shell snippet (quoted heredoc + sed) that writes the
  full record/replay/storage/redaction example without mangling regex
  escapes or requiring manual home-directory substitution.
- Include a ready-made [redaction] rules pack covering AI/ML platforms,
  payment processors, package registries, and database URLs not caught
  by the built-in detectors.
- Drop the Docs CI badge and replace external halfhandorg.github.io links
  with local docs/*.md references so they don't depend on the Pages site.
- Shrink the hero image display to width=120 via an <img> tag.

docs/redaction.md:
- Point the "ready-made rules" note back at the README's Configuration
  section instead of duplicating the full example, to keep one source
  of truth.

docs/assets/halfhand-cli.png:
- Crop to the logo mark, strip the noisy background to transparency,
  and downscale (2048x2048/4.94MiB -> 280x280/55KiB).
@saadmanrafat
saadmanrafat merged commit 4279231 into main Jul 23, 2026
13 checks passed
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