Could the org-braindump example support the org-roam-bibtex links and the parsing of bibliography files?
Opened this issue · 2 comments
panmengguan commented
I have read the instructions of this example, but I couldn't find out how to deal with org-roam-bibtex links (cite:XXX
) and the bibliography.
rasendubi commented
hey. org-braindump does not currently support that because I couldn’t figure out how to do that in a generic way. But you can take a look at rasendubi/www.alexeyshmalko.com.
The interesting parts are probably:
- src/lib/build.ts:140–171 — collecting all
.bib
files and processing them with bibtex-parse - src/lib/processUrls.ts:36–63 — patching all
cite:
links to point to my notes pages.
Other relevant bits are:
- src/lib/bibtex.ts — for every
.bib
file, create a page with a list of all bib entries in that file (examples: https://www.alexeyshmalko.com/biblio/books/, https://www.alexeyshmalko.com/biblio/online/) - src/lib/postprocess.ts:72–107 — enrich pages with bib notes. prepends a list with bibliographic info to the page (author, year, URL)
Hope this helps
panmengguan commented
Thank you for the suggestion! This is very helpful.