Skip to content

Commit 1a494d9

Browse files
committed
fix mdx format for upgrade
1 parent 4102d12 commit 1a494d9

4 files changed

Lines changed: 27 additions & 24 deletions

File tree

docs/storefront/themes/guides/checkout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ To prevent your analytics from counting customers more than once, you can add th
183183
184184
```
185185

186-
For example if you wanted to add a conversion action in Google Ads for tracking purchases (To set up Google Ads conversion tracking, follow the [Google Ads instructions](https://support.google.com/google-ads/answer/6095821){:target="_blank"} for creating a conversion action).
186+
For example if you wanted to add a conversion action in Google Ads for tracking purchases (To set up Google Ads conversion tracking, follow the [Google Ads instructions](https://support.google.com/google-ads/answer/6095821) for creating a conversion action).
187187

188188
``` django
189189
{% if send_analytics_event %}

docs/storefront/themes/settings.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@
22
sidebar_label: Settings
33
sidebar_position: 3
44
---
5+
6+
```mdx-code-block
7+
8+
import Tabs from '@theme/Tabs';
9+
import TabItem from '@theme/TabItem';
10+
import useBaseUrl from '@docusaurus/useBaseUrl';
11+
12+
```
13+
514
# Theme Settings
615

716
### Introduction
817

918
Theme settings are the power behind the dashboard theme editor experience allowing users to customize the look and feel of their storefront without needing to know how to code.
1019

11-
```mdx-code-block
12-
import useBaseUrl from '@docusaurus/useBaseUrl';
13-
```
1420
<img src={useBaseUrl('img/theme-customize-editor.jpg')} />
1521

1622
### Theme Settings Location
@@ -30,10 +36,6 @@ configs
3036

3137
Settings are passed to templates settings context variable allowing you to access settings values by their name. See example below of changing the layout by conditionally adding a class based on a radio setting.
3238

33-
```mdx-code-block
34-
import Tabs from '@theme/Tabs';
35-
import TabItem from '@theme/TabItem';
36-
```
3739

3840
<Tabs>
3941
<TabItem value="settings" label="Settings Schema">

docs/storefront/themes/templates/tags.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The `app_asset_url` tag is used to reference asset files included in app snippet
2020

2121
### app_hook
2222

23-
The `app_hook` tag specifies a theme storefront location Apps can inject snippets into to extend storefront templates from Apps. Theme developers should ensure their templates include all available `app_hooks` to ensure compatability with all Apps.
23+
The `app_hook` tag specifies a theme storefront location Apps can inject snippets into to extend storefront templates from Apps. Theme developers should ensure their templates include all available `app_hooks` to ensure compatibility with all Apps.
2424

2525
```django
2626
{% app_hook 'global_header' %}
@@ -39,7 +39,7 @@ import AppHookLocations from '@site/_snippets/_app-hook-locations.mdx';
3939
### boolean operators
4040
If tags may be used in combination with boolean operators for conditional control flow.
4141

42-
| Operator | Description |
42+
| Operator | Description |
4343
| ----------- | ------------------------------------ |
4444
| `and` | multiple conditions are true |
4545
| `or` | either condition is true |
@@ -52,13 +52,12 @@ If tags may be used in combination with boolean operators for conditional contro
5252
| `!=` | inequality |
5353
| `<` | less than |
5454
| `>` | greater than |
55-
| `<=` | less than or equal to |
56-
| `>=` | greater than or equal to |
57-
55+
| `<=` | less than or equal to |
56+
| `>=` | greater than or equal to |
5857

5958
### comment
6059

61-
Ignores everything between {% comment %} and {% endcomment %}. An optional note may be inserted in the first tag. For example, this is useful when commenting out code for documenting why the code was disabled.
60+
Ignores everything between `{% comment %}` and `{% endcomment %}`. An optional note may be inserted in the first tag. For example, this is useful when commenting out code for documenting why the code was disabled.
6261

6362
```django
6463
<p>Rendered text with {{ pub_date|date:"c" }}</p>

package-lock.json

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)