Repository navigation
Show paper citation counts; add the Paper Surveys type - #96
Merged
Merged
Conversation
Paper posts take an optional paper_doi (paper types only, a bare DOI; the lint checks both). js/citations.js fetches the count in the browser, caches it for a day, and hides the meta-panel field on failure or zero. All 28 paper posts are backfilled from their source arXiv link.
Seven tabs wrapped the 48em nav bar, so tabs take a shorter nav_title (Summaries, Reviews, Surveys) and desktop link padding drops to 1.1em; the footer site map keeps the full titles.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a live citation count to paper posts and a new
Paper Surveyspost type.Citation count
paper_doi(paper types only).js/citations.jscalls the Semantic Scholar Graph API from the browser:arXiv:<id>for10.48550/arXiv.<id>,DOI:<doi>otherwise.Backfill
paper_doiwas filled on 28 paper posts (every Paper Reviews / Paper Summaries post), from the source paper's arXiv link: the first entry under References, matched against the title, with the version stripped. The key sits right underpaper_author.Paper Surveys
/paper-surveys/page (empty state for now) and a nav tab.nav_title(Summaries / Reviews / Surveys) and desktop link padding is 1.1em. The footer site map keeps the full titles.scholar-lens
Changed keys in
_data/post_conventions.yml:types.Paper Surveys: {}(new)typescomment, which describespaper_doiand Paper SurveysThe scholar-lens copy needs the same change before its drift check passes.
New lint rule in
script/lint-posts.rb: on a paper type,paper_doimust be a bare DOI; on any other type it is an error.Passes:
"10.48550/arXiv.2310.06825""10.18653/v1/2024.acl-long.1"Fails:
"https://doi.org/10.48550/arXiv.2310.06825""arXiv:2310.06825"""10.48550"10.1000/a?b""10.1000/a#b"paper_doion Tech Guides, Insights or Paper SurveysVerification