Skip to content

Commit 506a9ee

Browse files
committed
scripts/geocode.py: Generate github URL if no url given
1 parent 0aa5169 commit 506a9ee

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

conf/contributors.xml

+3-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ contributor
1010
- location = something which returns the correct location when entered in maps.google.com
1111
- work = university, institute, ...
1212
- description = <item>[;<item>]* ... delimiter ";" is converted into a break or list
13-
- url = webpage, when clicking on name
13+
- url = webpage, when clicking on name; no need to provide github profile URL
1414
- pix = url to a small image (max 50x50 or something like that) .. subdirectory "./pix/people/" should store them locally
1515
- jitter = float as string, multiplicated in jitter function, 0 to disable
1616
- trac = trac nickname for the search (also searched for the name, but the trac name is often different!). comma-separated list of several trac account names ok.
@@ -1128,7 +1128,7 @@ Please keep the list in alphabetical order by last name!
11281128
github="nheir"/>
11291129
<contributor
11301130
name="Karan Desai"
1131-
url="https://www.github.com/karandesai-96"
1131+
github="karandesai-96"
11321132
trac="karandesai-96"/>
11331133
<contributor
11341134
name="Didier Deshommes"
@@ -1448,7 +1448,6 @@ Please keep the list in alphabetical order by last name!
14481448
<contributor
14491449
name="Isuru Fernando"
14501450
work="University of Illinois at Urbana-Champaign"
1451-
url="https://github.com/isuruf"
14521451
location="Urbana, IL, USA"
14531452
trac="isuruf"
14541453
github="isuruf"
@@ -1899,7 +1898,6 @@ Please keep the list in alphabetical order by last name!
18991898
<contributor
19001899
name="Hosein Hadipour"
19011900
location="University of Tehran, Iran"
1902-
url="https://github.com/hadipourh"
19031901
trac="Hadipour"
19041902
github="hadipourh"/>
19051903
<contributor
@@ -3098,7 +3096,7 @@ Please keep the list in alphabetical order by last name!
30983096
github="sverre320"/>
30993097
<contributor
31003098
name="Ximin Luo"
3101-
url="https://github.com/infinity0"
3099+
github="infinity0"
31023100
trac="infinity0"/>
31033101
<contributor
31043102
name="Joey Lupo"
@@ -3107,7 +3105,6 @@ Please keep the list in alphabetical order by last name!
31073105
name="Joseph Lupo"/>
31083106
<contributor
31093107
name="Peter Luschny"
3110-
url="https://github.com/PeterLuschny"
31113108
description="Categorization of ZZ"
31123109
location="Berlin, Germany"
31133110
trac="pluschny"
@@ -4370,7 +4367,6 @@ Please keep the list in alphabetical order by last name!
43704367
trac="koen,Koen"/>
43714368
<contributor
43724369
name="Victor Santos"
4373-
url="https://github.com/padawanphysicist"
43744370
trac="vsantos"
43754371
github="padawanphysicist"/>
43764372
<contributor
@@ -5467,7 +5463,6 @@ Please keep the list in alphabetical order by last name!
54675463
<contributor
54685464
name="Ying Zhou"
54695465
location="Brandeis University"
5470-
url="http://github.com/mathyingzhou"
54715466
github="mathyingzhou"/>
54725467
<contributor
54735468
name="Yuan Zhou"

scripts/geocode.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ def writeToDevmap():
131131

132132
tr = devmap.createElement("tr")
133133
td = devmap.createElement("td")
134-
if len(url) == 0:
134+
if not url and github:
135+
url = f'https://www.github.com/{github}'
136+
if not url:
135137
td.appendChild(devmap.createTextNode(dev))
136138
else:
137139
a = devmap.createElement("a")

0 commit comments

Comments
 (0)