Skip to content

fix(okf): exclude reserved log.md from concept enumeration#149

Open
larioscow wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
larioscow:fix/okf-exclude-reserved-log-md
Open

fix(okf): exclude reserved log.md from concept enumeration#149
larioscow wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
larioscow:fix/okf-exclude-reserved-log-md

Conversation

@larioscow

Copy link
Copy Markdown

SPEC §3.1 reserves both index.md and log.md, but the reference implementation only skipped index.md. A log.md showed up as an Unknown node in the viewer (_walk_concepts) and as a concept entry in generated index.md files (regenerate_indexes).

Centralizes the reserved names in one RESERVED_FILENAMES set in bundle/paths.py and uses it at both sites, instead of the per-module "index.md" literals that drifted and caused the miss.

Adds test_log_md_is_not_a_concept and test_regenerate_excludes_reserved_log_md

SPEC §3.1 reserves both index.md and log.md, but the reference implementation skipped only index.md. A log.md was therefore surfaced as an Unknown-type node in the viewer graph and listed as a concept in generated index.md files. Centralize the reserved-filename set and use it in both the viewer and the index generator.
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