File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import matter from "gray-matter";
19
19
import { compile } from "@mdx-js/mdx" ;
20
20
import isAbsoluteUrl from "is-absolute-url" ;
21
21
import { nonDefaultSupportedLocales } from "@/src/i18n/const" ;
22
+ import { p5Version } from "@/src/globals/p5-version" ;
22
23
23
24
/* Repo to pull the contributor documentation from */
24
25
const docsRepoUrl = "https://github.com/processing/p5.js.git" ;
@@ -258,7 +259,7 @@ const moveContentDirectory = async (
258
259
const buildContributorDocs = async ( ) => {
259
260
console . log ( "Building contributor docs..." ) ;
260
261
261
- await cloneLibraryRepo ( clonedRepoPath , docsRepoUrl ) ;
262
+ await cloneLibraryRepo ( clonedRepoPath , docsRepoUrl , p5Version ) ;
262
263
263
264
// Clean out previous files
264
265
console . log ( "Cleaning out current content collection..." ) ;
Original file line number Diff line number Diff line change 7
7
} from "../utils" ;
8
8
import { readFile } from "fs/promises" ;
9
9
import yaml from "js-yaml" ;
10
+ import { p5Version } from "@/src/globals/p5-version" ;
10
11
11
12
/* Repo to pull the contributor documentation from */
12
13
const sourceRepoUrl = "https://github.com/processing/p5.js.git" ;
@@ -24,7 +25,7 @@ const outputDirectory = path.join(
24
25
const run = async ( ) => {
25
26
console . log ( "Copying people from p5.js website into people collection..." ) ;
26
27
27
- await cloneLibraryRepo ( clonedRepoPath , sourceRepoUrl ) ;
28
+ await cloneLibraryRepo ( clonedRepoPath , sourceRepoUrl , p5Version ) ;
28
29
29
30
const contents = await readFile (
30
31
path . join ( clonedRepoPath , ".all-contributorsrc" ) ,
You can’t perform that action at this time.
0 commit comments