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

Better documentation :) #77

Closed
stephencelis opened this issue Nov 1, 2014 · 11 comments · Fixed by #1333
Closed

Better documentation :) #77

stephencelis opened this issue Nov 1, 2014 · 11 comments · Fixed by #1333

Comments

@stephencelis
Copy link
Contributor

The README is very light on usage information and how jazzy parses documentation. Does it parse Markdown? reST? Which tokens does it support (in addition to :param:, :returns:)?

@juangamnik
Copy link

Perhaps the GitHub-Wiki can be used for this. One thing I do not know, e.g., is how to add my own frontage/readme in jazzy docs.

@jpsim
Copy link
Collaborator

jpsim commented Dec 28, 2014

jazzy looks for one of README.md, README.markdown, README.mdown or README (in that order) in the directory from where it run to render the index page at the root of the docs output directory.

See readme_generator.rb for more information.

This is certainly something we want to document when we start providing more comprehensive documentation for jazzy itself.

@AliSoftware
Copy link

On a side note, some flags of the CLI seems to lack documentation as well.
E.g. the --podspec flag does not have any description in the help banner 😉

@jessesquires
Copy link
Contributor

@jpsim - It would be cool to be able to specify the path to the README.

The use case here:
I'm working on this framework, and I run jazzy from the framework/module directory, but my GitHub README is in the root directory.

@jpsim
Copy link
Collaborator

jpsim commented Mar 10, 2015

I definitely agree that jazzy needs much more usage documentation.

In the meantime, you can do the opposite for now: run jazzy from the root directory with the --source-directory DIRPATH option.

@groue
Copy link

groue commented May 1, 2015

Closed issue #162 had specific questions:

How can we render:

  • paragraphs
  • lists
  • code blocks
  • links to the internet
  • links to other types and methods
  • bold/italic text ?

@jpsim
Copy link
Collaborator

jpsim commented May 1, 2015

The answer is essentially Markdown. GitHub also has a good guide: https://help.github.com/articles/markdown-basics/.

Links to other code declarations aren't yet supported, but planned (see #13).

Function parameters and return values, however are defined via reStructuredText and look like this:

/**
    Lorem ipsum dolor sit amet.

    :param: bar Consectetur adipisicing elit.

    :returns: Sed do eiusmod tempor.
*/
func foo(bar: String) -> AnyObject { ... }

There's more to it than that, but this should be enough get you started. This issue is still open because I definitely agree, it would be good to document jazzy's behavior and capabilities in a more thorough and official setting.

@istx25
Copy link
Contributor

istx25 commented Nov 23, 2016

What's the status on this? Can this issue be closed?

@jpsim
Copy link
Collaborator

jpsim commented Nov 26, 2016

No, there's a ton we could do to not just teach users how to use Jazzy, but how to even write standard Objective-C or Swift documentation comments.

Linking to Erica Sadun's blog post: http://ericasadun.com/2015/06/14/swift-header-documentation-in-xcode-7/

or her book: https://itunes.apple.com/us/book/swift-documentation-markup/id1049010423?mt=11

or NSHipster's article: http://nshipster.com/swift-documentation/

maybe more.

@istx25
Copy link
Contributor

istx25 commented Nov 26, 2016

Totally! Thanks for sharing these resources. I think we should also move some of the documentation out of the README.md and into the Wiki and go into more depth about certain topics.

@reitzig
Copy link

reitzig commented Apr 24, 2017

Fully agreed. Without looking into the setup of ReSwift, I'd not gotten anywhere. In particular, the custom categories feature is not even mentioned!

@istx25 istx25 removed their assignment Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants