-
Notifications
You must be signed in to change notification settings - Fork 42
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
Document standalone citation processing #37
Comments
Do you mean harnessing the citation facility within Manubot without the full GitHub and CI functionality? I have a little script locally that'll take a Markdown file I'm writing, copy it somewhere (e.g., But maybe you mean a more abstract API that'll just run citation JSON given an identifier. |
I was thinking of a few lines of code that would show how the Provide an identifier and you can easily get authors, title, and other metadata. |
Are you thinking it would be good if this could be called directly, e.g., |
I hadn't thought about that, but maybe? I was thinking about importing and using that function directly as part of a larger Python codebase. |
The citation identifier to citeproc is widely applicable beyond Manubot. Were we to advertise this functionality and make it easily usable, it could gain a lot of usage. To maximize usage, it would probably be best as a standalone library. However, in the meantime we could create some documentation for I will look into I am guessing some users will want to pass full citations like Larger picture, I think we should move the Manubot USAGE.md to this repository. Probably host documentation for Manubot in this repository rather than rootstock. We could even display the doc at a Manubot domain. I digress. Will open a new issue. |
Good idea @slochower. I'd be in favor of a CLI like:
We may want to change the current BTW. Casey just acquired |
Backwards incompatabile API change. The `manubot` command is now `manubot process`. A new `manubot cite` CLI has been added to generate CSL for the specified citations. Refs manubot#37
Backwards incompatabile API change. The `manubot` command is now `manubot process`. A new `manubot cite` CLI has been added to generate CSL for the specified citations. Refs manubot#37
manubot#42 Ignore .pytest_cache/ dicectory CLI to print CSL for citations: arparse sub-commands Backwards incompatabile API change. The `manubot` command is now `manubot process`. A new `manubot cite` CLI has been added to generate CSL for the specified citations. Refs manubot#37 Test manubot cite: assert error if no citations Ignore flake8 line too long Separate process code into module Create command module with console_script entry point manubot cite CLI: add --file option for output Order arguments in required order Test manubot cite: stdout & file output Fix typo CLI: require specifying submodule Produce a descriptive error message in the case that Manubot is called without a sub-command (i.e. `manubot`). CLI: test v0.1.0 DOC: add sub-command usage to README.md Workaround subprocess windows bug
The new CLI in #42 is really great. Do we also want to show an example of access through a Python script?
|
Yes but not until the internal API stabilizes. I still am thinking about moving some functions and refactoring. |
That makes sense. |
Somewhat related, it'd be great if we could get the @manubot GitHub handle to host our repositories. See manubot-zz/manuel.botero-hotmail.com#1 |
The Manubot package can be broadly useful for citation processing even if users do not need the full functionality. We could document how to map citation identifiers to CSL JSON items with standalone examples like the test cases in
test_citations.py
.See greenelab/deep-review#886 for another potential use case.
The text was updated successfully, but these errors were encountered: