Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL authored Apr 24, 2024
1 parent e44eafc commit ba94424
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions scripts/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,24 @@
import yaml


comment_js = '<script src="https://giscus.app/client.js"data-repo="SWHL/AI-Competition-Collections"data-repo-id="MDEwOlJlcG9zaXRvcnkzNjI2NTQ0NDA="data-category="Ideas"data-category-id="DIC_kwDOFZ2q6M4Ce5Hv"data-mapping="title"data-strict="0"data-reactions-enabled="1"data-emit-metadata="0"data-input-position="top"data-theme="preferred_color_scheme"data-lang="zh-CN"data-loading="lazy"crossorigin="anonymous"async></script>'
comment_js = """
<script src="https://giscus.app/client.js"
data-repo="SWHL/AI-Competition-Collections"
data-repo-id="MDEwOlJlcG9zaXRvcnkzNjI2NTQ0NDA="
data-category="Ideas"
data-category-id="DIC_kwDOFZ2q6M4Ce5Hv"
data-mapping="title"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="zh-CN"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
"""


class ConvertMDToHugo:
Expand Down Expand Up @@ -154,7 +171,6 @@ def create_home_index_md(self):
" ",
self.children,
" ",
comment_js
]

readme_path = self.root_dir / "README.md"
Expand Down

0 comments on commit ba94424

Please sign in to comment.