Said feat stack 11#20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что Изменилось
Добавлен runtime-контракт для metadata документов: появилась Zod-схема frontmatter, генерация
content-report.json, режимы проверки контента и базовые проверки структуры документации.Изменение понадобилось, чтобы ошибки в
title,description,order/sidebar_position,author, section-id, slug и generated pages не попадали в production молча через fallback-значения.Тип Изменения
Проверка
Отметьте, что вы запускали:
npm run prepare:contentnpm run validate:contentnpm run lintnpm run typechecknpm run buildДополнительно запускалось:
npm run prepare:content:warningnode --check scripts/content-manifest.mjsnode --check scripts/content-report.mjsnode --check scripts/content-schema.mjsnpm run prepare:contentсейчас падает ожидаемо, потому что строгий режимerrorнаходит проблемы в существующем контенте: отсутствующиеauthor, дубли virtual path и generated-page shadowing. Для проверки механизма использовался warning-режим.Затронутые Области
Треки или файлы:
docs/algorithms/docs/java/index.mdxdocs/java/overview.mdxdocs/python/index.mdxМаршруты или страницы:
/docs/algorithms/docs/algorithms/getting-started/docs/java/docs/java/overview/docs/pythonСкрипты или workflow:
scripts/content-manifest.mjsscripts/content-schema.mjsscripts/content-report.mjs.github/workflows/pr-check.ymlpackage.jsonpackage-lock.jsonСкриншоты
Не требуются, интерфейс не менялся.
Комментарии Для Ревью
Особое внимание стоит обратить на:
--mode=error,--mode=warning,--mode=autofix-report;.cache/content-report.json;duplicate_virtual_path;duplicate-slug;missing-section-index;generated-page-shadowed;authorв текущей Zod-схеме;prepare:contentпока падает.