Documentation shield with modified date. #2119
Replies: 6 comments 14 replies
-
Hi @mattesmohr , thanks for the suggestion! That's an interesting idea and I think that should be feasible. We should have all the information available to generate that badge just like we do for the compatibility badges and it'd be a nice way to enable links to the documentation we host also on Github. 👍 |
Beta Was this translation helpful? Give feedback.
-
Apologies for the slow response to this @mattesmohr. I also haven’t discussed this with @finestructure, so we may not be completely in alignment on it. I agree with you both that it’s a good idea in principle, but I do have some doubts about it. I’d categorise these under two points:
My gut feeling leans towards making this badge, if we implement it, a flag. I would be much more comfortable supporting the SPI generating a “Documented” badge that displays a tick. If we had documentation coverage stats, that might make a good second step, but I think I come down on the side of not making this a date. This is just my opinion, and I only speak for myself rather than the project as a whole, but here are some ideas based on what I just said:
Of the two, I’d suggest number 1 for now. Is this something you’d be interested in helping to contribute? |
Beta Was this translation helpful? Give feedback.
-
I had some documentation badge suggestions, so figured this would be the closest open discussion. Let me know if this would be better off as a separate thread though. A documentation shield should have some indicator of the level of coverage shown. These are the details that can currently be fetched with With 9 percentage values, there's too much information for a badge. As pointed out by @heckj on Discord, the values do not include code samples in Articles or Tutorials, only those inline and in Extension Files. Articles and Tutorials should be a huge metric for valuing quality of docs, so even if it's an absolute number that would be good to have on the badge. Back to just general coverage; not all of the above percentages should be seen as equal IMO. If these were to be combined and put into a special SPI weighted value, these would be my suggested weighting order:
The issue of low-quality, one-liners that push up coverage is a slight issue, but even a project with a bunch of one-liners is better than a project without them in most cases I'd say. The difference between a project with 20% Abstract coverage vs 80% would be clear, regardless of how long the inline docs are. I'd love to get others input on this, especially as I have my biases when it comes to the weighting order posted above. |
Beta Was this translation helpful? Give feedback.
-
Thanks for continuing this discussion, Max I’m not sure I like the idea of trying to distill this down into a single percentage value, or indeed any numeric value. A percentage indicates something absolute, and as you point out, even the 9 percentages that DocC gives do not cover how well something is documented. Don’t get me wrong from saying that. I think that report output from DocC is useful, and I wouldn’t be against capturing those numbers and storing them against a package for display somewhere on the package page. I’m just not sure we should be messing with anything that produces a percentage. It sends all the wrong messages. A 100% rating (whatever that would mean) shouldn’t even be a goal, I don’t think. I’d be slightly more in favour of a “1 star”, “2 star”, or “3 star” system, but my criteria for reaching each level of star should be much simpler than the calculation you outline. Something like:
What I don’t like about this is that there would be no way for us to explain that star system (or any other system) from a badge since it would link directly to the documentation pages. I still think a simple “Documented” badge would be better. Just my 2 pennies, though! |
Beta Was this translation helpful? Give feedback.
-
example script from one of my repos (
|
Beta Was this translation helpful? Give feedback.
-
It's lingering from when I had multiple Xcode beta's installed and kept forgetting to switch around in them. I'm not aware of any notable delta between them - the find returns the path to the specific tool, which was useful in some earlier "workaround" scenarios (specifically for docc-exec) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Heya,
I have an idea and it makes totally sense in my head, but... I am not sure, if it does for others. Anyway, I think it's worth a shot.
So... the idea is about a documentation badge (shield) with the latest modified date of the documentation. Like I have tried with HTMLKit.
Maybe it is just me, but often when I am reading a documentation, I want to know, if the documentation is up to date or at least when were the latest changes. Having this information helps me to decide if it is worth to read or not.
Would it be interesting? Would it be technically possible?
Beta Was this translation helpful? Give feedback.
All reactions