Update header comments & documentation #791
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed that the inline documentation, which was tailored for appledoc, didn’t render well within Xcode. For example, the documentation for
FMDatabaseQueue
looked like:With this PR, it is now rendered like so:
Bottom line, I’ve wrapped code blocks with
@code
/@endcode
, replaced back ticks with@c
tags, etc. I’ve also fixed some problems (e.g. a#pragma
between the comment and the@interface
was preventing documentation from showing up; a private method that shouldn’t have been exposed has been hidden; etc.).In full disclosure, I didn’t do much review of the content of the documentation, but focused largely on the formatting only. Also, this was a fairly cursory cleanup and I’m sure it’s not perfect, but it’s much better, IMHO.
Assuming you’re good with these fixes, I’d suggest rebuilding the gh-pages documentation, but rather than using appledoc (which doesn’t appear to have been updated in a very long time), I’ve found jazzy to be a little more up to date with modern auto-documenting conventions. I’ll do separate PR for that (if and when you approve this PR).