This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git
The following commit(s) were added to refs/heads/master by this push:
new 2ccdfe0 fix avatar generator
2ccdfe0 is described below
commit 2ccdfe0c43a3f7b9e31fa98b022a7a4e01a6deb5
Author: plainheart <[email protected]>
AuthorDate: Sun Sep 28 16:06:13 2025 +0800
fix avatar generator
---
build/generate-contributor-avatar.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/build/generate-contributor-avatar.js
b/build/generate-contributor-avatar.js
index 4847b78..fb2996e 100644
--- a/build/generate-contributor-avatar.js
+++ b/build/generate-contributor-avatar.js
@@ -3,8 +3,8 @@ const path = require('path')
const fetch = require('node-fetch')
const cheerio = require('cheerio')
-;(async () => {
- const localFilePath = path.resolve(__dirname,
'../../echarts-www/_generated/en/committers.html')
+;(async () => {
+ const localFilePath = path.resolve(__dirname,
'../../echarts-website/en/committers.html')
let html
if (fs.existsSync(localFilePath)) {
console.log('use local built committers page:', localFilePath)
@@ -17,7 +17,7 @@ const cheerio = require('cheerio')
const $ = cheerio.load(html)
/** @type {{[key: string]: string}} */
const githubIdAvatarMap = {}
- const githubIdReg = /(?:https?:\/\/github.com\/)?([\w-]+)/
+ const githubIdReg = /(?:https?:\/\/github.com\/)([\w-]+)/
$('.about-person > a').each((idx, el) => {
const link = el.attribs['data-github'] || el.attribs.href
const githubId = link && link.match(githubIdReg)?.[1]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]