Nrichers/sc 15354/workflows fix notebook execution workflows#1263
Nrichers/sc 15354/workflows fix notebook execution workflows#1263
Conversation
…fail harder if necessary
b9e42ef to
92c71e8
Compare
PR SummaryThis PR introduces improvements to the template schema documentation generation process and updates the integration in the Quarto markdown templates. The key changes include:
Overall, these changes help improve the reliability and clarity of schema documentation generation as well as streamline its integration with the documentation site. Test Suggestions
|
Lighthouse check resultsShow Lighthouse scoresFolder depth level checked: 0 Commit SHA: 7e4425b Modify the workflow to check a different depth:
|
Validate docs site✓ INFO: A live preview of the docs site is available — Open the preview |
| TARGET_FILE = REPO_ROOT / "site/guide/templates/_template-schema-generated.qmd" | ||
|
|
||
| # Minimum expected file size in bytes (sanity check for valid output) | ||
| MIN_OUTPUT_SIZE = 1000 |
There was a problem hiding this comment.
| MIN_OUTPUT_SIZE = 1000 | |
| MIN_OUTPUT_SIZE = 40000 |
Current outputs are around 62,000 bytes, so allowing for shorter versions in the future should work but we likely don't want to set this too low.
Pull Request Description
What and why?
This PR solves the issue whereby notebook execution and LLM Markdown rendering fail when no generated template schema docs are present but are referenced in an {{< include >}} statement.
The solution:
The alternative solution would have been a comment marker of some kind that gets replaced with a file embed or a mostly blank template schema docs baseline, both with more downsides than the solution in this PR. Happy to talk through this, if necessary.
Changes:
.gitignore— Removed_template-schema-generated.qmdfrom gitignore so baseline docs can be trackedREADME.md— Minor documentation updatesscripts/generate_template_schema_docs.py— Modified with stricter validation to fail CI on generation errorssite/Makefile— Changedpiptopython -m pipfor environment robustness_template-schema-generated.qmd— Added tracked baseline template schema docstemplates/customize-document-templates.qmd— Removed comment that is no longer applicableFixes sc-15354
How to test
What needs special review?
Dependencies, breaking changes, and deployment notes
Release notes
Checklist