[Phase 5] Add legal pages (Terms of Service, Privacy Policy, AUP) to docs-site Astro build #89
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The legal documents are committed at:
docs/legal/terms-of-service.mddocs/legal/privacy-policy.mddocs/legal/acceptable-use-policy.mdHowever, the docs-site Astro project at
docs-site/src/pages/has no legal pages — onlyindex.astro,zip-enrichment.astro,holidays.astro,air-quality.astro, and blog posts. The legal docs are invisible to API consumers who visitdocs.leeworks.dev.This blocks ROADMAP.md §Phase 6 pre-launch, which requires legal docs to be publicly accessible (RapidAPI requires a ToS link for marketplace listings).
What to do
docs-site/src/pages/legal/terms-of-service.astro— render fromdocs/legal/terms-of-service.mddocs-site/src/pages/legal/privacy-policy.astrodocs-site/src/pages/legal/acceptable-use-policy.astrodocs-site/src/pages/index.astrofooter sectionkustomize build flux/still passes (no Flux changes needed — this is purely docs-site source)Approach: Either import the markdown content directly (Astro supports
.mdfiles as pages viasrc/content/or direct imports) or create thin Astro wrapper pages that render the markdown content.The simplest approach: add the
docs/legal/markdown files as Astro content collection entries, or copy them todocs-site/src/pages/legal/as.mdfiles (Astro renders.mdpages automatically with a default layout).Acceptance criteria
https://docs.leeworks.dev/legal/terms-of-service(and/privacy-policy,/acceptable-use-policy) load without errorsnpm run buildindocs-site/) completes without errorshttps://docs.leeworks.dev/legal/terms-of-service) is ready to paste into RapidAPI listing setup (issue #44)Dependencies
(Reference: ROADMAP.md §Phase 5 docs-site; §Phase 6 pre-launch legal)
✅ Implemented — PR #91 merged.
Added three Astro markdown pages to
docs-site/src/pages/legal/:/legal/terms-of-service/legal/privacy-policy/legal/acceptable-use-policyEach uses the
Base.astrolayout. Footer links added toindex.astro. The ToS URLhttps://docs.leeworks.dev/legal/terms-of-serviceis ready for the RapidAPI listing (#44). Note: the Base.astro layout already had legal footer links; this adds a redundant inline footer to index.astro as well.