Files
structured-website-builder-…/tasks-workflows/2026-06-09-patches-removed-stale-directories-final-discovery-file-publish-patches.md
T
2026-06-09 11:57:54 -06:00

55 lines
2.4 KiB
Markdown

# Patch Summary
Removed stale community-summaries/paddling/ and community-summaries/home-health/ references from the iNDX Earth site after consolidating community summaries under the flat /community-summaries/ route.
Changes made:
Removed stale generated directories:
/public/community-summaries/paddling/
/public/community-summaries/home-health/
Updated community-summary links to use flat routes:
/community-summaries/{slug}.html
Patched semantic discovery generation so community-summary artifact links now resolve to:
/data/open/pages/community-summaries/{slug}/chunks.json
/data/open/pages/community-summaries/{slug}/qa.json
Updated related source content and semantic artifact references so old audience-folder URLs do not reappear.
Updated workflow/skill guidance to stop referencing audience section paths.
Validation:
Confirmed no stale /community-summaries/paddling/ or /community-summaries/home-health/ references remain in active source, Hugo templates, semantic artifacts, public discovery files, or generated public output.
Confirmed old audience directories are no longer present in public/.
# Discovery Files Patch
Fixed the publishing process so final root discovery files are regenerated after Hugo publish and AI index rebuild.
Root discovery files affected:
robots.txt
sitemap.xml
llms.txt
agents.md
skills.md
Issue found:
publish_hugo_output.py preserves root discovery files, including sitemap.xml.
Therefore, running Hugo publish alone does not update sitemap.xml, llms.txt, agents.md, skills.md, or robots.txt.
After adding pages, the correct final sequence is:
Run Hugo sync/build.
Run publish_hugo_output.py.
Run build_ai_index.py.
Run build_discovery_files.py.
Process guidance patched:
Fixed README wording so ai-index.json correctly points to build_ai_index.py.
Added explicit instruction that after rebuilding ai-index.json, build_discovery_files.py must be run to update the final root discovery files.
Updated ai-index-discovery-materialization-skill.md to hand off to discovery-files-materialization-skill.md.
Updated discovery-files-materialization-skill.md wording to use generic section-page language instead of stale audience-section language.
Validation:
Regenerated ai-index.json.
Regenerated all final discovery files.
Confirmed sitemap.xml includes the new page.
Confirmed sitemap.xml parses as valid XML.
Confirmed sitemap.xml includes /ai-index.json, /llms.txt, and /skills.md.
Confirmed no stale audience-folder paths exist in final discovery outputs.