Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: src/tests/site/gists/README.md

Issue 1319523005: Embed DartPad in the top part of homepage (Closed) Base URL: https://github.com/dart-lang/www.dartlang.org.git@master
Patch Set: remove 2nd dartpad Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/site/js/carousel-next.js ('k') | src/tests/site/gists/homepage_jw/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tests/site/gists/README.md
diff --git a/src/tests/site/gists/README.md b/src/tests/site/gists/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..3936c18235643f64d988b3384cd8cf5934d4a79d
--- /dev/null
+++ b/src/tests/site/gists/README.md
@@ -0,0 +1,39 @@
+This directory contains source code for some examples published
+using [DartPad](https://github.com/dart-lang/dart-pad).
+To generate gists suitable for DartPad, we use
+[kasperpeulen's gist-generator](https://github.com/kasperpeulen/gist-generator).
+See Kasper's project for the latest instructions on using the tool,
+but here's what we do, for now.
+
+To get the tool:
+
+```
+pub global activate --source git https://github.com/kasperpeulen/gist-generator
+```
+
+To test whether all the examples follow DartPad's format,
+without actually generating any gists:
+
+```
+<from a directory containing one or more packages>
+gist generate -n
+```
+
+To generate a trial version of the gists, without changing any
+gists that are already published:
+
+```
+gist generate -t
+```
+
+To generate or update all gists for packages under the current directory:
+
+```
+gist generate
+```
+
+For that last command to work, you'll need the gist token for whichever
+user all the gists are under. (Contact the user.) If that is impractical,
+an alternative is to edit each pubspec.yaml, removing the `gist:` and
+`dartpad:` entries at the end. Then run `gist generate` and update all
+references to point to the new locations.
« no previous file with comments | « src/site/js/carousel-next.js ('k') | src/tests/site/gists/homepage_jw/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698