Skip to content

Commit f82dadf

Browse files
committed
Pass branch
1 parent 2bdc7f5 commit f82dadf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/scripts/builders/contribute.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import matter from "gray-matter";
1919
import { compile } from "@mdx-js/mdx";
2020
import isAbsoluteUrl from "is-absolute-url";
2121
import { nonDefaultSupportedLocales } from "@/src/i18n/const";
22+
import { p5Version } from "@/src/globals/p5-version";
2223

2324
/* Repo to pull the contributor documentation from */
2425
const docsRepoUrl = "https://github.com/processing/p5.js.git";
@@ -258,7 +259,7 @@ const moveContentDirectory = async (
258259
const buildContributorDocs = async () => {
259260
console.log("Building contributor docs...");
260261

261-
await cloneLibraryRepo(clonedRepoPath, docsRepoUrl);
262+
await cloneLibraryRepo(clonedRepoPath, docsRepoUrl, p5Version);
262263

263264
// Clean out previous files
264265
console.log("Cleaning out current content collection...");

src/scripts/builders/people.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
} from "../utils";
88
import { readFile } from "fs/promises";
99
import yaml from "js-yaml";
10+
import { p5Version } from "@/src/globals/p5-version";
1011

1112
/* Repo to pull the contributor documentation from */
1213
const sourceRepoUrl = "https://github.com/processing/p5.js.git";
@@ -24,7 +25,7 @@ const outputDirectory = path.join(
2425
const run = async () => {
2526
console.log("Copying people from p5.js website into people collection...");
2627

27-
await cloneLibraryRepo(clonedRepoPath, sourceRepoUrl);
28+
await cloneLibraryRepo(clonedRepoPath, sourceRepoUrl, p5Version);
2829

2930
const contents = await readFile(
3031
path.join(clonedRepoPath, ".all-contributorsrc"),

0 commit comments

Comments
 (0)