Closed Bug 691795 Opened 13 years ago Closed 13 years ago

cfx docs fails if package directory name != package name

Categories

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

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wbamberg, Assigned: wbamberg)

Details

Attachments

(1 file)

cfx docs requires the name of the directory containing a package to be the same as the name of the package. The rest of cfx doesn't.

This is a bad experience for people using third party modules, as they'll probably download the third party package from (for example) GitHub, and it will probably not have the same name as the package.
Attachment #564642 - Flags: review?(warner-bugzilla)
Comment on attachment 564642 [details] [diff] [review]
Tolerate package directory != package name

Only tiny notes:

* there are some tiny whitespace fixes: the call to get_documented_modules() should be all on the same line, and there's some extra whitespace added on the second line of _create_package_summaries().

* incidentally, src_dir.split(os.sep)[-1] can be written more idiomatically as os.path.basename(src_dir)

Otherwise looks good!
Attachment #564642 - Flags: review?(warner-bugzilla) → review+
Thanks Warner. I made those changes and landed it in https://github.com/mozilla/addon-sdk/commit/4e00787176602a47c7ccec5764867a0619ffcbc6
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: