UniMath / agda-unimath

The agda-unimath library
https://unimath.github.io/agda-unimath/
MIT License
222 stars 71 forks source link

Bibliographies #1058

Closed fredrik-bakke closed 8 months ago

fredrik-bakke commented 8 months ago

Adds citation support using a biblatex file and pybtex, reactors most current citations to use it, and adds a small guide to explain how to use it.

Resolves #957.

fredrik-bakke commented 8 months ago

This one's ready for review :) Please build the website locally to see how the new references look. Note that I have not written any documentation yet.

fredrik-bakke commented 8 months ago

Thank you for the detailed review, I very much appreciate it! I will try and resolve your comments a little later tonight.

VojtechStep commented 8 months ago

No problem, and no rush, I won't get back to it before tomorrow night 😁

fredrik-bakke commented 8 months ago

I've resolved all but your comment regarding changing the HTML backend, which I will do tonight. In the process of reviewing this PR, I found a series of other mistakes in the citations and bibliography file too that are now fixed. @VojtechStep

EDIT: It's resolved now too

VojtechStep commented 8 months ago

Note that while disabling the check-ast pre-commit hook silences the CI, running the preprocessor still fails on Python 3.8, it's just at runtime and (for some reason) silent - the website build finishes, but the preprocessor never runs. We should reinstate the check-ast hook and make sure our scripts actually run on 3.8 @fredrik-bakke

VojtechStep commented 8 months ago

It seems that just removing the newlines introduced in f-strings solves this. It looks like this bug in autopep8 with Python 3.12: https://github.com/hhatto/autopep8/issues/712

fredrik-bakke commented 8 months ago

Note that while disabling the check-ast pre-commit hook silences the CI, running the preprocessor still fails on Python 3.8, it's just at runtime and (for some reason) silent - the website build finishes, but the preprocessor never runs. We should reinstate the check-ast hook and make sure our scripts actually run on 3.8 @fredrik-bakke

Python amirite

fredrik-bakke commented 8 months ago

Thanks for catching this before a merge. Of course it didn't fail when I tested locally because I run a python version that is compatible with the formatting

VojtechStep commented 8 months ago

One last request - could you log which file included a dangling citation/reference? Adding chapter['path'] to the logged message should be enough.

fredrik-bakke commented 8 months ago

Anything else? 🤓

VojtechStep commented 8 months ago

Nope, that's everything I could have asked for. Thanks again for picking this up, and feel free to merge the PR, I already put my laptop away 🎉