Skip to content

Commit 2a3f890

Browse files
authored
Remove a few more Liquid usages (#12741)
1 parent 0d2026b commit 2a3f890

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

site/lib/src/style_hash.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// dart format off
33

44
/// The generated hash of the `main.css` file.
5-
const generatedStylesHash = 'FE5OYMbmdUYo';
5+
const generatedStylesHash = '0lnBUTa5o0lF';

src/_includes/docs/debug/debug-flow-ios.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ If you use VS Code to debug most of your code, start with this section.
2121

2222
##### Start the Dart debugger in VS Code
2323

24-
{% render "docs/debug/debug-flow-vscode-as-start.md", add: add %}
24+
{% render "docs/debug/debug-flow-vscode-as-start.md" %}
25+
26+
{% if add == 'launch' %}
27+
{% render "docs/debug/vscode-flutter-attach-json.md" %}
28+
{% endif %}
2529

2630
##### Attach to the Flutter process in Xcode
2731

2832
To attach to the Flutter app in Xcode:
2933

30-
1. Go to **Debug** <span aria-label="and then">></span>
31-
**Attach to Process** <span aria-label="and then">></span>
34+
1. Go to **Debug** <span aria-label="and then">></span> **Attach to Process**.
3235

3336
1. Select **Runner**. It should be at the top of the
3437
**Attach to Process** menu under the **Likely Targets** heading.

src/_includes/docs/debug/debug-flow-vscode-as-start.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,3 @@
3434
default browser of your device.
3535
- **Launch in app**: This button opens this page within your app.
3636
This button only works for iOS or Android. Desktop apps launch a browser.
37-
38-
{% if add == 'launch' -%}
39-
{% render "docs/debug/vscode-flutter-attach-json.md" %}
40-
{% endif -%}

src/content/cookbook/testing/widget/orientation.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Test orientation
33
description: How to test if an app is in portrait or landscape mode.
44
---
55

6-
{% assign api = site.api | append: '/flutter' -%}
7-
86
In Flutter, you can build different layouts depending on a given
97
[orientation][]. For example, you could present data in two columns if the app
108
is in portrait mode, and three columns if in landscape mode.

src/content/ui/interactivity/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ description: How to implement a stateful widget that responds to taps.
44
shortTitle: Interactivity
55
---
66

7-
{% assign examples = site.repo.this | append: "/tree/" | append: site.branch | append: "/examples" -%}
8-
97
:::secondary What you'll learn
108
* How to respond to taps.
119
* How to create a custom widget.
@@ -769,13 +767,13 @@ Wonderous app [running app][wonderous-app], [repo][wonderous-repo]
769767
[building layouts tutorial]: /ui/layout/tutorial
770768
[community]: {{site.main-url}}/community
771769
[Handle taps]: /cookbook/gestures/handling-taps
772-
[`lake.jpg`]: {{examples}}/layout/lakes/step6/images/lake.jpg
770+
[`lake.jpg`]: {{site.repo.this}}/blob/main/examples/layout/lakes/step6/images/lake.jpg
773771
[Libraries and imports]: {{site.dart-site}}/language/libraries
774772
[`ListView`]: {{site.api}}/flutter/widgets/ListView-class.html
775-
[`main.dart`]: {{examples}}/layout/lakes/step6/lib/main.dart
773+
[`main.dart`]: {{site.repo.this}}/blob/main/examples/layout/lakes/step6/lib/main.dart
776774
[Managing state]: #managing-state
777775
[Material Design guidelines]: {{site.material}}/styles
778-
[`pubspec.yaml`]: {{examples}}/layout/lakes/step6/pubspec.yaml
776+
[`pubspec.yaml`]: {{site.repo.this}}/blob/main/examples/layout/lakes/step6/pubspec.yaml
779777
[`Radio`]: {{site.api}}/flutter/material/Radio-class.html
780778
[`ElevatedButton`]: {{site.api}}/flutter/material/ElevatedButton-class.html
781779
[wonderous-app]: {{site.wonderous}}/web

src/content/ui/layout/tutorial.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ shortTitle: Layout tutorial
44
description: Learn how to build a layout in Flutter.
55
---
66

7-
{% assign examples = site.repo.this | append: "/tree/" | append: site.branch | append: "/examples" -%}
8-
97
:::secondary What you'll learn
108
* How to lay out widgets next to each other.
119
* How to add space between widgets.
@@ -271,7 +269,7 @@ Pass the provided name and location to the `TitleSection` constructor.
271269

272270
[automatic reformatting support]: /tools/formatting
273271
[hot reload]: /tools/hot-reload
274-
[`lib/main.dart`]: {{examples}}/layout/lakes/step2/lib/main.dart
272+
[`lib/main.dart`]: {{site.repo.this}}/blob/main/examples/layout/lakes/step2/lib/main.dart
275273

276274
## Add the Button section
277275

@@ -581,9 +579,9 @@ You can access the resources used in this tutorial from these locations:
581579
**Image:** [ch-photo][]<br>
582580
**Pubspec:** [`pubspec.yaml`][]<br>
583581

584-
[`main.dart`]: {{examples}}/layout/lakes/step6/lib/main.dart
582+
[`main.dart`]: {{site.repo.this}}/blob/main/examples/layout/lakes/step6/lib/main.dart
585583
[ch-photo]: https://unsplash.com/photos/red-and-gray-tents-in-grass-covered-mountain-5Rhl-kSRydQ
586-
[`pubspec.yaml`]: {{examples}}/layout/lakes/step6/pubspec.yaml
584+
[`pubspec.yaml`]: {{site.repo.this}}/blob/main/examples/layout/lakes/step6/pubspec.yaml
587585

588586
## Next Steps
589587

0 commit comments

Comments
 (0)