diff --git a/src/scripts/builders/contribute.ts b/src/scripts/builders/contribute.ts index 81d19adfaa..67f47668bd 100644 --- a/src/scripts/builders/contribute.ts +++ b/src/scripts/builders/contribute.ts @@ -19,6 +19,7 @@ import matter from "gray-matter"; import { compile } from "@mdx-js/mdx"; import isAbsoluteUrl from "is-absolute-url"; import { nonDefaultSupportedLocales } from "@/src/i18n/const"; +import { p5Version } from "@/src/globals/p5-version"; /* Repo to pull the contributor documentation from */ const docsRepoUrl = "https://github.com/processing/p5.js.git"; @@ -258,7 +259,7 @@ const moveContentDirectory = async ( const buildContributorDocs = async () => { console.log("Building contributor docs..."); - await cloneLibraryRepo(clonedRepoPath, docsRepoUrl); + await cloneLibraryRepo(clonedRepoPath, docsRepoUrl, p5Version); // Clean out previous files console.log("Cleaning out current content collection..."); diff --git a/src/scripts/builders/people.ts b/src/scripts/builders/people.ts index fee8565289..11a4006c2a 100644 --- a/src/scripts/builders/people.ts +++ b/src/scripts/builders/people.ts @@ -7,6 +7,7 @@ import { } from "../utils"; import { readFile } from "fs/promises"; import yaml from "js-yaml"; +import { p5Version } from "@/src/globals/p5-version"; /* Repo to pull the contributor documentation from */ const sourceRepoUrl = "https://github.com/processing/p5.js.git"; @@ -24,7 +25,7 @@ const outputDirectory = path.join( const run = async () => { console.log("Copying people from p5.js website into people collection..."); - await cloneLibraryRepo(clonedRepoPath, sourceRepoUrl); + await cloneLibraryRepo(clonedRepoPath, sourceRepoUrl, p5Version); const contents = await readFile( path.join(clonedRepoPath, ".all-contributorsrc"),