-
Notifications
You must be signed in to change notification settings - Fork 562
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
Load exercises from a repo in addition to gists #1096
Comments
Would it be possible to load code from part of a doc repo? I'd love to be able to host DartPad code under https://github.com/dart-lang/site-www/tree/master/examples, so that our site tests can detect when the DartPad code needs to be updated. |
Fixed for the new embeds by #1295. |
Does that mean this is done? I would like to embed dart-pad in a blog-post. But having to maintain gists is a hassle, and feels off when the article is written in markdown |
I should have linked everybody to the wiki page we have for this: https://github.com/dart-lang/dart-pad/wiki/Embedding-Guide#query-parameters There are a number of ways to get code into an embedded editor. @johnpryan wrote a script that can detect and transform markdown blocks into iframes, and it's possible to load directly from a repo by creating a small metadata file for each exercise you want to load. One feature we still haven't implemented is a hardcoded GitHub path to a single file. That feature request remains outstanding. |
Bumps [protobuf](https://github.com/google/protobuf.dart) from 2.1.0 to 3.0.0. - [Release notes](https://github.com/google/protobuf.dart/releases) - [Commits](google/protobuf.dart@protobuf-v2.1.0...protobuf-v3.0.0) --- updated-dependencies: - dependency-name: protobuf dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This involves a few individual tasks:
q.v. GitHub's API docs for retrieving repo contents: https://developer.github.com/v3/repos/contents/
The text was updated successfully, but these errors were encountered: