From 09a2ff95fe17cd6df61b73a197c3426d4a26d828 Mon Sep 17 00:00:00 2001 From: Rafael Vuijk Date: Tue, 27 Oct 2026 00:18:16 +0000 Subject: [PATCH] clean removes the pages a build reads, not only the ones it writes The generator writes every page to .output/pre and then copies all of pre into .output/final, and clean deleted only final. So a page an older build had written to pre came back on the next build, after a clean: a local build of the docs had 135 pages for members the library no longer has, such as Absf.Latexize, which is LatexizeNode now, and InternalAMExtensions.TruncateToPeriodicInterval, removed in the library's #1347. Two of them held broken links, which were then taken for the library's (corrected on #57). clean now deletes all of .output. CI builds from a fresh checkout and was never affected; this is about a build on a machine that has built before. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura --- amsite.fsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amsite.fsx b/amsite.fsx index 9a1311c26..475d21f26 100644 --- a/amsite.fsx +++ b/amsite.fsx @@ -108,8 +108,11 @@ let run () = else if RuntimeInformation.IsOSPlatform(OSPlatform.Linux) then runProgram "xdg-open" "." ("." / outputP / "index.html") +// All of .output, not only final: the generator copies every page in .output/pre into final, +// so a page an older build wrote to pre -- one for a member the library has since removed -- +// came back after a clean, with whatever broken links it had. let clean () = - dirDelete ("." / outputP) + dirDelete ("." / ".output") match cliArgs with | [ _; _; "init" ] -> init ()