We need comprehensive documentation.

We already have fairly good inline documentation, but we should look it over to make sure it is all good.

There are a number of things to do for documentation:
* README.txt for all modules (Do we keep API and hook documents in another file?)
* Advanced Help (what should go here and in README's?)
* Documentation page on d.o (this can be a growing document)

Comments

zzolo’s picture

We should use an openlayers.api.php to create doxygen documentation. Why?

* This is how core does it.
* It can be easily parsed for outputting to other formats.
* This is probably the most friendliest format for potential developers.

zzolo’s picture

Version: » 6.x-1.x-dev

Inline documentation and Doxygen format.

There was the following in the openlayers hook implementation in the openlayers.module file:

 *
 * @ingroup Default Layer Types and Instances

This is bad syntax and unnecessary. See: http://drupal.org/node/1354#contrib

We only want to use groups to:
* Group the module files together
* Group any specific functions together, (ie the API functions together)

The main goal of the Doxygen formatting is to make it a lot easier to browse when parsed, so its important to have simple and sane groups.

I only write this to help, though I know it can come off as as obsessive compulsive.

phayes’s picture

Title: Documentaiton » Documentation

Sounds good. I didn't really understand the purpose of @ingroup. Please do change it.

zzolo’s picture

It is a real simple designation to put something in a group. It's pretty arbitrary. One does have to define the group with @defgroup first. The only two reasons I was thinking of using it was:

* to group our files together since we have multiple modules in this project, and
* to group the API calls together since these are the functions that other developers will need to reference easily.

zzolo’s picture

Just to show in a visual way how helpful inline documentation is, I have put up a snapshot of the module on my API site:

* http://api.zzolo.org/api/file/drupal-6-contrib/openlayers/openlayers.mod...
* Then in specific functions, you can see the related topics section: http://api.zzolo.org/api/function/openlayers_merge_maps/drupal-6
* Specific API group (@ingroup): http://api.zzolo.org/api/group/openlayers_api/drupal-6

I am just noticing that @ingroup for files does not seem to be support in the API module. Well, it is still good practice, and we could use a more robust Doxygn parser to create documentation as well.

zzolo’s picture

Title: Documentation » Inline Documentation

Changing this to Inline documentation. This includes the files in the /docs folder. The main thing at the moment that needs addressing is the MAP_ARRAY.txt file. I think we can just push this to the Advnaced help since it is a large amount of documentation and we don't want to duplicate that effort.

Sepearated out documentation tasks:
* #555976: Advanced Help Documentation for 1.0
* #555978: Handbook Page Documentation for 1.0

zzolo’s picture

Title: Inline Documentation » Inline Documentation for 1.0
zzolo’s picture

Status: Active » Fixed

I have decided to move this documentation to the Advanced Help integration. It seemed redundant to put things in both places, and annoying to spit it up. So, I think our inline documentation for the 1.x branch is as complete as it will get. Please see #555976: Advanced Help Documentation for 1.0 for the more integrated documentation that comes with the module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.