-
Notifications
You must be signed in to change notification settings - Fork 118
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
JSON output #1667
Comments
The answer is in general, not that hard (assuming you get past the setup issues in #1609). Dartdoc has generators and you could write alternates that would do this. |
I gave up on #1609, because Is there a generator that I can use as a base if we were to go with that route? |
I am actively working on #1609 for other reasons (cleaning up that interface has wins internally to dartdoc, the one big repo case, etc). Unfortunately, the example is all private inside the dartdoc repo, but this is the generator construction for dartdoc: https://github.com/dart-lang/dartdoc/blob/master/lib/src/html/html_generator.dart#L52 I'd eventually like alternate cases like this to be different binaries inside the dartdoc repo -- if you can structure your code that way that'd be most excellent. Another reason why I'm working on #1609. |
Any plan for this feature? |
There are no plans for this feature. |
I'm wondering how hard would it be to produce a machine-readable JSON output instead of (or alongside) the .html files. I'm aware that dartdoc generates an
index.json
for search, but I have a bit broader scope in mind, with the following use cases:Pub site's analyzer (
pana
) could not only validate whetherdartdoc
runs successfully, but it could also check the length of the documentation of the given package.Pub site's search is planning to search inside the package content, and the most straightforward way would be to use the
index.json
file (or at least an extended version of it). If we would have a broader extract, we could search not only in method names, but also in their documentation.Some related issues to track:
The text was updated successfully, but these errors were encountered: