File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
2
2
div .recommended .highlight span .hll {
3
3
background-color : # a7e8c8 ;
4
+ }
5
+
6
+ .avatar {
7
+ vertical-align : middle;
8
+ width : 50px ;
9
+ height : 50px ;
10
+ border-radius : 50% ;
4
11
}
Original file line number Diff line number Diff line change 24
24
25
25
import os
26
26
import requests
27
+ from pathlib import Path
27
28
28
29
29
30
def main (argv = None ):
@@ -48,7 +49,18 @@ def main(argv=None):
48
49
for item in response .json ()
49
50
]
50
51
51
- print ("\n " .join (members ))
52
+ target_file = Path (__file__ ).parent .parent / "docs" / "community" / "index.md"
53
+
54
+ lines = target_file .read_text ().splitlines ()
55
+ insert_line = len (lines )
56
+
57
+ for line in reversed (lines ):
58
+ if line .strip ().startswith ("## Members" ):
59
+ break
60
+ insert_line -= 1
61
+
62
+ lines = lines [:insert_line ] + members + lines [insert_line :]
63
+ target_file .write_text ("\n " .join (lines ))
52
64
53
65
54
66
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments