TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Enhanced Support for Citations on GitHub

80 点作者 chenzhekl超过 3 年前

6 条评论

westurner超过 3 年前
&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>
aorth超过 3 年前
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!
tasogare超过 3 年前
&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 未加载
ivalm超过 3 年前
Why not use bibtex directly?
评论 #28254356 未加载
thenoblesunfish超过 3 年前
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.
danra超过 3 年前
How about extending this feature to automatically add in the required licenses for the sources of Copilot-generated code?