Skip to content

Commit

Permalink
use DOI for URL
Browse files Browse the repository at this point in the history
  • Loading branch information
bryangingechen committed Feb 26, 2021
1 parent a0bcb79 commit f6d8b30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions print_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def clean_tex(src: str) -> str:
url = 'https://arxiv.org/abs/'+eprint
else:
url = eprint
elif 'doi' in data.fields:
url = 'https://doi.org/'+data.fields['doi']
# else:
# raise ValueError(f"Couldn't find a url for bib item {key}")
if url:
Expand Down

0 comments on commit f6d8b30

Please sign in to comment.