distillpub / post--communicating-with-interactive-articles

https://distill.pub/2020/communicating-with-interactive-articles
Creative Commons Attribution 4.0 International
39 stars 15 forks source link

Citation list missing some references #19

Closed fredhohman closed 4 years ago

fredhohman commented 4 years ago

On the published version the citations stop at [146], but it should have [155]. This is weird, the text still shows the final [155] citation.

Example:

image

Here's the current ending:

image

When I run the page locally, I see the correct number of citations both on npm run dev and npm run build and running a local server in public/ folder.

@ncammarata thoughts?

fredhohman commented 4 years ago

Looking closer, the citation numbers don't actually match up for what's in the text and what's in the list. Somehow 9 citations were dropped. I suspect it's a special or funky character in the bibtex that isn't get parsed correctly?

fredhohman commented 4 years ago

I found the problem: we cite 9 references in a svelte figure that are skipped in the citation list. I saw this problem locally so added this hidden div to fix it, but doesn't look like it fixes it on the live version: https://github.com/distillpub/post--communicating-with-interactive-articles/blob/master/src/diagrams/application-tabs/application-tabs.svelte#L29-L36

fredhohman commented 4 years ago

Closing for now. Assuming this is taken care of unless Distill production build doesn't read hidden divs. Will reopen otherwise.