summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
5 daysMerge pull request #1 from vyos/claude/legacy-snapshot-phase4HEADproductionYuriy Andamasov
docs: legacy 1.2/1.3 static snapshot + Worker deploy pipeline
5 daysdocs-infra: CR review fixes โ€” wget flag form, PDF validation, R2 seed โ†ตclaude/legacy-snapshot-phase4Yuriy Andamasov
short-circuit, build-then-swap ๐Ÿค– Generated by [robots](https://vyos.io)
5 daysdocs-infra: PDF secured before deploy; honest UA comment; concurrency guardYuriy Andamasov
Review fixes on the R2-upload step: (1) the PDF fetch+validate+upload now runs BEFORE the Worker deploy โ€” fail fast, so a promote=true run can never leave production HTML pointing at a stale/missing legacy PDF (spec ยง5 site+PDF consistency); (2) the comment no longer misattributes the browser-UA/retry flags to snapshot.sh's PDF curl (which has neither) โ€” they're defensive additions grounded in the wget crawl's CF-challenge precedent; (3) workflow-level concurrency group legacy-deploy with cancel-in-progress: false for fleet parity. ๐Ÿค– Generated by [robots](https://vyos.io)
5 daysdocs-infra: upload legacy 1.3 PDF to R2 (apex fallback source)Yuriy Andamasov
r2-staging/ (tools/snapshot.sh's local output) is gitignored, so CI has no copy of the file to upload. Re-fetch it from the pre-sunset RTD source directly (same URL/UA/retry precedent as snapshot.sh's PDF curl), sanity -check the size against the known 25-35 MiB band, then push it to the shared vyos-docs-artifacts R2 bucket the apex Worker's DOCS_PDFS binding reads. Idempotent overwrite; runs on every dispatch of this workflow. ๐Ÿค– Generated by [robots](https://vyos.io)
5 daysdocs-infra: legacy Worker deploy workflow (manual dispatch, candidate/promote)Yuriy Andamasov
Manual workflow_dispatch deploys the legacy snapshot tree as a Cloudflare Worker. Checks out this repo (snapshot/) plus vyos-documentation@rolling (workers/branch/wrangler.legacy.jsonc source), copies the snapshot into dist/assets, and deploys via wrangler. Default dispatch targets the vyos-docs-legacy-candidate name/canary env; promote=true targets the production vyos-docs-legacy name/env. Not run in this session โ€” the actual dispatch is an operator/cutover-sequenced step per the task brief. ๐Ÿค– Generated by [robots](https://vyos.io)
5 daysdocs-infra: legacy 1.2/1.3 snapshot โ€” crawler, scrub, parity, PagefindYuriy Andamasov
One-time static crawl of RTD-served docs.vyos.io/en/1.2/ and /en/1.3/ (spec Sec6, amended Sec15a). tools/scrub.py strips RTD platform JS, analytics, ad units, and the RTD flyout; localizes absolute self/RTD URLs; injects the vyos-documentation version-picker bundle. tools/snapshot.sh drives crawl -> scrub -> picker/PDF -> parity -> sitemap.xml generation -> per-version Pagefind indexing. Live run: 1.2 = 113 pages, 1.3 = 152 pages, both parity-clean (no dangling internal links), zero residual RTD/analytics markers across all 265 pages. 1.3's PDF (29.2 MiB, over the 25 MiB Workers per-asset cap) staged to r2-staging/ (gitignored) for the Task 4.2 R2 upload step, not committed as a Worker asset. crawl/ scratch dir gitignored. wget's default User-Agent triggers a Cloudflare managed challenge on docs.vyos.io regardless of request rate; snapshot.sh spoofs a browser UA and throttles requests (observed empirically, not in the original brief).
13 daysInitial commitYuriy Andamasov