From 3acbb082095eac485d99e68bc2ac41cf814a4c88 Mon Sep 17 00:00:00 2001 From: viniciusoike Date: Sun, 20 Sep 2026 18:15:58 -0300 Subject: [PATCH] ci: drop internal agent docs before pkgdown build --- .github/workflows/pkgdown.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 2dbbc55..a2eaade 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -41,6 +41,12 @@ jobs: # Drop the agent instruction files so they stay off the public site. - name: Remove agent instruction files run: rm -f CLAUDE.md AGENTS.md + # pkgdown renders every root-level .md into the published site, sitemap + # and search index (r-lib/pkgdown#2959). Agent docs are internal, not + # part of the package; the workflow checkout is discarded after the run. + - name: Drop internal agent docs before building + run: rm -f -- CLAUDE.md AGENTS.md + - name: Build site run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)