Skip to content
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

Create full formatting spec #16

Open
yangkky opened this issue Jun 20, 2019 · 8 comments
Open

Create full formatting spec #16

yangkky opened this issue Jun 20, 2019 · 8 comments

Comments

@yangkky
Copy link
Owner

yangkky commented Jun 20, 2019

No description provided.

@agitter
Copy link
Contributor

agitter commented Jul 18, 2019

@yangkky would you want to try to automate some of the citation metadata extraction and formatting? I started thinking about how our Manubot tool might be able to take a list of conference paper URLs, arXiv ids, journal DOIs, etc. and generate the formatted reference list for collaborative curation projects like this (manubot/rootstock#223). The goal would be to make it easier to maintain and contribute to.

@yangkky
Copy link
Owner Author

yangkky commented Jul 18, 2019

Yes, that would be awesome!

@agitter
Copy link
Contributor

agitter commented Jul 20, 2019

There are a few options for setting this up. All of them would involve listing references in this repository, using Manubot (with pandoc and CSL) to extract and format the metadata, and deploying the formatted list.

Option 1: Full manuscript
This is what Manubot was primarily designed for. A simple manuscript would have lists or tables of references and be deployed as HTML and PDF to GitHub Pages. https://greenelab.github.io/meta-review/ is a complex example, but it would be much more sparse if only tracking categorized references.

Option 2: Keep the references in the readme
Manubot doesn't directly support this, but I made a quick proof of concept at https://github.com/agitter/manubot-awesome-list Like this repository currently does, everything would be displayed in the master branch readme. However, the references would all be extracted from lists of DOIs, URLs, etc. instead of manually maintained. This isn't ready to go right now but could be made more robust.

Option 3: Custom GitHub pages
This isn't worth the effort, but it is possible to use the Manubot API to get reference metadata and display references in a customized way. The Manubot catalog does that.

@yangkky
Copy link
Owner Author

yangkky commented Jul 22, 2019

In principle, I like option 1 a lot, especially as I'd eventually like to add some paper summaries. Under this option, the final product would have it's own webpage, backed by the github repo, right?

@agitter
Copy link
Contributor

agitter commented Jul 22, 2019

Yes, with option 1 there is a GitHub repository that contains Markdown files with references and discussions of some or all references. Those are built into HTML and PDF documents on the gh-pages branch of the repository.

You can edit the demo at https://github.com/manubot/try-manubot/ to see how option 1 works. The files in the content subdirectory are turned into https://manubot.github.io/try-manubot/

@yangkky
Copy link
Owner Author

yangkky commented Jul 22, 2019

Great! I'll give this a try when I have some time!

@agitter
Copy link
Contributor

agitter commented Oct 29, 2020

I've found this repo to be very useful, so I'm returning to this issue to see if there is a way to reduce the maintenance burden. I prototyped a GitHub Actions workflow that will automatically extract the citation information from the title of a new issue. The idea is that you and other contributors could quickly make new issues with relevant papers and periodically make a batch update to the readme categorizing those new papers. The manual step of copying and formatting the reference would be eliminated.

You can see what this looks like in agitter/manubot-awesome-list#7 or test it by opening a new issue in that repo. Title field can be a URL to a paper, a DOI, arXiv id, PMID, or any other identifier that Manubot supports. The action only runs on issues with the reference label.

I also made a Citation Style Language file that modifies the Manubot default to approximately match the reference style in this repo.

Let me know if this seems useful. I could make a pull request to enable the issue processing here.

@yangkky
Copy link
Owner Author

yangkky commented Nov 23, 2020 via email

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

No branches or pull requests

2 participants