()
| 187 | |
| 188 | @staticmethod |
| 189 | def write_head_contents(): |
| 190 | # write the head and contents of README.md |
| 191 | write_time = datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ") |
| 192 | head_contents = inspect.cleandoc("""[Github Ranking](./README.md) |
| 193 | ========== |
| 194 | |
| 195 | **A list of the most github stars and forks repositories.** |
| 196 | |
| 197 | *Last Automatic Update Time: {write_time}* |
| 198 | |
| 199 | ## Sponsor me |
| 200 | |
| 201 | [Buy Me a Coffee | Alipay & WeChat Pay](https://afdian.com/a/EvanLi/plan) |
| 202 | |
| 203 | [afdian 爱发电 EvanLi | 支付宝/微信支付](https://afdian.com/a/EvanLi/plan) |
| 204 | |
| 205 | ## Table of Contents |
| 206 | |
| 207 | * [Most Stars](#most-stars) |
| 208 | * [Most Forks](#most-forks)""".format(write_time=write_time)) + table_of_contents |
| 209 | write_text("../README.md", 'w', head_contents) |
| 210 | |
| 211 | def write_readme_lang_md(self): |
| 212 | os.makedirs('../Top100', exist_ok=True) |
no test coverage detected