-
Notifications
You must be signed in to change notification settings - Fork 3
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
Write a tutorial for the PineAPPL CLI #130
Comments
You can put it as:
Nothing prevents to do both, but I'd start from the second. |
The first option is an interesting idea! The second option isn't possible right now, as docs.rs doesn't document binaries. Have a look at https://docs.rs/crate/pineappl_cli/0.5.1. I was thinking of simply writing markdown documents in the git repository, which is simple and works quite well. |
Ok, that's bad... but it is what it is. Then, what you can do is to write simple markdown documents, and compile them into the |
why not use #116 ? |
Three reasons for me:
I'd say it's way more complicated. Markdown files are easy to write, and the further subcommand is something more you can add (an extension), but they do not depend on it. |
@alecandido @felixhekhorn @scarlehoff I've completed a first version of the tutorial, if you like you can have a look at it and let me know if there's anything that can be improved or missing. The tutorial is now in docs/cli-tutorial.md (read it online). |
I think it's a good start! maybe a few comments:
|
@felixhekhorn thanks for your comments! I will definitely replace the grid with an updated version, where the typo is fixed, where gluons have PDG ID A table of contents is a very good idea, I will add it. For the time being the tutorial must be viewed either in the repository or rendered on github, and we should probably link it on the new website. As far as I understand docs.rs doesn't document binaries, but I have to read the corresponding Issue, maybe I can workaround it: rust-lang/docs.rs#238. |
I finally took the time to read it: it's really enjoyable and descriptive. I believe this is really the correct size for the tutorial: you can read in 10-20 minutes (according to the personal experience with the topic) and it gives you an idea of the most important concepts, including a taste of the power and flexibility of the CLI. I would not expand beyond this size, it's perfect. |
Is it possible to add a |
I believe this to be a long-standing issue, see rust-lang/cargo#2729. |
But there is some development in |
I believe the tutorial is mostly there. For manpages I've opened a separate Issue: #145. |
At the moment the only documentation of the CLI is in the CLI itself, using
or similarly for each subcommand, for instance for convolute:
While this is okay for an experienced user, we need a short tutorial which
The text was updated successfully, but these errors were encountered: