Skip to content

Render --help=notice and --help=license from the help model - #390

Merged
helly25 merged 1 commit into
mainfrom
help/port-notice-license
Aug 8, 2026
Merged

Render --help=notice and --help=license from the help model#390
helly25 merged 1 commit into
mainfrom
help/port-notice-license

Conversation

@helly25

@helly25 helly25 commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Fourth slice of retiring the imperative prose-topic renderers (EPIC #154; follows #387 stats, #388 config, #389 cookbook).

What

  • help_build.cc: add NoticeSection() and LicenseSection(), each a title-less section holding an Example. A title-less section adds no heading and does not indent, so the Example renders byte-exact at column 0 - exactly what verbatim legal text needs (no reflow, no fence), with the copyright leading --help=license (task docs+engine: wire CLAUDE.md -> AGENTS.md -> STYLE_CPP.md; adopt the style in the walk #142).
  • Route notice/notices and license/licenses through TopicReference. They stay out of --man/--markdown (legal boilerplate is not reference material) - so no XFF.md change.
  • Delete RenderNotice / RenderLicense and their RenderHelp branches; move the //xff/license dep from help_cc to help_build_cc.

Test

bazel test //xff/... (85) and --config=xff_full (90) green. Added model render tests; help_topic_test.sh unchanged (verbatim output preserved, incl. the ^xff - eXtended File Find copyright-leads anchor).

Retirement status

RenderHelp now handles only the help-guide (+ dead-shadowed list/all/full/expressions). The next slice ports the guide and removes the dead branches, retiring RenderHelp.

Port the last two verbatim topics off the imperative RenderNotice / RenderLicense
onto the model: add NoticeSection() and LicenseSection() in help_build.cc, each a
title-less section holding an Example. A title-less section adds no heading and does
not indent, so the Example renders byte-exact at column 0 - exactly what verbatim
legal text needs (no reflow, no fence), with the copyright leading --help=license
(task #142). Route both (and aliases notices / licenses) through TopicReference;
they stay out of the man/markdown reference (legal boilerplate). Delete RenderNotice
/ RenderLicense and their RenderHelp branches; move the license dep from help_cc to
help_build_cc. No XFF.md change. Add model render tests; help_topic_test.sh unchanged
(verbatim output preserved).
@helly25
helly25 enabled auto-merge (squash) August 8, 2026 11:31
@helly25
helly25 merged commit cd5b000 into main Aug 8, 2026
9 checks passed
@helly25
helly25 deleted the help/port-notice-license branch August 8, 2026 11:42
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