GetRD / academic-file-converter

📚 Import Bibtex publications and Jupyter Notebook blog posts into your Markdown website or book. 将Bibtex转换为Markdown网站
https://docs.hugoblox.com/reference/content-types/#automatically-import-publications-from-bibtex
MIT License
363 stars 102 forks source link

Add --publish-date-from-bibtex flag #80

Closed arichardson closed 4 years ago

arichardson commented 4 years ago

When set, the publishDate field uses the bibtex value instead of the current time. This is useful to avoid all .md files changing whenever the bibtex file is imported.

Additionally, the bibtex importer now checks whether publishDate is already set in the metadata and does not replace it in that case.

gcushen commented 4 years ago

This is useful to avoid all .md files changing whenever the bibtex file is imported.

The Markdown files should only be overwritten if the "overwrite" flag is present, if that's not currently the case, there's another bug to fix.

Assuming you are using the "overwrite" flag, it might be interesting to investigate similar open source tools and explore storing/caching some metadata regarding what was processed when in order to optimise the tool and prevent things such as refreshing the page publication date.

For example, Hugo creates its own cache and resources folders for somewhat similar purposes.

The current changes you've proposed look like they would cause issues for users though - see the comments I left on your PR code.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any recent activity. The resources of the Academic team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically close soon if no further activity occurs. Thank you for your contributions.