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
include visible libraries not directly under "lib/", but ignore lib/src #18554
Comments
Sounds reasonable Removed Area-DartDocViewer label. |
Currently, as a workaround, if you have other entry points, you can also add them by specifying their paths. For example: dart pkg/docgen/bin/docgen.dart path/to/first/entryPoint.dart path/to/other/entryPoint.dart and the generated documentation will include both of these. Removed Priority-Unassigned label. |
How could a service like dartdocs.org know what the entry points are? |
If it can't, how would it expect docgen to know? |
I'm wondering if there's a convention that dartdocs.org could follow and make good guesses? e.g. are there ways to determine entry points? Maybe we just need a task runner :) |
Well the suggestion in the bug is that all libraries under lib except in lib/src should be considered to be public and should be documented. That's not unreasonable, but if we did it we might suddenly discover packages that weren't expecting that. +rnystrom +nweiz, is there a rule about this? cc @munificent. |
Those libraries are intended to be visible. Only lib/src is private. |
Tweaked title and bumped priority. Removed Priority-Low label. |
https://codereview.chromium.org/571713002/ Added this to the 1.7 milestone. |
cc @alan-knight. |
Fixed r40246 Added Fixed label. |
The Dart doc viewer should also include libraries that are public, but not directly under "lib/".
Consider for example the smoke package:
https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/pkg/smoke/
It contains the following structure:
lib/
|- codegen/
| |- generator.dart
| '- recorder.dart
|
|- src/
| '- ...
|
|- mirrors.dart
|- smoke.dart
|- static.dart
'- static_debug.dart
Everything outside of 'src/' is part of the public API of this package and is intended to be discoverable (including lib/codegen/...), but we only include docs for the libraries directly under lib:
https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/smoke/smoke
The text was updated successfully, but these errors were encountered: