Skip to content

Commit

Permalink
Update daily_arxiv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuchen-Li authored Feb 7, 2024
1 parent 59d151d commit 2ff4892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions daily_arxiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def pretty_math(s:str) -> str:
else:
f.write("> Updated on " + DateNow + "\n")

if use_tc == True:
if use_tc == True and to_web == False:
f.write("<details>\n")
f.write(" <summary>Table of Contents</summary>\n")
f.write(" <ol>\n")
Expand Down Expand Up @@ -338,7 +338,7 @@ def demo(**config):
# update json data
update_json_file(json_file,data_collector)
# json data to markdown
json_to_md(json_file,md_file, task ='Update Readme')
json_to_md(json_file, md_file, task ='Update Readme')

# 2. update docs/index.md file (to gitpage)
if publish_gitpage:
Expand All @@ -350,7 +350,7 @@ def demo(**config):
else:
update_json_file(json_file,data_collector)
json_to_md(json_file, md_file, task ='Update GitPage', \
to_web = True, use_tc=False, use_b2t=False)
to_web=True, use_tc=False, use_b2t=False)

if __name__ == "__main__":
parser = argparse.ArgumentParser()
Expand Down

0 comments on commit 2ff4892

Please sign in to comment.