Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit aeac88c

Browse files
authored
Merge pull request #2 from magento/master
sync with upstream
2 parents 8728e39 + cf707e1 commit aeac88c

File tree

4,003 files changed

+167833
-247684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,003 files changed

+167833
-247684
lines changed

.github/CONTRIBUTING.md

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,8 @@ The following guidelines may answer most of your questions and help you get star
6666
- Familiarize yourself with the organization and conventions of our existing documentation before creating a pull request. Changes that are consistent with our style and conventions have a higher acceptance rate.
6767

6868
- If you need to update the site navigation, ask for help in Slack ([#devdocs](https://magentocommeng.slack.com/messages/CAN932A3H)).
69-
- We use symbolic links for topics that are the same across versions of Magento. Remove the symbolic link and add a new file if your changes are unique to a specific version. Copy and paste a previous version of the topic to get started.
7069

71-
For example:
72-
73-
```bash
74-
git rm guides/v2.2/install-gde/composer.md
75-
```
76-
77-
```bash
78-
cp guides/v2.1/install-gde/composer.md guides/v2.2/install-gde/composer.md
79-
```
80-
81-
- Make sure that you update the correct version(s) of documentation (v2.1, v2.2, v2.3). If you are not sure what directory to put your content in, just do your best. We can help re-locate it (if necessary) during the review process.
70+
- Ensure that you update the correct version(s) of documentation (v2.2, v2.3). If you are not sure what directory to put your content in, just do your best. We can help re-locate it (if necessary) during the review process.
8271
- Review your work for basic typos, formatting errors, or ambiguous sentences before opening a pull request.
8372
- Revise pull requests according to review feedback. We will close pull requests that require an inordinate amount of time to review and process (especially for minor changes) if you fail to make revisions according to review feedback.
8473
- Do not directly contact DevDocs team members or maintainers on Slack to review your pull request unless it has been open for more than five days. We have a process and queue for pull requests that everyone must follow.
@@ -105,17 +94,18 @@ _(Optional)_ To review your changes in HTML output, follow the instructions in t
10594

10695
We provide templates to help you get started writing new content and understanding Markdown formatting:
10796

108-
- **General topic template** - [Markdown](https://github.com/magento/devdocs/blob/master/guides/v2.1/contributor-guide/templates/basic_template.md) | [HTML](https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/basic_template.html): This is a template for writing any topic with example formats and styles.
97+
- **General topic template** - [Markdown](https://github.com/magento/devdocs/blob/master/guides/v2.3/contributor-guide/templates/basic_template.md) | [HTML](https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/basic_template.html): This is a template for writing any topic with example formats and styles.
10998
- **Tutorial templates**: These templates provide example formats and styles for step-by-step instructions (like how-tos). Each file adds navigation buttons when content is generated. Templates include:
110-
- First introduction topic - [Markdown](https://github.com/magento/devdocs/blob/master/guides/v2.1/contributor-guide/templates/tutorial-template-first.md) | [HTML](https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/tutorial-template-first.html): Introduction to a tutorial for prerequisites and listing steps
111-
- Middle topic - [Markdown](https://github.com/magento/devdocs/blob/master/guides/v2.1/contributor-guide/templates/tutorial-template-middle.md) | [HTML](https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/tutorial-template-middle.html): Use for each step in a tutorial.
112-
- Final step topic - [Markdown](https://github.com/magento/devdocs/blob/master/guides/v2.1/contributor-guide/templates/tutorial-template-last.md) | [HTML](https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/tutorial-template-last.html): Use for the last step of the tutorial.
99+
- First introduction topic - [Markdown](https://github.com/magento/devdocs/blob/master/guides/v2.3/contributor-guide/templates/tutorial-template-first.md) | [HTML](https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/tutorial-template-first.html): Introduction to a tutorial for prerequisites and listing steps
100+
- Middle topic - [Markdown](https://github.com/magento/devdocs/blob/master/guides/v2.3/contributor-guide/templates/tutorial-template-middle.md) | [HTML](https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/tutorial-template-middle.html): Use for each step in a tutorial.
101+
- Final step topic - [Markdown](https://github.com/magento/devdocs/blob/master/guides/v2.3/contributor-guide/templates/tutorial-template-last.md) | [HTML](https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/tutorial-template-last.html): Use for the last step of the tutorial.
113102

114103
### Edit metadata
115104

116105
The Markdown (.md) file's metadata is a set of YAML key-value pairs. The metadata section is located at the top of each file. For more info, see the [Basic Template](https://devdocs.magento.com/guides/v2.3/contributor-guide/templates/basic_template.html).
117106

118107
```yaml
108+
119109
---
120110
group: install2
121111
title: Continue with your installation
@@ -129,6 +119,45 @@ title: Continue with your installation
129119
| `group` | Defines the topic's guide or section. Use the table of contents `.yml` file name. This loads your left-side navigation. We will help during the PR process to add new files to the `.yml` file. |
130120
| `title` | Sets the title of the page in the HTML metadata and the main title on the page. |
131121

122+
## Symbolic links
123+
124+
We use symbolic links for topics that are the same across versions of Magento. A file is symlinked if the entire content of the file is a path to the original version, such as [ext-best-practices/tutorials/serialized-to-json-data-upgrade.md](https://github.com/magento/devdocs/blob/master/guides/v2.3/ext-best-practices/tutorials/serialized-to-json-data-upgrade.md). Note that some editors will automatically follow symlinks so it might not be clear if a file is symlinked or not. Check the file on Github directly to be sure.
125+
126+
### Create a symbolic link
127+
128+
When you create a new topic (create a new `.md` file) and its content is the same for 2.2 and 2.3 versions, create a symbolic link.
129+
130+
For example, if you created a new file for v.2.2---`guides/v2.2/install-gde/new-doc-topic.md`---and its content is the same for v.2.3, use the command below to create the symbolic link.
131+
132+
```bash
133+
cd <DEVDOCS_REPOSITORY_ROOT_DIR>
134+
```
135+
136+
```bash
137+
ln -s guides/v2.2/install-gde/new-doc-topic.md guides/v2.3/install-gde/new-doc-topic.md
138+
```
139+
140+
If you have an image that is identical between versions, it is should placed in `/common/images`. Please optimize images before committing them to the repository.
141+
If done correctly, the symbolic link path will start with 3 or 4 instances of `../`, as the above example shows.
142+
143+
### Remove a symbolic link
144+
145+
If your changes are unique to a specific version, remove the symbolic link and add a new file. Copy and paste a previous version of the topic to get started.
146+
147+
The removal should use the `git rm` command specifically. Deleting the file through the regular file system might cause issues with the repository.
148+
149+
For example:
150+
151+
```bash
152+
git rm guides/v2.3/install-gde/composer.md
153+
```
154+
155+
```bash
156+
cp guides/v2.2/install-gde/composer.md guides/v2.3/install-gde/composer.md
157+
```
158+
159+
Once you have the copy in place, you can edit it with the version-specific information.
160+
132161
## Report an issue
133162

134163
If you find a typo or errors in Magento DevDocs, you can either fix it with a pull request (as described above) or you can report it by creating an issue in the DevDocs GitHub repository.

.github/ISSUE_TEMPLATE/COMMUNITY_ISSUE_TEMPLATE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ about: Create an issue related to a community engineering effort
88
<!-- (REQUIRED) Provide information for the doc request including any Community code issues or PRs, Magento versions, or devdoc pages. -->
99

1010
Type of Doc:
11+
1112
- [ ] New topic
1213
- [ ] Topic Update, Devdoc link:
1314
- [ ] Other
@@ -17,13 +18,15 @@ Magento 2 GitHub Issue: https://github.com/magento/devdocs/issues/link
1718
Magento 2 GitHub PR: https://github.com/magento/devdocs/pull/link
1819

1920
Magento 2 version:
21+
2022
- [ ] 2.1.X
2123
- [ ] 2.2.X
2224
- [ ] 2.3.X
2325
- [ ] back port
2426
- [ ] forward port
2527

2628
Notifications of Changes:
29+
2730
- [ ] Changes to Admin interface?
2831
- [ ] New software requirements?
2932
- [ ] New REST endpoints or updated GraphQL query syntax?
@@ -37,7 +40,6 @@ Notifications of Changes:
3740

3841
<!-- (OPTIONAL) What other information can you provide? -->
3942

40-
4143
<!--
4244
Thank you for taking the time to request updates for your Community Engineering contribution!
4345
GitHub Issues should only be created for problems/topics related to this project's codebase.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
## Purpose of this pull request
22

3-
<!-- REQUIRED Describe the goal and the type of changes this pull request covers. -->
4-
53
This pull request (PR) ...
64

75
## Affected DevDocs pages
86

97
<!-- REQUIRED List the affected pages on devdocs.magento.com (URLs). Not needed for large numbers of files. -->
108

11-
- ...
129
- ...
1310

1411
## Links to Magento source code
1512

1613
<!-- OPTIONAL - REMOVE THIS SECTION IF NOT USED. If this pull request references a file in a Magento codebase repository, add it here. -->
1714

18-
- ...
1915
- ...
2016

21-
<!--
17+
<!--
2218
If you are fixing a GitHub issue, note it using GitHub keyword format (https://help.github.com/en/articles/closing-issues-using-keywords#closing-an-issue-in-a-different-repository) to close the issue when this pull request is merged. Example: `Fixes #1234`
2319
2420
`master` is the default branch. Merged pull requests to `master` go live on the site automatically. Any requested changes to content on the `master` branch must be related to the released codebase. Any content related to future releases goes in the `develop` branch.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ _algolia_api_key
3333
###################################
3434

3535
/guides/v2.0/
36+
/guides/v2.1/

.mdlrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
style '_checks/styles/style-rules-dev'
2+
ignore_front_matter true

404.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ permalink: /404.html
1212

1313
The page you are looking for could not be found or the documentation does not exist.
1414

15-
1615
To report a missing page, please submit an issue in our public [GitHub](https://github.com/magento/devdocs) repo.
1716

18-
1917
[Return to main page]({{ site.baseurl }}/)

Docfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ content_map:
1717
-
1818
directory: page-builder
1919
repository: magento/magento2-page-builder
20-
branch: 1.0-develop
20+
branch: 1.1-develop
2121
filter: true
2222
-
2323
directory: page-builder-migration

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ gem 'wdm', platform: :mswin
1010

1111
group :test do
1212
gem 'html-proofer'
13+
gem 'mdl'
1314
gem 'launchy'
1415
end
1516

Gemfile.lock

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
GIT
22
remote: https://github.com/magento-devdocs/devdocs-theme.git
3-
revision: 450a470aa4b937400190d009131fa91cf27d7a9d
3+
revision: 84a3ed7f0df264a2c2086167efbd7d0545d329c4
44
specs:
5-
devdocs (0.0.1)
5+
devdocs (4)
66
jekyll (>= 3.3)
77

88
GEM
99
remote: https://rubygems.org/
1010
specs:
11-
activesupport (5.2.3)
12-
concurrent-ruby (~> 1.0, >= 1.0.2)
13-
i18n (>= 0.7, < 2)
14-
minitest (~> 5.1)
15-
tzinfo (~> 1.1)
16-
addressable (2.6.0)
17-
public_suffix (>= 2.0.2, < 4.0)
18-
algolia_html_extractor (2.6.1)
11+
addressable (2.7.0)
12+
public_suffix (>= 2.0.2, < 5.0)
13+
algolia_html_extractor (2.6.2)
1914
json (~> 2.0)
20-
nokogiri (~> 1.8.2)
21-
algoliasearch (1.26.0)
15+
nokogiri (~> 1.10.4)
16+
algoliasearch (1.27.0)
2217
httpclient (~> 2.8, >= 2.8.3)
2318
json (>= 1.5.1)
2419
colorator (1.1.0)
25-
colorize (0.8.1)
2620
concurrent-ruby (1.1.5)
2721
em-websocket (0.5.1)
2822
eventmachine (>= 0.12.9)
@@ -33,35 +27,34 @@ GEM
3327
exifr (1.3.6)
3428
faraday (0.15.4)
3529
multipart-post (>= 1.2, < 3)
36-
ffi (1.10.0)
30+
ffi (1.11.1)
3731
filesize (0.2.0)
3832
forwardable-extended (2.6.0)
39-
fspath (3.1.0)
40-
html-proofer (3.9.3)
41-
activesupport (>= 4.2, < 6.0)
33+
fspath (3.1.2)
34+
html-proofer (3.12.2)
4235
addressable (~> 2.3)
43-
colorize (~> 0.8)
44-
mercenary (~> 0.3.2)
45-
nokogiri (~> 1.8.1)
36+
mercenary (~> 0.3)
37+
nokogiri (~> 1.10)
4638
parallel (~> 1.3)
39+
rainbow (~> 3.0)
4740
typhoeus (~> 1.3)
4841
yell (~> 2.0)
4942
http_parser.rb (0.6.0)
5043
httpclient (2.8.3)
5144
i18n (0.9.5)
5245
concurrent-ruby (~> 1.0)
53-
image_optim (0.26.3)
46+
image_optim (0.26.5)
5447
exifr (~> 1.2, >= 1.2.2)
5548
fspath (~> 3.0)
5649
image_size (>= 1.5, < 3)
5750
in_threads (~> 1.3)
5851
progress (~> 3.0, >= 3.0.1)
59-
image_optim_pack (0.5.2.20190428)
52+
image_optim_pack (0.6.0)
6053
fspath (>= 2.1, < 4)
6154
image_optim (~> 0.19)
62-
image_size (2.0.1)
63-
in_threads (1.5.1)
64-
jekyll (3.8.5)
55+
image_size (2.0.2)
56+
in_threads (1.5.3)
57+
jekyll (3.8.6)
6558
addressable (~> 2.4)
6659
colorator (~> 1.0)
6760
em-websocket (~> 0.5)
@@ -74,11 +67,11 @@ GEM
7467
pathutil (~> 0.9)
7568
rouge (>= 1.7, < 4)
7669
safe_yaml (~> 1.0)
77-
jekyll-algolia (1.4.11)
70+
jekyll-algolia (1.5.0)
7871
algolia_html_extractor (~> 2.6)
79-
algoliasearch (~> 1.25)
72+
algoliasearch (~> 1.26)
8073
filesize (~> 0.1)
81-
jekyll (~> 3.0)
74+
jekyll (>= 3.6, < 5.0)
8275
json (~> 2.0)
8376
nokogiri (~> 1.6)
8477
progressbar (~> 1.9)
@@ -106,28 +99,35 @@ GEM
10699
rb-fsevent (~> 0.9, >= 0.9.4)
107100
rb-inotify (~> 0.9, >= 0.9.7)
108101
ruby_dep (~> 1.2)
102+
mdl (0.5.0)
103+
kramdown (~> 1.12, >= 1.12.0)
104+
mixlib-cli (~> 1.7, >= 1.7.0)
105+
mixlib-config (~> 2.2, >= 2.2.1)
109106
mercenary (0.3.6)
110-
mini_portile2 (2.3.0)
111-
minitest (5.11.3)
107+
mini_portile2 (2.4.0)
108+
mixlib-cli (1.7.0)
109+
mixlib-config (2.2.18)
110+
tomlrb
112111
multipart-post (2.1.1)
113112
netrc (0.11.0)
114-
nokogiri (1.8.5)
115-
mini_portile2 (~> 2.3.0)
113+
nokogiri (1.10.4)
114+
mini_portile2 (~> 2.4.0)
116115
octokit (4.14.0)
117116
sawyer (~> 0.8.0, >= 0.5.3)
118117
parallel (1.17.0)
119118
pathutil (0.16.2)
120119
forwardable-extended (~> 2.6)
121-
progress (3.5.0)
122-
progressbar (1.10.0)
123-
public_suffix (3.0.3)
120+
progress (3.5.2)
121+
progressbar (1.10.1)
122+
public_suffix (4.0.1)
123+
rainbow (3.0.0)
124124
rb-fsevent (0.10.3)
125125
rb-inotify (0.10.0)
126126
ffi (~> 1.0)
127-
rouge (3.3.0)
127+
rouge (3.11.0)
128128
ruby_dep (1.5.0)
129129
safe_yaml (1.0.5)
130-
sass (3.7.3)
130+
sass (3.7.4)
131131
sass-listen (~> 4.0.0)
132132
sass-listen (4.0.0)
133133
rb-fsevent (~> 0.9, >= 0.9.4)
@@ -136,18 +136,16 @@ GEM
136136
addressable (>= 2.3.5)
137137
faraday (> 0.8, < 2.0)
138138
thor (0.20.3)
139-
thread_safe (0.3.6)
139+
tomlrb (1.2.8)
140140
typhoeus (1.3.1)
141141
ethon (>= 0.9.0)
142-
tzinfo (1.2.5)
143-
thread_safe (~> 0.1)
144142
verbal_expressions (0.1.5)
145143
wdm (0.1.1)
146144
whatsup_github (0.0.1)
147145
netrc (~> 0.10)
148146
octokit (~> 4.14)
149147
thor (~> 0.20)
150-
yell (2.1.0)
148+
yell (2.2.0)
151149

152150
PLATFORMS
153151
ruby
@@ -166,6 +164,7 @@ DEPENDENCIES
166164
jekyll-sitemap
167165
jekyll-titles-from-headings
168166
launchy
167+
mdl
169168
wdm
170169
whatsup_github
171170

0 commit comments

Comments
 (0)