Skip to content

ci: build pkgdown site via Actions to gh-pages - #14

Merged
milkway merged 1 commit into
mainfrom
ci/pkgdown-gh-pages
Jun 26, 2026
Merged

ci: build pkgdown site via Actions to gh-pages#14
milkway merged 1 commit into
mainfrom
ci/pkgdown-gh-pages

Conversation

@milkway

@milkway milkway commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Migrates the documentation site off the force-committed `docs/` folder on `main` and onto a CI-built gh-pages branch.

Changes

  • .github/workflows/pkgdown.yaml (r-lib/actions): builds the pkgdown site on push/PR/release and deploys to `gh-pages`. The deploy action (JamesIves/github-pages-deploy-action) is pinned to a commit SHA (v4.8.0) because it runs with `contents: write`.
  • DESCRIPTION: `Config/Needs/website: tidyverse/tidytemplate` so the site theme (not on CRAN) is installed in CI.
  • Untrack docs/ (`git rm --cached`, 872 files) — it stays gitignored and is now produced by CI, not committed.
  • Cross-references to the Python port (dt2): a README note + a "Python" navbar link to https://strategicprojects.github.io/dt2py/.

⚠️ Manual step after merge

In Settings → Pages, switch the source from "main /docs" to the gh-pages branch (the workflow creates it on the first `main` build). Until then the live site keeps serving the old `docs/` from the last commit that had it.

Notes

  • No R package code changed; `Config/Needs/website` is ignored by CRAN checks.
  • The PR run builds the site (deploy step is skipped on PRs) — a good smoke test of the workflow.

🤖 Generated with Claude Code

Move the documentation site off the force-committed `docs/` folder on main and
onto a CI-built `gh-pages` branch.

- Add .github/workflows/pkgdown.yaml (r-lib/actions): builds the pkgdown site
  and deploys it to gh-pages. The deploy action is pinned to a commit SHA
  (v4.8.0) since it runs with contents: write.
- DESCRIPTION: Config/Needs/website: tidyverse/tidytemplate so the website theme
  is installed in CI (it is not on CRAN).
- Untrack docs/ (git rm --cached); it stays gitignored and is now produced by CI.
- Cross-reference the Python port (dt2): README note + a "Python" navbar link to
  https://strategicprojects.github.io/dt2py/ .

After merge: in repo Settings → Pages, switch the source from "main /docs" to the
gh-pages branch (the workflow creates it on the first main build).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@milkway
milkway merged commit 8bac6b4 into main Jun 26, 2026
6 checks passed
@milkway
milkway deleted the ci/pkgdown-gh-pages branch June 26, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant