-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix the Cite link in URL footer #18
Comments
avallecam
changed the title
fix the Cite link in footer
fix the Cite link in URL footer
Nov 15, 2023
avallecam
added a commit
that referenced
this issue
Nov 15, 2023
this complements the cff file and the inst/citation file
Read the citation section suggestions from this lesson https://carpentries.github.io/lesson-development-training/aio.html#readme |
We can also evaluate this arrangement:
|
Update on this: the workbench now supports CFF out of the box. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default Cite link in the footer currently links to a 404 path:
https://github.com/epiverse-trace/research-compendium/blob/main/CITATION
We have a
CITATION.cff
on the root, but the.cff
extension is not recognized by the template Cite link.The Cite link is generated by {varnish} in the footer:
https://github.com/carpentries/varnish/blob/c59c9ed79746d6d490486f0ebd3245f9edeb7f3a/inst/pkgdown/templates/footer.html#L21
The git-novice lesson citation relies on the other citation files identifiable by GitHub:
CITATION
file,.cff
file,Before the identification of this issue, we created
CITATION
files with these steps (we recommend steps 1-3 in the training material of this repo):Fill contributors' data in DESCRIPTION file.
Create from the DESCRIPTION file a
CITATION.cff
with:cffr::cff_write(dependencies = FALSE)
CITATION.cff
file ainst/CITATION
file with:cffr::write_citation(x = "CITATION.cff", file = "./inst/CITATION")
./inst/CITATION
for a human-readable output it in the README:research-compendium/README.Rmd
Lines 48 to 51 in 8ae2bf0
This is problematic for the template for two reasons:
research-compendium/inst/CITATION
Lines 1 to 4 in 8ae2bf0
To adapt this for the template,
CITATION
file in the root with the output of:readCitationFile(file = "inst/CITATION")
This will be as readable as in the README
research-compendium/README.md
Lines 46 to 49 in 8ae2bf0
Include a
Please cite as:
on top according to reference: https://github.com/swcarpentry/git-novice/blob/main/CITATIONinst/CITATION
file to avoid redundancy in the online repo. This is a useful transition file to knit the README.The output of these steps are:
CITATION.cff
file: to get the "Cite this repository" label with APA and BibTeX outputs.--> removed in step 6.inst/CITATION
file: to generate a human-readable file withutils::readCitationFile()
to include in README.CITATION
file: to fill theCite
link for the workbench template. This is visible in the footer of the URL and generated from code.The text was updated successfully, but these errors were encountered: