We have more documentation than ever, and more of it is in various
states of construction. I increasingly find myself making use of the
draft macro in order to try to ensure that readers know a page isn't
finished. However, that banner isn't particularly helpful since it
conveys no useful information.
I would like to propose we make some enhancements to the macro to make
it more helpful.
I think it would be useful to add the option to include a brief bit of
text explaining the draft status (is it because the article is being
updated because of spec changes? is it being written actively? is it
just part of a project that needs doing but isn't being worked on?), as
well as possibly a link to the appropriate doc status page and/or a link
to help find the person heading up the doc work in that area.
This would help not only make the banner more useful, but also it would
stand out a little better so maybe it would catch people's eyes more,
preventing some misunderstandings about the quality of content.
Assuming there's some consensus that this is a good idea, there are a
couple of ways it could be done.
Obviously, it could accept optional parameters. However, I know there's
a push to try to reduce reliance on parameters for macros like these.
The other option would be to add information to the GroupData and/or
InterfaceData databases which would be used by the draft macro. Probably
just GroupData.
You should be able to build the doc status page link automatically given
the API name, correct?
After that, you add optional fields to GroupData records like this
(exact names of fields and options are TBD; this is just to give an idea
of what I'm thinking):
* "draftstatus": ["in-progress", "complete", "helpwanted", "stub"]
(maybe allow more than one of these at a time; text in the box would
be generated based on which of these are included]
* "contact": "username-of-project-lead"
These are totally ignored if the {{draft}} macro isn't used. If it is,
then the Draft banner is more informative.
Does that stir up ideas out there?
--
Eric Shepherd
Senior Technical Writer
Mozilla Developer Network <
https://developer.mozilla.org/>
Blog:
https://www.bitstampede.com/
Twitter:
http://twitter.com/sheppy
Doodle:
http://doodle.com/the.sheppy