File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import matter from "gray-matter";
1919import { compile } from "@mdx-js/mdx" ;
2020import isAbsoluteUrl from "is-absolute-url" ;
2121import { nonDefaultSupportedLocales } from "@/src/i18n/const" ;
22+ import { p5Version } from "@/src/globals/p5-version" ;
2223
2324/* Repo to pull the contributor documentation from */
2425const docsRepoUrl = "https://github.com/processing/p5.js.git" ;
@@ -258,7 +259,7 @@ const moveContentDirectory = async (
258259const 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..." ) ;
Original file line number Diff line number Diff line change 77} from "../utils" ;
88import { readFile } from "fs/promises" ;
99import yaml from "js-yaml" ;
10+ import { p5Version } from "@/src/globals/p5-version" ;
1011
1112/* Repo to pull the contributor documentation from */
1213const sourceRepoUrl = "https://github.com/processing/p5.js.git" ;
@@ -24,7 +25,7 @@ const outputDirectory = path.join(
2425const 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" ) ,
You can’t perform that action at this time.
0 commit comments