Skip to content

Enforce documentation.yml toc coverage via ESLint#2435

Merged
tf merged 1 commit into
codevise:masterfrom
tf:lint-doc-js-yml
Jun 9, 2026
Merged

Enforce documentation.yml toc coverage via ESLint#2435
tf merged 1 commit into
codevise:masterfrom
tf:lint-doc-js-yml

Conversation

@tf

@tf tf commented Jun 9, 2026

Copy link
Copy Markdown
Member

JSDoc documented items missing from the documentation.yml toc render at an arbitrary spot at the end of the generated docs. Since the docs workflow only runs on master, this used to go unnoticed until after publishing.

Add a custom ESLint rule that reports documented top level items that are not listed in the toc, giving fast feedback from lint runs. The rule lives in the pageflow package's shared config directory, like the jest and webpack configs reused by entry type packages.

Add toc entries for previously unlisted items. Document the error boundary property via the established underscored @name pattern: only an explicit @name suppresses the inferred memberof, which would otherwise prevent toc matching, and the docs theme renders the underscore as a dot (frontend.contentElementErrorBoundary).

JSDoc documented items missing from the documentation.yml toc render
at an arbitrary spot at the end of the generated docs. Since the docs
workflow only runs on master, this used to go unnoticed until after
publishing.

Add a custom ESLint rule that reports documented top level items that
are not listed in the toc, giving fast feedback from lint runs. The
rule lives in the pageflow package's shared config directory, like
the jest and webpack configs reused by entry type packages.

Add toc entries for previously unlisted items. Document the error
boundary property via the established underscored @name pattern: only
an explicit @name suppresses the inferred memberof, which would
otherwise prevent toc matching, and the docs theme renders the
underscore as a dot (frontend.contentElementErrorBoundary).
@tf tf merged commit 9e734a8 into codevise:master Jun 9, 2026
18 checks passed
@tf tf deleted the lint-doc-js-yml branch June 10, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant