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

Side by Side 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, 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 This directory contains source code for some examples published
2 using [DartPad](https://github.com/dart-lang/dart-pad).
3 To generate gists suitable for DartPad, we use
4 [kasperpeulen's gist-generator](https://github.com/kasperpeulen/gist-generator).
5 See Kasper's project for the latest instructions on using the tool,
6 but here's what we do, for now.
7
8 To get the tool:
9
10 ```
11 pub global activate --source git https://github.com/kasperpeulen/gist-generator
12 ```
13
14 To test whether all the examples follow DartPad's format,
15 without actually generating any gists:
16
17 ```
18 <from a directory containing one or more packages>
19 gist generate -n
20 ```
21
22 To generate a trial version of the gists, without changing any
23 gists that are already published:
24
25 ```
26 gist generate -t
27 ```
28
29 To generate or update all gists for packages under the current directory:
30
31 ```
32 gist generate
33 ```
34
35 For that last command to work, you'll need the gist token for whichever
36 user all the gists are under. (Contact the user.) If that is impractical,
37 an alternative is to edit each pubspec.yaml, removing the `gist:` and
38 `dartpad:` entries at the end. Then run `gist generate` and update all
39 references to point to the new locations.
OLDNEW
« 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