The issue at the moment is that custom content can only be created after the generated content. This can create an unnatural flow in the README given that sections such as Additional Resources are created in the generated content.
Proposal
Maintain the existing README generation but allow custom content markers throughout the README.
More Detail
On first generation (no README):
- Render the full README from the template, All headings + auto markers + auto content.
<!-- auto-overview:start -->
Generated content here
<!-- auto-overview:end -->
repeat for generated sections
Editing for custom content
- Allow custom-content markers to be added anywhere to the README such as:
<!-- custom-quick-start:start -->
Add custom content here
<!-- custom-quick-start:end -->
On check (fix=False):
- Render expected README from template.
- For each auto section:
- Assert both markers exist in the existing README.
- Extract and compare only the body between markers to the expected body.
- If any auto section is missing or mismatched → “Out of sync” (CI fails).
- Ignore everything outside auto blocks (i.e. custom content).
On fix (fix=True):
The issue at the moment is that custom content can only be created after the generated content. This can create an unnatural flow in the README given that sections such as Additional Resources are created in the generated content.
Proposal
Maintain the existing README generation but allow custom content markers throughout the README.
More Detail
On first generation (no README):
Editing for custom content
On check (fix=False):
On fix (fix=True):
If all markers exist:
If any required marker is missing or malformed: