Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docsets for ReactiveCocoa #777

Closed
wants to merge 3 commits into from
Closed

Docsets for ReactiveCocoa #777

wants to merge 3 commits into from

Conversation

antmd
Copy link

@antmd antmd commented Aug 31, 2013

Hi,

I had some spare time, so I wrote a TomDoc to <OtherDocumentationFormat> converter, because I wanted a docset for ReactiveCocoa

I've added support for appledoc and Doxygen.
I haven't integrated it into the build process, because I'm not sure what your preferences are.

Appledoc

Example docset here: http://dervishsoftware.s3.amazonaws.com/software/com.github.ReactiveCocoa.docset.xip

copy to ~/Library/Developer/Shared/Documentation/DocSets

I made a couple of changes to appledoc to make it skip deprecated symbols, and to prevent it auto-linking to common English words (which are also RACSignal symbols)

An updated version of appledoc is here: https://github.com/antmd/appledoc

My pull request is: tomaz/appledoc#397

You can use the 'brew' version of appledoc, but you'll get extra spurious hyperlinks in the output. The script to generate documentation checks for the presence of the extra command-line options.

Generate command-line:

cd <ReactiveCocoaRoot>/ReactiveCocoaFramework/Scripts
./generate_docs.sh -s ../ReactiveCocoa -x ../../README.md -f ReactiveCocoa -c GitHub -d com.github

This will install the docset in ~/Library/Developer/Shared/Documentation/DocSets, and it will be available immediately in Xcode.

Doxygen

Doxygen output generates a folder 'html' in ~/Downloads

Generate command-line:

cd <ReactiveCocoaRoot>/ReactiveCocoaFramework/Scripts
./generate_docs.sh -s ../ReactiveCocoa -x ../../README.md -f ReactiveCocoa -c GitHub -d com.github -t doxygen

The doxygen output draws nice inheritance and collaboration diagrams.

Doxygen is supposed to be able to generate Apple DocSets, too, but I couldn't get it to work properly. I think it's a known issue.

@jspahrsummers
Copy link
Member

Thanks for suggesting this! ✨

Unfortunately, I don't think we should be taking responsibility for maintaining this conversion process within ReactiveCocoa. If this got merged, it would appear as an official part of RAC, and we would be more or less obligated to provide fixes and improvements for it.

This seems more appropriate for a personal project. However, I'd be more than happy to link to it when asked about TomDoc generation!

@robb
Copy link
Member

robb commented Sep 1, 2013

@orta may be interested in this, too

@orta
Copy link

orta commented Sep 1, 2013

I am, there's some value here in making the ReactiveCocoa experience on CocoaDocs work better, thanks @antmd - if this isn't merged, what license is it?

@antmd
Copy link
Author

antmd commented Sep 1, 2013

Hi Orta,

I’ve checked the scripts in to a separate repo: https://github.com/antmd/tomdoc-converter-objc. Let me know if it needs some more work for CocoaDocs.

I’m using the MIT license.

Best Regards
—Anthony

On 1 Sep 2013, at 16:34pm, Orta notifications@github.com wrote:

I am, there's some value here in making the ReactiveCocoa experience on CocoaDocs work better, thanks @antmd - if this isn't merged, what license is it?


Reply to this email directly or view it on GitHub.

@antmd
Copy link
Author

antmd commented Sep 1, 2013

Closing.

@antmd antmd closed this Sep 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants