Skip to content

build:contributor-docs now consults env vars for content repo & branch to clone#1116

Merged
davepagurek merged 1 commit intoprocessing:2.0from
nbogie:parameterise-cloning-contrib-docs
Jan 27, 2026
Merged

build:contributor-docs now consults env vars for content repo & branch to clone#1116
davepagurek merged 1 commit intoprocessing:2.0from
nbogie:parameterise-cloning-contrib-docs

Conversation

@nbogie
Copy link
Copy Markdown
Contributor

@nbogie nbogie commented Jan 27, 2026

  1. build:contributor-docs (in contribute.ts) now allows overriding of the content repo and branch to clone through the env vars P5_REPO_URL and P5_BRANCH.

I matched this same pattern already in use by build:reference

  1. Added a line of logging so it's clear which repo & branch are being considered / cloned

Example new usage:

P5_REPO_URL=../p5.js P5_BRANCH=fix-contrib-to-ref-guide-for-v2 npm run build:contributor-docs

Example new logging:

(omitted)

Building contributor docs...
Considering cloning repo: ../p5.js branch: fix-contrib-to-ref-guide-for-v2 into path: /omitted/p5.js-website/in/p5.js/
Recent version of library repo already exists, skipping clone...

Fixes #1114

Also added some logging so it's clear which repo & branch are being considered / cloned
Copy link
Copy Markdown
Collaborator

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nbogie!

@davepagurek davepagurek merged commit 66692f2 into processing:2.0 Jan 27, 2026
4 checks passed
@nbogie nbogie deleted the parameterise-cloning-contrib-docs branch January 27, 2026 21:01
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.

2 participants