aplteam / Tatin

Tatin is a package manager for Dyalog APL
MIT License
25 stars 6 forks source link

Add a config parameter "documentation" #94

Closed aplteam closed 2 years ago

aplteam commented 2 years ago

While info_url is supposed to be something like a URL pointing to a web site or a GitHub project or something similar, documentation is supposed to point to, well, documentation.

DavinChurch commented 2 years ago

I would consider help and documentation to be somewhat different. I would expect documentation to lead me to a complete manual where all the detailed information was kept but I would expect help to lead me to a quick-reference that just reminds me of commands and syntax.

aplteam commented 2 years ago

All true, but it's up to the package author: you may just provide help with "documentation" but list the full documentation on where info_url points to. Or not.

DavinChurch commented 2 years ago

Well, it's not that important to me, but personally I would have two different ways of getting two different kinds of information, depending on what I needed at the moment. For my purposes, I'd use the like for a quick-reference help only and if they want the full documentation then they can go to the url link and download it. That's rather the opposite of the naming, but it will do. I just didn't think it would be more than 5 minutes' work to add another name next to the one you've got. Davin

aplteam commented 2 years ago

Davin, what exactly would the field carry in order to provide help of any kind? A URL, right?

DavinChurch commented 2 years ago

I think a URL is probably most practical, if you have to choose only a single method. An actual piece of text/markdown would be more useful in many cases, but I don't think that it's too supportable that way. A URL makes more sense for most people even though I can envision circumstances where toolmakers might not be using something like GitHub to hold their system and thus wouldn't have a good URL to refer to. I suppose in such cases they'll just have to do without.

For my current tools, for instance, I might use the documentation URL to point to my full manual and the info/help URL to point to the ReadMe or similar short quick-reference file. I could always use the text from one of them to mention where the source code was kept, if it wasn't obvious (such as in the same GitHub repo).

Other options might be:

There are certainly a number of non-URL options possible, if you'd like to consider any of them.

aplteam commented 2 years ago

Thanks for that.

I've outlined it this way in the documentation:


documentation

This can be one of:

Content that does not qualifiy for one of these will be rejected.


I think that gives a lot of freedom to a package author.

Note that an email address will become available soon by other means ("maintainer").

DavinChurch commented 2 years ago

That sounds pretty good. Will there be a Tatin-level function (_TATIN) interface to the documentation & help as well as a command-display (]TATIN) level?

aplteam commented 2 years ago

No, I don't think so, it looks a bit like overkill.

aplteam commented 2 years ago

Added with 0.72.0