Skip to content

Commit

Permalink
Merge branch 'sync-docs' of https://github.com/vitest-dev/docs-cn int…
Browse files Browse the repository at this point in the history
…o sync-4459590a-1
  • Loading branch information
docschina-bot committed Oct 24, 2023
2 parents 11d5eca + 4459590 commit 992529c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
22 changes: 18 additions & 4 deletions .vitepress/contributor-names.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"userquin",
"Demivan",
"Aslemammad",
"Dunqing",
"btea",
"poyoho",
"DerYeger",
"Dunqing",
"edimitchel",
"dammy001",
"fenghan34",
Expand All @@ -27,6 +27,7 @@
"tony-go",
"zxch3n",
"PatrickChen928",
"bluwy",
"danielroe",
"mitchelvanbever",
"stygian-desolator",
Expand All @@ -41,8 +42,8 @@
"azaleta",
"haikyuu",
"aleclarson",
"bluwy",
"ouduidui",
"ghiscoding",
"kalvenschraut",
"LoTwT",
"marcelobotega",
Expand All @@ -66,17 +67,18 @@
"cawa-93",
"anthonyblond",
"azrikahar",
"benmccann",
"Monkatraz",
"ChrisTowles",
"capricorn86",
"Dragomir-Ivanov",
"EvHaus",
"filiptammergard",
"ghiscoding",
"Akryum",
"hamirmahal",
"sodatea",
"IanVS",
"InfiniteXyy",
"JakeGinnivan",
"janosh",
"joezimjs",
Expand Down Expand Up @@ -116,6 +118,8 @@
"abarke",
"atk",
"Codex-",
"abereghici",
"allisons11",
"aktyw",
"datsenkoboos",
"ArtyMaury",
Expand All @@ -131,11 +135,13 @@
"ChenKS12138",
"craciuncezar",
"zyyv",
"foges",
"christian-bromann",
"christianhg",
"screendriver",
"cpojer",
"ChristopherHaws",
"clarkf",
"ghry5",
"Cphayim",
"luckylooke",
Expand All @@ -149,6 +155,7 @@
"deot",
"diogotorres97",
"drwpow",
"DylanPiercey",
"euaaaio",
"elby22",
"elliotwestlake",
Expand All @@ -158,16 +165,19 @@
"erik-perri",
"yzh990918",
"evandroguedes",
"bfamchon",
"cyco130",
"fawazahmed0",
"FelixGraf",
"fbritoferreira",
"GabrielAlfs",
"GeopJr",
"gleysonabreu",
"Plumbiu",
"guoyunhe",
"bissolli",
"HannesOberreiter",
"henningway",
"3c1u",
"hubertstrk",
"hugoattal",
Expand All @@ -176,7 +186,6 @@
"IKoshelev",
"cogor",
"maIIady",
"InfiniteXyy",
"cliarena",
"beckjake",
"jcbhmr",
Expand Down Expand Up @@ -213,19 +222,23 @@
"kkuegler",
"krishnan-chandra",
"kricact",
"LarsSalembier",
"linux-china",
"localhousee",
"luismartinezs",
"lukashass",
"lyx-jay",
"malkiii",
"brzezinskimarcin",
"marcomuser",
"marshallswain",
"Krisell",
"marpme",
"mascii",
"silvenon",
"mkantor",
"Max10240",
"neiromaster",
"MPeloquin",
"mikearnaldi",
"lampewebdev",
Expand Down Expand Up @@ -258,6 +271,7 @@
"g-plane",
"pi0",
"rafedramzi",
"ChiChuRita",
"rluvaton",
"rianfowler",
"richardboehme",
Expand Down
3 changes: 1 addition & 2 deletions .vitepress/scripts/fetch-avatars.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { fileURLToPath } from 'node:url'
import { dirname, join, resolve } from 'pathe'
import fs from 'fs-extra'
import { ofetch } from 'ofetch'

const docsDir = resolve(dirname(fileURLToPath(import.meta.url)), '../..')

Expand All @@ -17,7 +16,7 @@ async function download(url: string, fileName: string) {
// eslint-disable-next-line no-console
console.log('downloading', fileName)
try {
const image = await ofetch(url, { responseType: 'arrayBuffer' })
const image = await (await fetch(url)).arrayBuffer()
await fs.writeFile(fileName, Buffer.from(image))
}
catch {}
Expand Down

0 comments on commit 992529c

Please sign in to comment.