Skip to content

Commit afff5a8

Browse files
authored
Merge pull request #214 from magento-devdocs/1.0.0-beta-release
[Owls] Documentation Update
2 parents 214d3f2 + 3b1ad4e commit afff5a8

12 files changed

+554
-465
lines changed

docs/configurations/iconography.md docs/configurations/icons-and-images.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Iconography
1+
# Icons and images
22

33
## Overview
44

@@ -130,4 +130,3 @@ For more general information about Magento's Admin icons and how to create your
130130
[Magento Admin icons]: https://devdocs.magento.com/guides/v2.2/pattern-library/graphics/iconography/iconography.html
131131
[Create your own icons]: https://devdocs.magento.com/guides/v2.2/pattern-library/graphics/iconography/iconography.html#creating-icons
132132
[The CMS icons repository]: https://github.com/magento-ux/cms-icons
133-
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
# Responsive layouts
1+
# Overwriting responsive breakpoints
22

3-
<!-- {% raw %} -->
3+
This topic describes how to change the default mobile breakpoint in Page Builder.
44

5-
## What's in this topic
5+
## Default mobile breakpoint
66

7-
This topic describes how to use your custom themes to control responsive layouts within Page Builder.
8-
9-
## Responsive Mobile Images
10-
11-
By default, when you configure Page Builder to render a background image for a container, it uses a mobile image when the container's width is less than the industry-standard max-width of 768px. This width is configured within `Magento_PageBuilder/etc/view.xml`, as follows:
7+
By default, when you configure Page Builder to render a background image for a container, it uses a mobile image when the container's width is equal to and less than 768px. Page Builder defines this mobile breakpoint in the `Magento_PageBuilder/etc/view.xml` file, as shown here:
128

139
```xml
10+
<?xml version="1.0"?>
11+
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
12+
...
1413
<vars module="Magento_PageBuilder">
1514
<var name="breakpoints">
1615
<var name="mobile">
@@ -22,24 +21,32 @@ By default, when you configure Page Builder to render a background image for a c
2221
</vars>
2322
```
2423

25-
If your custom theme also uses this max-width breakpoint for your mobile layout, no additional configuration is required.
24+
## Changing the mobile breakpoint
25+
26+
If your custom theme also uses this max-width breakpoint for your mobile layout, no changes are required.
27+
28+
However, if your custom theme uses a different mobile breakpoint, you need to overwrite the default breakpoint by either:
2629

27-
However, if your custom theme uses a different mobile breakpoint, you'll need to add that breakpoint (in pixels) to your theme's `view.xml` by including the following XML within the `<view />` node, and replacing `CUSTOM-BREAKPOINT` with the integer value of your theme's breakpoint, as follows:
30+
1. Adding the theme's breakpoint to the theme's `view.xml` file.
31+
2. Adding a `view.xml` file in the `etc` directory of your content type as shown here:
32+
33+
![product conditions](../images/how-to-change-breakpoint.png "Add view.xml file")
34+
35+
In either case, if your theme uses a mobile breakpoint `max-width` of `600px`, you would add the following markup to the `view.xml` file:
2836

2937
```xml
30-
<vars module="Magento_PageBuilder">
31-
<var name="breakpoints">
32-
<var name="mobile">
33-
<var name="conditions">
34-
<var name="max-width">CUSTOM-BREAKPOINTpx</var>
38+
<?xml version="1.0"?>
39+
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
40+
<vars module="Magento_PageBuilder">
41+
<var name="breakpoints">
42+
<var name="mobile">
43+
<var name="conditions">
44+
<var name="max-width">600px</var>
45+
</var>
3546
</var>
3647
</var>
37-
</var>
38-
</vars>
48+
</vars>
49+
</view>
3950
```
4051

41-
This directs Page Builder to use your theme's mobile breakpoint instead of its default breakpoint of 768px. Other responsive breakpoints from your custom theme can be added in the same way.
42-
43-
[Note: I think it might be nice to include another example or two of configuring other breakpoints (or other styles?) from custom themes as relevant.]
44-
45-
<!-- {% endraw %} -->
52+
This directs Page Builder to use this mobile breakpoint instead of its default breakpoint of 768px. Other responsive breakpoints from your custom theme can be added in the same way.

docs/configurations/storefront-configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The XML configuration loads the widget on the frontend, and on the stage, so tha
4949
Add the following configuration to the `etc/di.xml` file in your custom module directory:
5050

5151
``` xml
52-
<type name="Magento\PageBuilder\Model\Config\ContentType\WidgetInitializer">
52+
<type name="Magento\PageBuilder\Model\WidgetInitializerConfig">
5353
<arguments>
5454
<argument name="config" xsi:type="array">
5555
<item name="%content-type-name%" xsi:type="array">

docs/getting-started/introduction.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ See [Install Page Builder](install-pagebuilder.md)
3737
* [Additional configurations](../configurations/additional-configurations.md)
3838
* [Panel configurations](../configurations/panel-configurations.md)
3939
* [Option menu configurations](../configurations/option-menu-configurations.md)
40-
* [Iconography](../configurations/iconography.md)
40+
* [Icons and images](../configurations/icons-and-images.md)
4141
* [Block chooser configuration](../configurations/block-chooser-configuration.md)
4242
* [Full-width page layout configuration](../configurations/full-width-page-layout-configuration.md)
4343
* [Responsive layout configuration](../configurations/responsive-layout-configuration.md)
@@ -87,5 +87,4 @@ We will push new beta releases once a week, including work from the backlog. We
8787

8888
To participate in technical discussions and ask questions, join us in [Slack], where a number of Page Builder team members are present.
8989

90-
9190
[Slack]: https://magentocommeng.slack.com/messages/GANS1R4C9

docs/how-to/how-to-convert-product-attributes-to-use-pagebuilder.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Product attribute fields
44

5-
The PageBuilder module is compatible with all product attributes fields that use an input of type `text`.
6-
If your module creates a custom product attribute as a feature, you can change the input of that attribute to PageBuilder.
5+
The Page Builder module is compatible with all product attribute fields that use an input of type `text`.
6+
If your module creates a custom product attribute as a feature, you can change the input of that attribute to Page Builder.
77

88
For example, the following code creates a new product attribute called "Sample Field" with a default input type of `textarea`.
99

@@ -45,7 +45,7 @@ $categorySetup->addAttribute(
4545
);
4646
```
4747

48-
The following steps changes a custom product attribute's input type to PageBuilder using the Admin:
48+
The following steps change a custom product attribute's input type to PageBuilder using the Admin:
4949

5050
1. On the Admin sidebar, click **Stores**.
5151
2. Under **Attributes**, click on **Product**.
@@ -59,11 +59,11 @@ The following steps changes a custom product attribute's input type to PageBuild
5959

6060
All form fields that use the [WYSIWYG UI Component] are compatible with the PageBuilder module.
6161

62-
The following configuration settings in your module's [UI Component configuration file] affect how a form field interacts with the PageBuilder module:
62+
The following configuration settings in your module's [UI Component configuration file] affect how a form field interacts with the Page Builder module:
6363

6464
### `pagebuilder_button`
6565

66-
The `pagebuilder_button` configuration determines the appearance of the PageBuilder editor.
66+
The `pagebuilder_button` configuration determines the appearance of the Page Builder editor.
6767

6868
When this configuration is set to `true`, a button replaces the input field on the form.
6969
This button launches the PageBuilder editor in Full Screen Mode when clicked.
@@ -94,9 +94,9 @@ When this configuration is not specified or set to `false`, the PageBuilder edit
9494

9595
### `is_pagebuilder_enabled`
9696

97-
When the PageBuilder module is enabled, all form fields that use the [WYSIWYG UI Component] automatically switch to PageBuilder.
97+
When the PageBuilder module is enabled, all form fields that use the [WYSIWYG UI Component] automatically switch to Page Builder.
9898

99-
To prevent your form field from switching or using PageBuilder, set the `is_pagebuilder_enabled` configuration to `false`.
99+
To prevent your form field from switching or using Page Builder, set the `is_pagebuilder_enabled` configuration to `false`.
100100

101101
**Example:**
102102

21.2 KB
Loading

docs/index.md

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# PageBuilder Early Adopters Program
2+
3+
The Page Builder Early Adopters Program (EAP) gives partners the following perks:
4+
5+
* Explore extension points to build custom modules and integrations for 3rd party services, such as Facebook and Instagram.
6+
* Try out customization options and extend its functionality beyond its default features.
7+
* Preview to prepare a migration plan from BlueFoot 1.0 to PageBuilder.
8+
9+
## Installation
10+
11+
See [Install Page Builder](getting-started/install-pagebuilder.md)
12+
13+
<!-- {% comment %} -->
14+
15+
## Developer documentation
16+
17+
### Getting started
18+
19+
* [Install Page Builder](getting-started/install-pagebuilder.md)
20+
* [Activate Page Builder](getting-started/activate-pagebuilder.md)
21+
* [View Page Builder](getting-started/view-pagebuilder.md)
22+
23+
### Create a content type
24+
25+
* [Overview](create-basic-content-type/overview.md)
26+
* [Step 1: Add configuration](create-basic-content-type/step-1-add-configuration.md)
27+
* [Step 2: Add templates](create-basic-content-type/step-2-add-templates.md)
28+
* [Step 3: Add components](create-basic-content-type/step-3-add-components.md)
29+
* [Step 4: Add form](create-basic-content-type/step-4-add-form.md)
30+
* [Step 5: Add styles](create-basic-content-type/step-5-add-styles.md)
31+
* [Step 6: Add an icon](create-basic-content-type/step-6-add-icon.md)
32+
* [What's next](create-basic-content-type/whats-next.md)
33+
34+
### Configurations
35+
36+
* [Main configurations](configurations/content-type-configuration.md)
37+
* [Additional configurations](configurations/additional-configurations.md)
38+
* [Panel configurations](configurations/panel-configurations.md)
39+
* [Option menu configurations](configurations/option-menu-configurations.md)
40+
* [Icons and images](configurations/icons-and-images.md)
41+
* [Block chooser configuration](configurations/block-chooser-configuration.md)
42+
* [Full-width page layout configuration](configurations/full-width-page-layout-configuration.md)
43+
* [Responsive layout configuration](configurations/responsive-layout-configuration.md)
44+
* [Storefront configuration](configurations/storefront-configuration.md)
45+
* [Selector configuration](configurations/selector-configuration.md)
46+
* [Product conditions configuration](configurations/product-conditions-configuration.md)
47+
* [Server-side rendered previews](configurations/server-side-rendered-previews.md)
48+
49+
### How tos
50+
51+
* [How to develop a container content type](how-to/how-to-develop-container-content-type.md)
52+
* [How to use the Image Uploader](how-to/how-to-use-image-uploader.md)
53+
* [How to use the Image Uploader](how-to/how-to-use-image-uploader.md)
54+
* [How to add inline text editing](how-to/how-to-add-inline-text-editing.md)
55+
* [How to add a custom toolbar](how-to/how-to-add-custom-toolbar.md)
56+
* [How to convert product attribute fields to use Page Builder](how-to/how-to-convert-product-attributes-to-use-pagebuilder.md)
57+
* [How to store a component master format as a widget-directive](how-to/how-to-store-master-format-as-widget-directive.md)
58+
59+
### Reference
60+
61+
* [Architecture](reference/architecture.md)
62+
* [Events](reference/events.md)
63+
* [Knockout bindings](reference/knockout-bindings.md)
64+
65+
### Migration
66+
67+
* [Migrate from BlueFoot](migration/migrate-from-bluefoot.md)
68+
* [Migrate custom content types from BlueFoot](migration/migrate-custom-content-types-from-bluefoot.md)
69+
70+
### Other
71+
72+
* [Release notes](release-notes.md)
73+
* [Component status](comp-status2.md)
74+
* [Contribution guide](https://github.com/magento/magento2-page-builder/blob/develop/CONTRIBUTING.md)
75+
76+
<!-- {% endcomment %} -->
77+
78+
## Contribute to Page Builder
79+
80+
We appreciate any and all contributions to PageBuilder. If you are interested in contributing to this repository, please see our [Contribution guide](https://github.com/magento/magento2-page-builder/blob/develop/CONTRIBUTING.md).
81+
82+
## Page Builder updates from the Magento core team
83+
84+
We will push new beta releases once a week, including work from the backlog. We don't expect any large breaking changes, but we will communicate them to you if the need arises.
85+
86+
## Contact us
87+
88+
To participate in technical discussions and ask questions, join us in [Slack], where a number of Page Builder team members are present.
89+
90+
[Slack]: https://magentocommeng.slack.com/messages/GANS1R4C9

docs/page-builder.yml

+11-19
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
label: Page Builder
2+
url: /page-builder/
3+
versionless: true
24
pages:
35
- label: Getting started
4-
url: /page-builder/getting-started/introduction.html
5-
versionless: true
66
children:
77
- label: Install Page Builder
88
url: /page-builder/getting-started/install-pagebuilder.html
@@ -43,8 +43,8 @@ pages:
4343
url: /page-builder/create-basic-content-type/step-5-add-styles.html
4444
versionless: true
4545

46-
- label: Step 6. Add frontend widget
47-
url: /page-builder/create-basic-content-type/step-6-add-frontend-widget.html
46+
- label: Step 6. Add an icon
47+
url: /page-builder/create-basic-content-type/step-6-add-icon.html
4848
versionless: true
4949

5050
- label: What's next?
@@ -70,8 +70,8 @@ pages:
7070
url: /page-builder/configurations/option-menu-configurations.html
7171
versionless: true
7272

73-
- label: Iconography
74-
url: /page-builder/configurations/iconography.html
73+
- label: Icons and images
74+
url: /page-builder/configurations/icons-and-images.html
7575
versionless: true
7676

7777
- label: Block chooser
@@ -105,10 +105,6 @@ pages:
105105
- label: How tos
106106
versionless: true
107107
children:
108-
- label: How to develop a new content type
109-
url: /page-builder/how-to/how-to-develop-new-content-type.html
110-
versionless: true
111-
112108
- label: How to develop a container content type
113109
url: /page-builder/how-to/how-to-develop-container-content-type.html
114110
versionless: true
@@ -148,10 +144,6 @@ pages:
148144
url: /page-builder/reference/knockout-bindings.html
149145
versionless: true
150146

151-
- label: Master format
152-
url: /page-builder/reference/master-format.html
153-
versionless: true
154-
155147
- label: Migration to Page Builder
156148
versionless: true
157149
children:
@@ -163,14 +155,14 @@ pages:
163155
url: /page-builder/migration/migrate-custom-content-types-from-bluefoot.html
164156
versionless: true
165157

166-
- label: Component status
167-
url: /page-builder/component-status.html
158+
- label: Release notes
159+
url: /page-builder/release-notes.html
168160
versionless: true
169161

170-
- label: Known issues
171-
url: /page-builder/known-issues.html
162+
- label: Component status
163+
url: /page-builder/comp-status2.html
172164
versionless: true
173165

174166
- label: Contribution guide
175167
url: https://github.com/magento/magento2-page-builder/blob/develop/CONTRIBUTING.md
176-
versionless: true
168+
versionless: true

0 commit comments

Comments
 (0)