Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Making documentation make sense for both obj-c and swift #3956

Closed

Description

@tmcw

2016-02-15 at 12 01 pm

This documentation keeps mentioning YES as the positive value for this option, but YES is an objective-c'ism - for swift users, the value would be true. How do write documentation in a language-neutral way, or split suggestions like these by language?

Activity

  1. added
    iOS
    on Feb 15, 2016
  2. 1ec5 commented on Feb 15, 2016

    @1ec5
    Contributor

    This is essentially upstream in realm/jazzy#353, but we probably could roll our own language support using custom templates and some shell scripting.

  3. 1ec5 commented on Apr 21, 2016

    @1ec5
    Contributor

    The upstream issue is now realm/jazzy#136.

  4. 1ec5 commented on Jun 20, 2016

    @1ec5
    Contributor

    realm/jazzy#136 is fixed. We still need to replace YES and NO with true and false, respectively. For Swift 3, we also need to remove the NS class prefix from Foundation classes like NSArray and NSString.

  5. 1ec5 commented on Nov 20, 2016

    @1ec5
    Contributor

    Another thing that may confuse some developers is that enumerations are respelled when bridged to Swift, for example MGLSymbolPlacementLine as MGLSymbolPlacement.line, but our documentation doesn’t mention the respelling.

  6. added
    macOS
    on Dec 21, 2016
  7. 1ec5 commented on Apr 11, 2017

    @1ec5
    Contributor
  8. reopened this on Apr 11, 2017
  9. tmcw commented on Apr 11, 2017

    @tmcw
    ContributorAuthor

    Please re-open under a different user, then - I don't want to be the owner of this issue.

  10. 1ec5 commented on Apr 11, 2017

    @1ec5
    Contributor

    Looks like realm/jazzy#136 tracks this issue adequately. 👍

    By the way, @tmcw, you can click Unsubscribe to stop receiving notifications about this issue or others like it in the future. Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationiOSmacOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions