@@ -4,7 +4,11 @@ import 'package:static_shock/static_shock.dart';
4
4
5
5
Future <void > main (List <String > arguments) async {
6
6
// Configure the static website generator.
7
- final staticShock = StaticShock ()
7
+ final staticShock = StaticShock (
8
+ site: ! arguments.contains ("local" ) //
9
+ ? SiteMetadata (basePath: "/flutter-bounty-hunters/" )
10
+ : SiteMetadata (basePath: "/" ),
11
+ )
8
12
// Here, you can directly hook into the StaticShock pipeline. For example,
9
13
// you can copy an "images" directory from the source set to build set:
10
14
..pick (DirectoryPicker .parse ("images" ))
@@ -15,20 +19,16 @@ Future<void> main(List<String> arguments) async {
15
19
..plugin (const PrettyUrlsPlugin ())
16
20
..plugin (const RedirectsPlugin ())
17
21
..plugin (const SassPlugin ())
18
-
19
22
..plugin (const PubPackagePlugin ({
20
23
"flutter_test_goldens" ,
21
24
}))
22
-
23
-
24
25
..plugin (
25
26
GitHubContributorsPlugin (
26
27
// To load the contributors for a given GitHub package using credentials,
27
28
// place your GitHub API token in an environment variable with the following name.
28
29
authToken: Platform .environment["github_doc_website_token" ],
29
30
),
30
31
)
31
-
32
32
..plugin (DraftingPlugin (
33
33
showDrafts: arguments.contains ("preview" ),
34
34
));
0 commit comments