Browse Source

update: download links style of static html

master
Dnomd343 2 years ago
parent
commit
6f58cb6b9e
  1. 6
      src/release/utils/release.py

6
src/release/utils/release.py

@ -61,10 +61,10 @@ def staticDepends(workDir: str, metadata: dict, content: dict) -> None:
cover = '---\ndescription: %s\n---\n\n' % onlineDesc cover = '---\ndescription: %s\n---\n\n' % onlineDesc
cover += gitbookMetadata(metadata) + '<hr/>\n' cover += gitbookMetadata(metadata) + '<hr/>\n'
cover += '\n{% hint style="none" %}\n'
for (resName, resUrls) in resourceInfo.items(): for (resName, resUrls) in resourceInfo.items():
cover += '\n{% hint style="none" %}\n' \ cover += '##### [%s](%s)([备用地址](%s))\n' % (resName, resUrls[1], resUrls[0])
+ '#### [%s](%s)([备用地址](%s))\n' % (resName, resUrls[1], resUrls[0]) \ cover += '{% endhint %}\n'
+ '{% endhint %}\n'
bookInfo = json.dumps({ bookInfo = json.dumps({
'title': metadata['name'], 'title': metadata['name'],

Loading…
Cancel
Save