Skip to content

feat(toc): support inherited noIndex - #2245

Open
kadymov wants to merge 3 commits into
masterfrom
DOCSTOOLS-4902-toc-no-index
Open

feat(toc): support inherited noIndex#2245
kadymov wants to merge 3 commits into
masterfrom
DOCSTOOLS-4902-toc-no-index

Conversation

@kadymov

@kadymov kadymov commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Problem

noIndex can be set in page frontmatter and global configuration, but toc.yaml cannot consistently prohibit indexing for a page or a whole subtree. This also leaves TOC-only restrictions out of LLMS artifacts.

Changes

  • expose boolean noIndex on TOC roots and items;
  • propagate the effective value monotonically through sections and included TOCs, including a section's own href;
  • preserve true when TOC metadata and frontmatter are merged in either order and loading mode;
  • exclude affected pages from llms.txt and llms-full.txt using the resolved TOC, including worker builds;
  • keep hidden independent: hidden pages remain absent from LLMS output but do not receive meta.noIndex;
  • add unit and E2E coverage for roots, pages, sections, siblings, nested false, named and expanded includes, metadata conflicts, and --jobs.

Verification

  • npm test — 1919 tests passed, 1 skipped;
  • npm run typecheck;
  • npm run lint — no errors;
  • npm run build;
  • npm run e2e — 214 tests passed, 1 skipped, 1 todo;
  • focused LLMS E2E — 5 tests passed;
  • git diff --check.

Schema: diplodoc-platform/ajv#64

Task: DOCSTOOLS-4902

@kadymov
kadymov marked this pull request as ready for review September 8, 2026 15:13
@kadymov
kadymov requested review from a team and diplodoc-bot as code owners September 8, 2026 15:13
@kadymov
kadymov requested review from martyanovandrey and separatrixxx and removed request for a team September 8, 2026 15:13
@kadymov
kadymov force-pushed the DOCSTOOLS-4902-toc-no-index branch from d257d61 to 3f4d5d7 Compare September 10, 2026 14:22
Comment thread src/commands/build/features/llms/index.spec.ts
Comment thread src/commands/build/features/llms/index.ts Outdated
Comment thread src/core/meta/MetaService.ts
Comment thread src/core/toc/TocService.ts Outdated
@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants