diff --git a/_config.yml b/_config.yml index 24ca3d983c..130ecbbd36 100644 --- a/_config.yml +++ b/_config.yml @@ -45,9 +45,6 @@ collections: articles: output: true permalink: /articles/:path - tutorials: - output: true - permalink: /tutorials/:path guides: output: true permalink: /guides/:path diff --git a/src/_tutorials/README.md b/src/_tutorials/README.md deleted file mode 100644 index 24b2bb364a..0000000000 --- a/src/_tutorials/README.md +++ /dev/null @@ -1,35 +0,0 @@ -The tutorial examples, including source for DartPad examples, -live in the "dart-tutorials-samples" repo on GitHub. - -DartPad grabs source for these examples from "gist" files. -The gist files are generated from the source in the sample repo, -using the gist-generator. - -For info on how to generate the gist files, see: -https://github.com/dart-lang/dart-tutorials-samples/blob/master/README.md - -To generate the gist files, you need to use a gist token/password. -Get the token from the creator of the original gist file. - -Location of relevant resources: - -GitHub repo for tutorials examples: -https://github.com/dart-lang/dart-tutorials-samples - -Gist files: -https://gist.github.com/ - -Gist generator: -https://github.com/kasperpeulen/gist-generator - -DartPad: -{{site.dartpad}} - -Definitions for the DartPad constants used on dartlang: -src/site/_config.yml - -Embedding Guide for DartPad: -https://github.com/dart-lang/dart-pad/wiki/Embedding-Guide - -Defined constants for embedding DartPad: -/src/site/_config.yml diff --git a/src/_tutorials/images/housekeeping-files.png b/src/assets/img/tutorials/libraries/housekeeping-files.png similarity index 100% rename from src/_tutorials/images/housekeeping-files.png rename to src/assets/img/tutorials/libraries/housekeeping-files.png diff --git a/src/_tutorials/images/libraries-folder.png b/src/assets/img/tutorials/libraries/libraries-folder.png similarity index 100% rename from src/_tutorials/images/libraries-folder.png rename to src/assets/img/tutorials/libraries/libraries-folder.png diff --git a/src/_tutorials/images/other-folders.png b/src/assets/img/tutorials/libraries/other-folders.png similarity index 100% rename from src/_tutorials/images/other-folders.png rename to src/assets/img/tutorials/libraries/other-folders.png diff --git a/src/_tutorials/server/images/dcat-dart-run.svg b/src/assets/img/tutorials/server/dcat-dart-run.svg similarity index 100% rename from src/_tutorials/server/images/dcat-dart-run.svg rename to src/assets/img/tutorials/server/dcat-dart-run.svg diff --git a/src/_tutorials/web/images/add-element-code.png b/src/assets/img/tutorials/web/add-element-code.png similarity index 100% rename from src/_tutorials/web/images/add-element-code.png rename to src/assets/img/tutorials/web/add-element-code.png diff --git a/src/_tutorials/web/images/add-element.png b/src/assets/img/tutorials/web/add-element.png similarity index 100% rename from src/_tutorials/web/images/add-element.png rename to src/assets/img/tutorials/web/add-element.png diff --git a/src/_tutorials/web/images/anagram-move.png b/src/assets/img/tutorials/web/anagram-move.png similarity index 100% rename from src/_tutorials/web/images/anagram-move.png rename to src/assets/img/tutorials/web/anagram-move.png diff --git a/src/_tutorials/web/images/anagram-newletters.png b/src/assets/img/tutorials/web/anagram-newletters.png similarity index 100% rename from src/_tutorials/web/images/anagram-newletters.png rename to src/assets/img/tutorials/web/anagram-newletters.png diff --git a/src/_tutorials/web/images/child-references.png b/src/assets/img/tutorials/web/child-references.png similarity index 100% rename from src/_tutorials/web/images/child-references.png rename to src/assets/img/tutorials/web/child-references.png diff --git a/src/_tutorials/web/images/css-code.png b/src/assets/img/tutorials/web/css-code.png similarity index 100% rename from src/_tutorials/web/images/css-code.png rename to src/assets/img/tutorials/web/css-code.png diff --git a/src/_tutorials/web/images/css-property-value.png b/src/assets/img/tutorials/web/css-property-value.png similarity index 100% rename from src/_tutorials/web/images/css-property-value.png rename to src/assets/img/tutorials/web/css-property-value.png diff --git a/src/_tutorials/web/images/css-rule-explained.png b/src/assets/img/tutorials/web/css-rule-explained.png similarity index 100% rename from src/_tutorials/web/images/css-rule-explained.png rename to src/assets/img/tutorials/web/css-rule-explained.png diff --git a/src/_tutorials/web/images/dart-html-connect-full.png b/src/assets/img/tutorials/web/dart-html-connect-full.png similarity index 100% rename from src/_tutorials/web/images/dart-html-connect-full.png rename to src/assets/img/tutorials/web/dart-html-connect-full.png diff --git a/src/_tutorials/web/images/dart-html-connect.png b/src/assets/img/tutorials/web/dart-html-connect.png similarity index 100% rename from src/_tutorials/web/images/dart-html-connect.png rename to src/assets/img/tutorials/web/dart-html-connect.png diff --git a/src/_tutorials/web/images/dynamic-dart.png b/src/assets/img/tutorials/web/dynamic-dart.png similarity index 100% rename from src/_tutorials/web/images/dynamic-dart.png rename to src/assets/img/tutorials/web/dynamic-dart.png diff --git a/src/_tutorials/web/images/event-handler-idiom.png b/src/assets/img/tutorials/web/event-handler-idiom.png similarity index 100% rename from src/_tutorials/web/images/event-handler-idiom.png rename to src/assets/img/tutorials/web/event-handler-idiom.png diff --git a/src/_tutorials/web/images/event-handler-todo.png b/src/assets/img/tutorials/web/event-handler-todo.png similarity index 100% rename from src/_tutorials/web/images/event-handler-todo.png rename to src/assets/img/tutorials/web/event-handler-todo.png diff --git a/src/_tutorials/web/images/event-listener-exp.png b/src/assets/img/tutorials/web/event-listener-exp.png similarity index 100% rename from src/_tutorials/web/images/event-listener-exp.png rename to src/assets/img/tutorials/web/event-listener-exp.png diff --git a/src/_tutorials/web/images/paragraph-dom.png b/src/assets/img/tutorials/web/paragraph-dom.png similarity index 100% rename from src/_tutorials/web/images/paragraph-dom.png rename to src/assets/img/tutorials/web/paragraph-dom.png diff --git a/src/_tutorials/web/images/parent-reference.png b/src/assets/img/tutorials/web/parent-reference.png similarity index 100% rename from src/_tutorials/web/images/parent-reference.png rename to src/assets/img/tutorials/web/parent-reference.png diff --git a/src/_tutorials/web/images/relationships.png b/src/assets/img/tutorials/web/relationships.png similarity index 100% rename from src/_tutorials/web/images/relationships.png rename to src/assets/img/tutorials/web/relationships.png diff --git a/src/_tutorials/web/images/remove-all-code.png b/src/assets/img/tutorials/web/remove-all-code.png similarity index 100% rename from src/_tutorials/web/images/remove-all-code.png rename to src/assets/img/tutorials/web/remove-all-code.png diff --git a/src/_tutorials/web/images/remove-all-elements.png b/src/assets/img/tutorials/web/remove-all-elements.png similarity index 100% rename from src/_tutorials/web/images/remove-all-elements.png rename to src/assets/img/tutorials/web/remove-all-elements.png diff --git a/src/_tutorials/web/images/remove-element-code.png b/src/assets/img/tutorials/web/remove-element-code.png similarity index 100% rename from src/_tutorials/web/images/remove-element-code.png rename to src/assets/img/tutorials/web/remove-element-code.png diff --git a/src/_tutorials/web/images/remove-element.png b/src/assets/img/tutorials/web/remove-element.png similarity index 100% rename from src/_tutorials/web/images/remove-element.png rename to src/assets/img/tutorials/web/remove-element.png diff --git a/src/_tutorials/web/images/simple-dom-tree.png b/src/assets/img/tutorials/web/simple-dom-tree.png similarity index 100% rename from src/_tutorials/web/images/simple-dom-tree.png rename to src/assets/img/tutorials/web/simple-dom-tree.png diff --git a/src/_tutorials/web/images/simple-html.png b/src/assets/img/tutorials/web/simple-html.png similarity index 100% rename from src/_tutorials/web/images/simple-html.png rename to src/assets/img/tutorials/web/simple-html.png diff --git a/src/_tutorials/web/images/todo-dart.png b/src/assets/img/tutorials/web/todo-dart.png similarity index 100% rename from src/_tutorials/web/images/todo-dart.png rename to src/assets/img/tutorials/web/todo-dart.png diff --git a/src/_tutorials/web/images/todo-dom.png b/src/assets/img/tutorials/web/todo-dom.png similarity index 100% rename from src/_tutorials/web/images/todo-dom.png rename to src/assets/img/tutorials/web/todo-dom.png diff --git a/src/_tutorials/web/images/todo-html.png b/src/assets/img/tutorials/web/todo-html.png similarity index 100% rename from src/_tutorials/web/images/todo-html.png rename to src/assets/img/tutorials/web/todo-html.png diff --git a/src/_tutorials/index.md b/src/tutorials/index.md similarity index 91% rename from src/_tutorials/index.md rename to src/tutorials/index.md index 29b574f65f..1002a5366f 100644 --- a/src/_tutorials/index.md +++ b/src/tutorials/index.md @@ -44,5 +44,4 @@ which are fundamental to most Dart programs. ## More tutorials -See the [Flutter tutorials.](https://flutter.dev/tutorials) - +Check out the [Flutter codelabs and tutorials]({{site.flutter-docs}}/codelabs). diff --git a/src/_tutorials/language/index.md b/src/tutorials/language/index.md similarity index 100% rename from src/_tutorials/language/index.md rename to src/tutorials/language/index.md diff --git a/src/_tutorials/language/streams.md b/src/tutorials/language/streams.md similarity index 100% rename from src/_tutorials/language/streams.md rename to src/tutorials/language/streams.md diff --git a/src/_tutorials/libraries/index.md b/src/tutorials/libraries/index.md similarity index 100% rename from src/_tutorials/libraries/index.md rename to src/tutorials/libraries/index.md diff --git a/src/_tutorials/libraries/shared-pkgs.md b/src/tutorials/libraries/shared-pkgs.md similarity index 97% rename from src/_tutorials/libraries/shared-pkgs.md rename to src/tutorials/libraries/shared-pkgs.md index 7e42cd003e..ea3a939ced 100644 --- a/src/_tutorials/libraries/shared-pkgs.md +++ b/src/tutorials/libraries/shared-pkgs.md @@ -197,7 +197,7 @@ only one, `lib`, was installed when you ran pub get.
` paragraph tag, @@ -136,7 +136,7 @@ by adding, deleting, and modifying the nodes in the DOM tree. When the DOM is changed, the browser immediately re-renders the window. - The diagram shows a small Dart program that makes @@ -337,7 +337,7 @@ the node containing the string "RipVanWinkle paragraph." is a text node. - More complex text, @@ -387,7 +387,7 @@ In DartPad, the only visible connection between the Dart code and the HTML code is the `RipVanWinkle` ID. - To run your app outside DartPad, @@ -496,7 +496,7 @@ Let's look at the CSS code for the mini app. The CSS file for the mini app has one CSS rule in it. A CSS rule has two main parts: a selector and a set of declarations. - In the mini app, the selector `#RipVanWinkle` is an ID selector, @@ -518,7 +518,7 @@ for all matching elements. The style sheet is used to set the appearance of the matching element(s) on the web page. - The CSS rule for the `RipVanWinkle` paragraph diff --git a/src/_tutorials/web/low-level-html/index.md b/src/tutorials/web/low-level-html/index.md similarity index 100% rename from src/_tutorials/web/low-level-html/index.md rename to src/tutorials/web/low-level-html/index.md diff --git a/src/_tutorials/web/low-level-html/remove-elements.md b/src/tutorials/web/low-level-html/remove-elements.md similarity index 94% rename from src/_tutorials/web/low-level-html/remove-elements.md rename to src/tutorials/web/low-level-html/remove-elements.md index ed37abbf06..85162f6977 100644 --- a/src/_tutorials/web/low-level-html/remove-elements.md +++ b/src/tutorials/web/low-level-html/remove-elements.md @@ -174,7 +174,7 @@ using the element's `remove()` function is shorter and more concise than using functions from the `List` class. - In the app, @@ -186,7 +186,7 @@ When the user clicks that new element, its event handler causes the element to remove itself from the DOM with `remove()`. - When the element removes itself from the DOM, @@ -198,7 +198,7 @@ and the item disappears from the to do list. When the user clicks the **Delete All** button, all elements are removed from the list. - In this case, using the `List` class's `clear()` function @@ -219,7 +219,7 @@ that implements the **Delete All** button. the handler removes all of the child elements from the to do list. Here is all the Dart code related to the **Delete All** button. - ## About function expressions and => @@ -235,7 +235,7 @@ For more details, see the language tour's coverage of [functions](/language/functions). - It is equivalent to writing this: diff --git a/tool/create_code_with_tooltips.dart b/tool/create_code_with_tooltips.dart index 59bb05aded..3be018d8bf 100644 --- a/tool/create_code_with_tooltips.dart +++ b/tool/create_code_with_tooltips.dart @@ -17,7 +17,7 @@ const sources = [ _SrcAndTipPaths( '$repoBase/examples/misc/bin/dcat/dcat.dart', '$repoBase/examples/misc/bin/dcat/dcat_tooltips.html', - '$repoBase/src/_tutorials/server/_dcat-example.html', + '$repoBase/src/tutorials/server/_dcat-example.html', ), ];