Closed Bug 664001 Opened 13 years ago Closed 13 years ago

'self' module has gone missing from the docs

Categories

(Add-on SDK Graveyard :: Documentation, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wbamberg, Assigned: warner)

References

Details

(Whiteboard: [cherry-pick-1.0])

Attachments

(1 file)

Probably as a result of bug 615244, the 'self' module doesn't show up in the list of modules in the doc sidebar any more. The code in webdocs.py fetches the set of modules in a package, then filters it using the set of corresponding MD files. Since self.js doe not exist under addon-kit/lib, the code does not include it in the list of modules.
argh. I'd assumed that the doc sidebar was built from the list of *.md files. Yeah, I guess we need to special-case that one.
(In reply to comment #1)
> argh. I'd assumed that the doc sidebar was built from the list of *.md
> files. Yeah, I guess we need to special-case that one.

Yes, but I can't think of any reason why it should _not_ just be built from the list of MD files, can you?
Quick hack to get 'self' back into the docs, by forcibly adding it to the (normally calculated) list of documented modules for the addon-kit package. Probably good enough for 1.0, but not the long-term fix.

Will: yeah, I think it ought to be generated from *.md too. Fixing that right now is too risky, though, as the code is pretty intricately wrapped around the idea of looking at the scanned package's data structure of .js modules. I'll file a bug to fix that after 1.0 .
Assignee: nobody → warner-bugzilla
Attachment #539077 - Flags: review?(myk)
Bug 664053 added for the long-term fix.
Comment on attachment 539077 [details] [diff] [review]
hack to get 'self' back into the docs

r=myk, and a=myk for commission during freeze, although drivers'll probably mark this a blocker.
Attachment #539077 - Flags: review?(myk) → review+
Blocks: 660286
Priority: -- → P1
Hardware: x86 → All
Target Milestone: --- → 1.0
Landed in https://github.com/mozilla/addon-sdk/commit/262117fe2937b81a06bdec731b44ad8411d2dc94
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [cherry-pick-1.0]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: