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

Documentation API #3

Open
matthew-dean opened this issue Jun 24, 2013 · 6 comments
Open

Documentation API #3

matthew-dean opened this issue Jun 24, 2013 · 6 comments
Labels

Comments

@matthew-dean
Copy link
Member

Are we planning to have an API for individual pieces of documentation? (So that someone can, say, look up a function in an editor?) ;-)

@jonschlinkert
Copy link
Contributor

That sounds pretty interesting.

GitHub's API already allows pulling down blobs and readme's for instance, maybe wiki stuff, I'm not sure what other info, I'll have to see based on the specifics of what you're thinking. How do you envision this working, can you give me something in user-story form maybe?

@matthew-dean
Copy link
Member Author

User right-click's on the word fadein. In the context menu, they have something like "Help for fadein()". It opens a help page with just that info, styled like the local app.

@jonschlinkert
Copy link
Contributor

I love the idea, but I'm not sure that an API is the best way to do this. Seems like the spec would just need to be available as structured data, JSON/YAML (which I already started ;-), then whoever wanted to use the data could present it with whatever design they wanted. It would be such a small file that it could just be packaged up with other code or preferably just made available for anyone that wants to include it in their app. If you recall me saying that I was going to try to put the docs into JSON so they could be reused anywhere, this specifically wasn't on my mind, but it will definitely be enabled because of that I think.

Or is there another advantage of having an API do it?

@matthew-dean
Copy link
Member Author

Sure sure, wouldn't have to be an API call, just structured in bits of downloadable segments.

@jonschlinkert
Copy link
Contributor

K, I'm going to reopen though just to remind me that you requested this while I work on the data

@russkel
Copy link

russkel commented Aug 3, 2013

If the documentation is written in something like ReST you can compile the documentation to various formats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants