Skip to content

Commit

Permalink
Update for new structure in site-shared (#6154)
Browse files Browse the repository at this point in the history
Accounts for a recent change in directory structure.
  • Loading branch information
parlough authored Oct 16, 2024
1 parent 6735643 commit cbb0d89
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function (eleventyConfig) {

eleventyConfig.addPassthroughCopy('src/content/assets/dash');
eleventyConfig.addPassthroughCopy('src/content/assets/js');
eleventyConfig.addPassthroughCopy({'site-shared/packages/inject_dartpad/lib/inject_dartpad.js': 'assets/js/inject_dartpad.js'});
eleventyConfig.addPassthroughCopy({'site-shared/pkgs/inject_dartpad/lib/inject_dartpad.js': 'assets/js/inject_dartpad.js'});
eleventyConfig.addPassthroughCopy('src/content/assets/img', { expand: true });
eleventyConfig.addPassthroughCopy('src/content/f', {
expand: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/create_libraries/lib/hw_mp.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// A multi-platform Hello World library.
library hw_mp;
library;

// #docregion export
export 'src/hw_none.dart' // Stub implementation
Expand Down
1 change: 1 addition & 0 deletions examples/misc/lib/effective_dart/my_library.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ignore_for_file: unnecessary_library_name
library my_library;

part 'some/other/file.dart';
2 changes: 1 addition & 1 deletion examples/misc/lib/effective_dart/usage_bad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// ignore_for_file: avoid_function_literals_in_foreach_calls, prefer_function_declarations_over_variables
// ignore_for_file: prefer_adjacent_string_concatenation, prefer_is_not_empty, prefer_interpolation_to_compose_strings
// ignore_for_file: unnecessary_this, always_declare_return_types, no_leading_underscores_for_local_identifiers
// ignore_for_file: unchecked_use_of_nullable_value, unnecessary_library_directive
// ignore_for_file: unchecked_use_of_nullable_value, unnecessary_library_directive, unnecessary_library_name

// #docregion library-dir
library my_library;
Expand Down
2 changes: 1 addition & 1 deletion site-shared
Submodule site-shared updated 51 files
+97 −71 .github/workflows/dart.yml
+9 −5 .gitignore
+0 −5 README.md
+0 −1 doc/README.md
+15 −0 doc/README.md
+1 −1 doc/code-excerpts.md
+0 −15 doc/index.md
+1 −1 mono_repo.yaml
+0 −14 packages/analysis_defaults/.gitignore
+0 −2 packages/excerpter/.gitignore
+0 −11 packages/inject_dartpad/.gitignore
+0 −0 pkgs/analysis_defaults/analysis_options.yaml
+0 −1 pkgs/analysis_defaults/lib/analysis.yaml
+10 −0 pkgs/analysis_defaults/mono_pkg.yaml
+2 −2 pkgs/analysis_defaults/pubspec.yaml
+0 −0 pkgs/excerpter/CHANGELOG.md
+0 −0 pkgs/excerpter/LICENSE
+0 −0 pkgs/excerpter/README.md
+0 −0 pkgs/excerpter/analysis_options.yaml
+0 −0 pkgs/excerpter/bin/excerpter.dart
+0 −0 pkgs/excerpter/lib/excerpter.dart
+0 −0 pkgs/excerpter/lib/src/extract.dart
+0 −0 pkgs/excerpter/lib/src/inject.dart
+0 −0 pkgs/excerpter/lib/src/transform.dart
+0 −0 pkgs/excerpter/lib/src/update.dart
+1 −1 pkgs/excerpter/mono_pkg.yaml
+2 −2 pkgs/excerpter/pubspec.yaml
+0 −0 pkgs/excerpter/test/cli_test.dart
+0 −0 pkgs/excerpter/test/transform_test.dart
+0 −0 pkgs/excerpter/test/updater_test.dart
+0 −0 pkgs/excerpter/test_data/example/dartdoc.dart
+0 −0 pkgs/excerpter/test_data/example/plaster.dart
+0 −0 pkgs/excerpter/test_data/example/simple_main.dart
+0 −0 pkgs/excerpter/test_data/example/simple_region.dart
+0 −0 pkgs/excerpter/test_data/example/transforms.dart
+0 −0 pkgs/excerpter/test_data/expected/dartdoc.md
+0 −0 pkgs/excerpter/test_data/expected/plaster.md
+0 −0 pkgs/excerpter/test_data/expected/simple.md
+0 −0 pkgs/excerpter/test_data/expected/transforms.md
+0 −0 pkgs/excerpter/test_data/src/dartdoc.md
+0 −0 pkgs/excerpter/test_data/src/plaster.md
+0 −0 pkgs/excerpter/test_data/src/simple.md
+0 −0 pkgs/excerpter/test_data/src/transforms.md
+0 −0 pkgs/inject_dartpad/README.md
+1 −0 pkgs/inject_dartpad/analysis_options.yaml
+0 −0 pkgs/inject_dartpad/build.yaml
+947 −595 pkgs/inject_dartpad/lib/inject_dartpad.js
+1 −1 pkgs/inject_dartpad/mono_pkg.yaml
+5 −5 pkgs/inject_dartpad/pubspec.yaml
+0 −0 pkgs/inject_dartpad/tool/compile.dart
+16 −31 pkgs/inject_dartpad/web/inject_dartpad.dart
+1 −1 tool/ci.sh
2 changes: 1 addition & 1 deletion src/content/effective-dart/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The preferred syntax is to use a URI string that points
directly to the library file.
If you have some library, `my_library.dart`, that contains:

<?code-excerpt "my_library.dart"?>
<?code-excerpt "my_library.dart" remove="ignore_for_file"?>
```dart title="my_library.dart"
library my_library;
Expand Down
4 changes: 2 additions & 2 deletions tool/dart_site/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
dependencies:
args: ^2.5.0
excerpter:
path: ../../site-shared/packages/excerpter
path: ../../site-shared/pkgs/excerpter
fbh_front_matter: ^0.0.1
html_unescape: ^2.0.0
intl: ^0.19.0
Expand All @@ -21,4 +21,4 @@ dependencies:

dev_dependencies:
analysis_defaults:
path: ../../site-shared/packages/analysis_defaults
path: ../../site-shared/pkgs/analysis_defaults
2 changes: 1 addition & 1 deletion tool/get-dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ workspace:

dev_dependencies:
analysis_defaults:
path: ../../site-shared/packages/analysis_defaults
path: ../../site-shared/pkgs/analysis_defaults

0 comments on commit cbb0d89

Please sign in to comment.