Template for Contrib documentation

Events happening in the community are now at Drupal community events on www.drupal.org.
Anonymous's picture

Unfortunately contrib documentation sometimes seems to be few and far between. I understand this is because people are busy and a lot of people are working on Drupal modules on their own time. That being said, I think if we had a template, it would be a lot easier for people who aren't used to writing documentation and who need guidance to write documentation, and it would also bring some consistency to the documentation that is on drupal.org.

Ia anyone interested in helping me create a template for contrib module documentation?

Comments

avanraaphorst's picture

Hi, Danielle -- My business partner, Dick Johnson, and I would like to volunteer to do the template you requested. He has recently contributed a bulk publishing module, Bulkpub, and has done documentation for that. We would like for that doc to be in whatever turns out to be the "approved" format. Would it be possible for you to take a look at that and compare it to what you have in mind for the template? Then we could produce the template and example doc at the same time. We will have time to work on it a bit before the holidays and would plan to complete the project early in the new year. How would you like to proceed? Thanks, Anna

There's a template, just not official

arianek's picture

Hi Danielle -

There was a lot of debate over a template for module docs landing pages http://drupal.org/node/1142004 when we were working on a standard to apply to D7 core modules (most of the new ones and some of the old ones now follow this). This would be a great issue to pick back up and finish if you want to help.

http://drupal.org/documentation/modules/field-ui is a good example structure to follow or work from ie.:

  • intro (introductory paragraph)
  • uses (what you can do with the module)
  • versions (version specific info - try and be version agnostic in the previous sections)
  • technical details (use or adapt template from field UI)

Once this issue has agreement, it'd be great to post the final template somewhere in http://drupal.org/documentation-writers-guide or possibly somewhere else where it'll be more visible to maintainers.

Also...

jhodgdon's picture

We have a whole section in the coding standards area about how to document your contributed project:
http://drupal.org/node/632262

More end user information

Danielle Sheffler's picture

Ariane and Jennifer -

Thanks for the help. I was talking to Angie about a template at Drupal on the Bayou, which is how this came up. I think some of what has happened in the past is that when documentation is available, it is often very technical so a typical site builder or someone who knows how to install modules but not write a lot of PHP has trouble figuring out what the module does, etc.

I'm definitely interested in picking up where the project left off. I just want to make sure that I'm clear in stating that I don't want to change the template for the contrib module landing page but rather the additional documentation that is generally linked to in the right sidebar. This documentation generally tends to include more step by step instructions on uses, module configuration, screenshots, etc.

Right sidebar?

jhodgdon's picture

What right sidebar are you talking about? You mean on drupal.org after you get to the main documentation for the module? If so, you can definitely click "add child page" at the bottom of that page (after it's created using the template), and add additional pages with more information.

I think the project page's

arianek's picture

I think the project page's right sidebar?

Limited...

jhodgdon's picture

The right sidebar on the project page -- that only allows you to link to one documentation URL, which is normally on drupal.org. After that you can add child pages to that page and put in whatever documentation you want.

Clarification

Danielle Sheffler's picture

Ok, I'm going to try to provide some clarification as to what I mean. Sorry if I haven't been clear above.

I am indeed talking about the link in the right sidebar of a module that takes you to the documentation URL that lives on drupal.org. However, I am trying to solve the issue that Jennifer brought up of putting in whatever documentation you want. I think it is important to create a template to show what type of material should be in there so that each module does not have a completely different format. The template would be a suggested outline that a module maintainer/contributor would use. Some example content would be a module summary, who should be using the module (developer, site admin, themer), step by step instructions on how to configure the module, screenshots of what the module configuration screen looks like and screenshots of the functionality it adds to the site, etc. I may add or remove from the list I have in the previous sentence, but hopefully that provides some clarification of what I am looking to do.

Sounds useful...

jhodgdon's picture

As Ariane pointed out above, we do have a template for the initial landing page for the drupal.org docs for a module.

But what you're talking about is quite a bit more extensive, and frankly is probably quite a bit more than most contrib module developers are willing to agree "should" be in there. It's like pulling teeth to get them to write docs most of the time, and it's also difficult for them/us (I'm a contrib module maintainer as well as docs co-leader) to maintain the docs on drupal.org in synch with their module. Also, not everyone wants to provide docs on d.o, and probably not every contrib module needs extensive docs on d.o.

So... although this idea sounds useful, the dev community is not likely to buy into your probably wonderful suggestions about the ideal docs... So I'm not sure if I should encourage you anyway to write them up, or discourage you since if it's not adopted generally, it will be somewhat wasted effort. ???

on the other hand...

silverwing's picture

There are some Module maintainers/users who do want to have docs available and may not know the best way to get the information to the users.

I'm thinking a "Module documentation best practices" page with the info Ariane pointed out above would be helpful to those developers.

~silverwing

That sounds good - I think

arianek's picture

That sounds good - I think Jennifer's right we can't expect everyone to use it, but many people might find it useful, especially new maintainers, so it couldn't hurt!

We have "module doc best practices"...

jhodgdon's picture

As noted above, we already have a module doc best practices section:
http://drupal.org/node/632262

We can definitely add to it, but I would suggest first:
- Discuss changes to standards and best practices on an issue on drupal.org (presumably in the Documentation issue queue) before changing the standards.
- Alert contrib module developers of the issue (for instance with a post on Drupal Planet or on the development mailing list or at least mentioning it in IRC) so that they can comment on the proposed standards.

Documentation

Group categories

Event type

Post type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week