Skip to content

Produce a machine-readable format #6

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

Open
sethladd opened this issue Nov 12, 2014 · 11 comments
Open

Produce a machine-readable format #6

sethladd opened this issue Nov 12, 2014 · 11 comments
Labels
P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@sethladd
Copy link
Contributor

Producing a file that is machine readable (such as a JSON file) helps enable mashups and unforeseen applications. For example, Dart's current docgen tool output JSON, and that lead to an API diff tool and an API score tool.

@sethladd sethladd added the type-enhancement A request for a change that isn't a bug label Nov 12, 2014
@sethladd sethladd added the P1 A high priority bug; for example, a single project is unusable or has many test failures label Feb 2, 2015
@sethladd
Copy link
Contributor Author

sethladd commented Feb 2, 2015

Check with @srawlins as he is the consumer of the API docs JSON feed. He has two really nice tools that use this feature.

I think we'll need to continue to product the JSON output, as a separate Generator.

@srawlins
Copy link
Member

Yeah I'm all in favor of keeping a machine-readable format (particularly the current JSON one :) ). Shapeshift uses it to compare two different JSON blobs representing two releases of the same API.

Also Doc Coverage (in the same repo as Shapeshift) uses it to score a package's documentation coverage. This tool relies on these JSONs being available over HTTP, which we can hopefully keep :)

@keertip keertip self-assigned this Mar 22, 2015
This was referenced Mar 23, 2015
@azenla
Copy link
Contributor

azenla commented Mar 24, 2015

I'll let @keertip take this, and I'll do the markdown generator.

@sethladd sethladd added the contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) label Apr 23, 2015
@sethladd
Copy link
Contributor Author

Help wanted on this one.

@srawlins
Copy link
Member

As dartdoc parses Dart files, does it build a full tree of the API (public classes, public methods, etc.) before outputting to... HTML/Markdown? Or does it output as it goes?

@sethladd
Copy link
Contributor Author

It builds a full tree.

On Thursday, April 23, 2015, Sam Rawlins [email protected] wrote:

As dartdoc parses Dart files, does it build a full tree of the API (public
classes, public methods, etc.) before outputting to... HTML/Markdown? Or
does it output as it goes?


Reply to this email directly or view it on GitHub
#6 (comment).

Sent from my Motorola Startac

@srawlins
Copy link
Member

Just so I don't mislead anyone: I'm going on vacation through the end of June, so I'm not going to be able to help on this one at least until July 😦 .

@sethladd sethladd added P2 A bug or feature request we're likely to work on and removed P1 A high priority bug; for example, a single project is unusable or has many test failures labels Jul 7, 2015
@sethladd
Copy link
Contributor Author

We kind of do now... it's very very simple: index.json and it only supports search. Will leave this open for now.

@sethladd
Copy link
Contributor Author

We're not likely to take proactive action on this, unless driven by specific requirements. We do produce an index.json now. Please do open new issues for new info that you'd like to see in that file.

@jcollins-g
Copy link
Contributor

Producing a machine-readable json of the API surface of a dart package has come up again a few times recently.

@jcollins-g
Copy link
Contributor

FYI: index.json doesn't quite cut it -- it was already not exactly what people wanted, but it's particularly not what we need now. Post canonicalization, it doesn't include the complete API surface area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants