Skip to content

Add CITATION.cff file - #4109

Merged
laurmaedje merged 2 commits into
typst:mainfrom
drupol:add-citation-cff
May 13, 2024
Merged

laurmaedje merged 2 commits into
typst:mainfrom
drupol:add-citation-cff

Conversation

@drupol

@drupol drupol commented May 10, 2024 •

Copy link
Copy Markdown
Contributor

Hello,

I frequently need to cite Typst in the documents I write, and noticed that GitHub supports a specific citation file format (CITATION.cff). Having this file would enhance the visibility and proper citation of Typst directly from the GitHub repository page.

GitHub's support for the CITATION.cff files enables easy access to citation information, which can be automatically parsed and displayed on the project page. More details can be found in the GitHub documentation on citation files.

Would you be interested in adding such a file to the project?

When Github detect such a file in a repo, a new link is displayed on the right side:

image

Clicking on the link open a box:

image

Screenshots from https://github.com/citation-file-format/citation-file-format

Related to #4108

@drupol
drupol marked this pull request as ready for review May 10, 2024 10:31
@drupol

drupol commented May 10, 2024

Copy link
Copy Markdown
Contributor Author

Comment thread CITATION.cff Resolved
@xkevio

xkevio commented May 10, 2024

Copy link
Copy Markdown
Contributor

Would it also maybe make sense to add the date-released field? As like the year the repository went public? It's not ideal, especially once Typst is out of beta but citing something without some form of year can look off in most citation styles.

@drupol

drupol commented May 10, 2024

Copy link
Copy Markdown
Contributor Author

Would it also maybe make sense to add the date-released field? As like the year the repository went public? It's not ideal, especially once Typst is out of beta but citing something without some form of year can look off in most citation styles.

Yes ! The more field we have, the better ! feel free to suggest them !!!

@xkevio

xkevio commented May 10, 2024

Copy link
Copy Markdown
Contributor

Would it also maybe make sense to add the date-released field? As like the year the repository went public? It's not ideal, especially once Typst is out of beta but citing something without some form of year can look off in most citation styles.

Yes ! The more field we have, the better ! feel free to suggest them !!!

On that note, the version field could be nice but would have to be updated alongside releases.

@drupol

drupol commented May 10, 2024

Copy link
Copy Markdown
Contributor Author

The date-released field is usually used when we add the versions inside that file. TBH, I don't believe we should add the versions, therefore, I don't think this field is really needed.

@laurmaedje laurmaedje changed the title chore: add CITATION.cff file Add CITATION.cff file May 13, 2024
Comment thread CITATION.cff Resolved
Comment thread CITATION.cff Resolved
Comment thread CITATION.cff Resolved
@drupol

drupol commented May 13, 2024

Copy link
Copy Markdown
Contributor Author

I applied your suggestions, and also added a new CI file to check the validity of the CITATION.cff file.

@laurmaedje laurmaedje left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think CI for a citation file is overkill, so I'd rather not have that. 🙂

@drupol

drupol commented May 13, 2024

Copy link
Copy Markdown
Contributor Author

Removed

@laurmaedje
laurmaedje enabled auto-merge May 13, 2024 09:10
@laurmaedje

Copy link
Copy Markdown
Member

Thanks!

@laurmaedje
laurmaedje added this pull request to the merge queue May 13, 2024
Merged via the queue into typst:main with commit 32a84e5 May 13, 2024
@drupol
drupol deleted the add-citation-cff branch May 13, 2024 09:17
Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants