-
Notifications
You must be signed in to change notification settings - Fork 701
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
Tell folks that examples show up on the pub site – if they are named correctly #413
Comments
I didn't know that! I'll happily add that info. (Or someone else can grab this.) |
* Use correct convention for example name See dart-lang/site-www#413 * other readme cleanup * More async cleanup * example: Throw during upload if there is an existing file * ShelfPubServer: cleaner handling of headers during upload * ShelfPubServer: only log an error if there is an error * Update minimum Dart SDK * Cleanup and prepare for release 0.1.3
The current implementation is now moved to pana package. https://github.com/dart-lang/pana/blob/fb06d872f31b2c38bc8e4e4a94056378065a0971/lib/src/maintenance.dart#L35 Includes:
|
in https://www.dartlang.org/tools/pub/package-layout#examples it says
@kevmoo What does this exactly mean? Do we create multiple directories inside example directory? Thank you! |
|
Can this also be accomplished by updating https://www.dartlang.org/tools/pub/package-layout#examples? I'd rather this issue not be the canonical source for what example files are respected at the pub page. |
I was waiting for a volunteer, but if none shows up within a day or so, I'll take this myself. |
Thanks! |
See https://www.dartlang.org/tools/pub/package-layout#examples
The pub site will show example code for a package – see here.
But only if you name the example file correctly.
The current implementation is here: https://github.com/dart-lang/pub-dartlang-dart/blob/7431ab69e72283c11dbd9c03484b94d74e189a5d/app/lib/shared/utils.dart#L169
Includes:
example/lib/main.dart
example/main.dart
example/lib/$package.dart
example/$package.dart
example/${package}_example.dart
example/example.dart
The text was updated successfully, but these errors were encountered: