mirror of
https://github.com/flutter/samples.git
synced 2026-04-05 11:11:23 +00:00
Minor sample index cleanup (#1532)
This commit is contained in:
@@ -7,9 +7,8 @@ This tool is used to generate the visual samples index for Flutter samples.
|
||||
We use [grinder](https://pub.dev/packages/grinder) to run the build tasks:
|
||||
|
||||
```bash
|
||||
$ pub get
|
||||
$ pub global activate grinder
|
||||
$ grind generate
|
||||
$ dart pub get
|
||||
$ dart run grinder generate
|
||||
```
|
||||
|
||||
This will generate the index into `./web`
|
||||
@@ -20,6 +19,7 @@ If you want to serve the index locally, you can use
|
||||
[webdev](https://pub.dev/packages/webdev):
|
||||
|
||||
```bash
|
||||
$ dart pub global activate grinder
|
||||
$ webdev serve
|
||||
```
|
||||
|
||||
@@ -28,16 +28,16 @@ $ webdev serve
|
||||
You can build the complete index into a publishable directory using Grinder:
|
||||
|
||||
```bash
|
||||
$ grind build-release
|
||||
$ dart run grinder build-release
|
||||
```
|
||||
|
||||
This outputs the completely built index to `./public`.
|
||||
|
||||
## Generating cookbook content
|
||||
|
||||
The cookbook articles are generated using a WebDriver script that scrapes the
|
||||
flutter.dev website. To run:
|
||||
The cookbook articles are generated using a WebDriver script
|
||||
that scrapes the docs.flutter.dev website. To run:
|
||||
|
||||
1. Install [ChromeDriver](https://chromedriver.chromium.org/downloads)
|
||||
2. run `chromedriver --port=4444 --url-base=wd/hub --verbose`
|
||||
3. run `grind scrape-cookbook`
|
||||
3. run `dart run grinder scrape-cookbook`
|
||||
|
||||
Reference in New Issue
Block a user