TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Enhanced Support for Citations on GitHub

80 pointsby chenzheklover 3 years ago

6 comments

westurnerover 3 years ago
&gt; <i>CITATION.cff files are plain text files with human- and machine-readable citation information. When we detect a CITATION.cff file in a repository, we use this information to create convenient APA or BibTeX style citation links that can be referenced by others.</i><p><a href="https:&#x2F;&#x2F;schema.org&#x2F;ScholarlyArticle" rel="nofollow">https:&#x2F;&#x2F;schema.org&#x2F;ScholarlyArticle</a> RDFa and JSON-LD can be parsed with a standard Linked Data parser. Looks like YAML-LD requires quoting e.g. &quot;@context&quot;: and &quot;@id&quot;:<p>From <a href="https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;github&#x2F;creating-cloning-and-archiving-repositories&#x2F;creating-a-repository-on-github&#x2F;about-citation-files#about-citation-files" rel="nofollow">https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;github&#x2F;creating-cloning-and-archi...</a> ; in your repo&#x27;s &#x2F;CITATION.cff:<p><pre><code> cff-version: 1.2.0 message: &quot;If you use this software, please cite it as below.&quot; authors: - family-names: &quot;Lisa&quot; given-names: &quot;Mona&quot; orcid: &quot;https:&#x2F;&#x2F;orcid.org&#x2F;0000-0000-0000-0000&quot; - family-names: &quot;Bot&quot; given-names: &quot;Hew&quot; orcid: &quot;https:&#x2F;&#x2F;orcid.org&#x2F;0000-0000-0000-0000&quot; title: &quot;My Research Software&quot; version: 2.0.4 doi: 10.5281&#x2F;zenodo.1234 date-released: 2017-12-18 url: &quot;https:&#x2F;&#x2F;github.com&#x2F;github&#x2F;linguist&quot; </code></pre> <a href="https:&#x2F;&#x2F;citation-file-format.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;citation-file-format.github.io&#x2F;</a>
aorthover 3 years ago
Ah great! It indeed seems to be enhanced now, as opposed to a few weeks ago when GitHub CEO Nat Friedman announced initial support <a href="https:&#x2F;&#x2F;twitter.com&#x2F;natfriedman&#x2F;status&#x2F;1420122675813441540" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;natfriedman&#x2F;status&#x2F;1420122675813441540</a>. I had used the CFF initializer website <a href="https:&#x2F;&#x2F;citation-file-format.github.io&#x2F;cff-initializer-javascript&#x2F;" rel="nofollow">https:&#x2F;&#x2F;citation-file-format.github.io&#x2F;cff-initializer-javas...</a> to create my CFF file, but GitHub couldn&#x27;t parse it. Now it&#x27;s working!
tasogareover 3 years ago
&gt; YAML<p>Can&#x27;t we let this format die? It&#x27;s both hard for human to format correctly, and for library creator to make a compliant parser.
评论 #28253594 未加载
评论 #28253876 未加载
评论 #28253911 未加载
评论 #28255951 未加载
ivalmover 3 years ago
Why not use bibtex directly?
评论 #28254356 未加载
thenoblesunfishover 3 years ago
This seems like an attempt to make GitHub stickier, and should be avoided. Just give people BibTeX to copy and paste, and don’t let Microsoft railroad you into using their formats, yet again.
danraover 3 years ago
How about extending this feature to automatically add in the required licenses for the sources of Copilot-generated code?