Hello all,
I'd like to start the discussion about documentation.
Recently I published Test.Run on
extjs-ux.org (this site was my early attempt to create something like JSAN, for ExtJS extensions)
Here is the documentation (received with
ext-doc):
http://extjs-ux.org/ext-docs/?class=Test.RunPros for ext-doc:
- good-looking
- standardized sections (header, properties, methods, events)
- convenient to use (compacted descriptions, quick links in right-top corner, can hide inherited properties)
Cons:
- Hard-coded sections (can't create move aside from pre-defined template - it will be always header, config options, properties etc)
- raw HTML is using as text markup
- support only jsdoc format.
Considering the above, here is how I see the documentation system.
1. Abstract document model with a number of pre-defined elements, like 'header', 'paragraph', 'class', 'method', 'attribute' etc
2. Perhaps it can be made in OO way - for example 'method' isa 'paragraph' with special template.
3. Document model should allow to define new elements
Then:
sources -> abstract document model -> documentation in various formats
parsers producers
Perhaps I've re-invent the bicycle )
Anyway - RFC
Regards, Nickolay