Skip to content

Commit

Permalink
switch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
goderbauer committed Feb 29, 2024
1 parent a5665a3 commit 3b9c03a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/snippets/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.2

* Switch master channel to main.

## 0.4.1

* Update dependencies.
Expand Down
4 changes: 2 additions & 2 deletions packages/snippets/lib/src/snippet_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ class SnippetGenerator {
? '<div class="snippet-description">{@end-inject-html}${sample.description.trim()}{@inject-html}</div>'
: '';

// DartPad only supports stable or master as valid channels. Use master
// DartPad only supports stable or main as valid channels. Use main
// if not on stable so that local runs will work (although they will
// still take their sample code from the master docs server).
final String channel =
sample.metadata['channel'] == 'stable' ? 'stable' : 'master';
sample.metadata['channel'] == 'stable' ? 'stable' : 'main';

final Map<String, String> substitutions = <String, String>{
'description': description,
Expand Down
2 changes: 1 addition & 1 deletion packages/snippets/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: snippets
description: A package for parsing and manipulating code samples in Flutter repo dartdoc comments.
repository: https://github.com/flutter/assets-for-api-docs/tree/main/packages/snippets
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+snippets%22
version: 0.4.1
version: 0.4.2

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit 3b9c03a

Please sign in to comment.