Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions getDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ const ghUrl = 'https://github.com/'
repos.forEach((repo) => {
const repoDir = `repo_to_be_edited/${repo.label}`

// Clone the repository
const cloneCommand = `git clone ${ghUrl + repo.repo} ${repoDir}`
// Clone the repository (shallow, single branch — we only need a snapshot of the docs)
const cloneCommand = `git clone --single-branch --depth 1 ${
ghUrl + repo.repo
} ${repoDir}`
execSync(cloneCommand)

// Remove git folders
Expand Down
Loading