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

Commit 55957b8

Browse files
authored
Merge pull request #1 from magento/master
Merge Request
2 parents b82f912 + e3ed59b commit 55957b8

File tree

2,294 files changed

+31299
-232248
lines changed

Some content is hidden

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

2,294 files changed

+31299
-232248
lines changed

.github/CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ The following guidelines may answer most of your questions and help you get star
7171
For example:
7272

7373
```bash
74-
git rm guides/v2.2/install-gde/composer.md
74+
git rm guides/v2.3/install-gde/composer.md
7575
```
7676

7777
```bash
78-
cp guides/v2.1/install-gde/composer.md guides/v2.2/install-gde/composer.md
78+
cp guides/v2.2/install-gde/composer.md guides/v2.3/install-gde/composer.md
7979
```
8080

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.
81+
- Make sure 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.
8282
- Review your work for basic typos, formatting errors, or ambiguous sentences before opening a pull request.
8383
- 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.
8484
- 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,11 +105,11 @@ _(Optional)_ To review your changes in HTML output, follow the instructions in t
105105

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

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.
108+
- **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.
109109
- **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.
110+
- 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
111+
- 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.
112+
- 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.
113113

114114
### Edit metadata
115115

.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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style '_checks/md_style'

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: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GIT
22
remote: https://github.com/magento-devdocs/devdocs-theme.git
3-
revision: 450a470aa4b937400190d009131fa91cf27d7a9d
3+
revision: 5ce6bf94dbf827682b1f83d5e3c4fbc4c4f69478
44
specs:
5-
devdocs (0.0.1)
5+
devdocs (2)
66
jekyll (>= 3.3)
77

88
GEM
@@ -33,10 +33,10 @@ GEM
3333
exifr (1.3.6)
3434
faraday (0.15.4)
3535
multipart-post (>= 1.2, < 3)
36-
ffi (1.10.0)
36+
ffi (1.11.1)
3737
filesize (0.2.0)
3838
forwardable-extended (2.6.0)
39-
fspath (3.1.0)
39+
fspath (3.1.1)
4040
html-proofer (3.9.3)
4141
activesupport (>= 4.2, < 6.0)
4242
addressable (~> 2.3)
@@ -50,18 +50,18 @@ GEM
5050
httpclient (2.8.3)
5151
i18n (0.9.5)
5252
concurrent-ruby (~> 1.0)
53-
image_optim (0.26.3)
53+
image_optim (0.26.4)
5454
exifr (~> 1.2, >= 1.2.2)
5555
fspath (~> 3.0)
5656
image_size (>= 1.5, < 3)
5757
in_threads (~> 1.3)
5858
progress (~> 3.0, >= 3.0.1)
59-
image_optim_pack (0.5.2.20190428)
59+
image_optim_pack (0.5.3)
6060
fspath (>= 2.1, < 4)
6161
image_optim (~> 0.19)
6262
image_size (2.0.1)
63-
in_threads (1.5.1)
64-
jekyll (3.8.5)
63+
in_threads (1.5.2)
64+
jekyll (3.8.6)
6565
addressable (~> 2.4)
6666
colorator (~> 1.0)
6767
em-websocket (~> 0.5)
@@ -106,9 +106,16 @@ GEM
106106
rb-fsevent (~> 0.9, >= 0.9.4)
107107
rb-inotify (~> 0.9, >= 0.9.7)
108108
ruby_dep (~> 1.2)
109+
mdl (0.5.0)
110+
kramdown (~> 1.12, >= 1.12.0)
111+
mixlib-cli (~> 1.7, >= 1.7.0)
112+
mixlib-config (~> 2.2, >= 2.2.1)
109113
mercenary (0.3.6)
110114
mini_portile2 (2.3.0)
111115
minitest (5.11.3)
116+
mixlib-cli (1.7.0)
117+
mixlib-config (2.2.18)
118+
tomlrb
112119
multipart-post (2.1.1)
113120
netrc (0.11.0)
114121
nokogiri (1.8.5)
@@ -118,16 +125,16 @@ GEM
118125
parallel (1.17.0)
119126
pathutil (0.16.2)
120127
forwardable-extended (~> 2.6)
121-
progress (3.5.0)
122-
progressbar (1.10.0)
123-
public_suffix (3.0.3)
128+
progress (3.5.1)
129+
progressbar (1.10.1)
130+
public_suffix (3.1.1)
124131
rb-fsevent (0.10.3)
125132
rb-inotify (0.10.0)
126133
ffi (~> 1.0)
127-
rouge (3.3.0)
134+
rouge (3.5.1)
128135
ruby_dep (1.5.0)
129136
safe_yaml (1.0.5)
130-
sass (3.7.3)
137+
sass (3.7.4)
131138
sass-listen (~> 4.0.0)
132139
sass-listen (4.0.0)
133140
rb-fsevent (~> 0.9, >= 0.9.4)
@@ -137,6 +144,7 @@ GEM
137144
faraday (> 0.8, < 2.0)
138145
thor (0.20.3)
139146
thread_safe (0.3.6)
147+
tomlrb (1.2.8)
140148
typhoeus (1.3.1)
141149
ethon (>= 0.9.0)
142150
tzinfo (1.2.5)
@@ -147,7 +155,7 @@ GEM
147155
netrc (~> 0.10)
148156
octokit (~> 4.14)
149157
thor (~> 0.20)
150-
yell (2.1.0)
158+
yell (2.2.0)
151159

152160
PLATFORMS
153161
ruby
@@ -166,6 +174,7 @@ DEPENDENCIES
166174
jekyll-sitemap
167175
jekyll-titles-from-headings
168176
launchy
177+
mdl
169178
wdm
170179
whatsup_github
171180

README.md

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Our goal is to provide the Magento community with comprehensive and quality tech
1313
You can build this site locally in the following ways:
1414

1515
- [Installing the project dependencies locally](#build-using-jekyll) (Mac, Linux)
16-
1716
- [Using a Vagrant virtual machine](#build-using-vagrant) (Mac, Linux, Windows)
1817
- [Build DevDocs in Windows](#build-devdocs-in-windows) (Windows 7 & 10)
1918

@@ -42,12 +41,12 @@ $ ruby -v
4241

4342
See the [Ruby site](https://www.ruby-lang.org/en/documentation/installation) for instructions.
4443

45-
### Install Bundler
44+
### Upgrade RubyGems
4645

47-
Install the [Bundler](https://bundler.io/) gem, which helps with Ruby dependencies:
46+
Upgrade [RubyGems](https://github.com/rubygems/rubygems), which helps with dependencies (gems):
4847

4948
```
50-
$ gem install bundler
49+
$ gem update --system
5150
```
5251

5352
Once you have completed preparing your environment, you can build locally and review the site in your browser.
@@ -178,6 +177,38 @@ To build v2.0 documentation:
178177
rake preview
179178
```
180179

180+
### To build v2.1 documentation
181+
182+
Magento 2.1.18 was the final 2.1.x release. After June 2019, Magento 2.1.x stopped receiving security patches, quality fixes, and documentation updates.
183+
184+
To ensure the quality of our public documentation for versions of Magento that are still supported and to avoid potential confusion about 2.1.x support, we removed all 2.1.x content from our public documentation websites on July 11, 2019.
185+
186+
To build v2.1 documentation:
187+
188+
> Also, you can use the GitHub interface to read the source Markdown files instead of building the site locally. Navigate to the [`2.1`](https://github.com/magento/devdocs/tree/2.1) branch and click the file you want to view.
189+
190+
1. Add an entry for 2.1 in the `Docfile.yml` file.
191+
192+
```yaml
193+
-
194+
directory: guides/v2.1
195+
repository: magento/devdocs
196+
branch: 2.1
197+
filter: false
198+
```
199+
200+
1. Initialize the `2.1` branch in your local devdocs repository.
201+
202+
```shell
203+
rake init
204+
```
205+
206+
1. Run the preview command.
207+
208+
```shell
209+
rake preview
210+
```
211+
181212
## Build using Vagrant
182213

183214
You can deploy the devdocs site locally using [this Vagrant project](https://github.com/magento-devdocs/vagrant-for-magento-devdocs).

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ desc 'Pull docs from external repositories'
6262
task init: %w[multirepo:init]
6363

6464
desc 'Run checks (image optimization).'
65-
task check: %w[check:image_optim]
65+
task check: %w[check:image_optim check:mdl]
6666

6767
desc 'Generate data for the weekly digest.'
6868
task :whatsnew do

_checks/md-check-hook.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This Jekyll hook runs Markdown linter (https://github.com/markdownlint/markdownlint)
2+
# on .md files that git tracks as 'modified' ('git ls-files -m').
3+
# '_checks/md_style' sets a style (https://github.com/markdownlint/markdownlint/blob/master/docs/creating_styles.md)
4+
# that is a set of rules to be applied when linting (https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md).
5+
# '.mdlrc' sets linting configuration (https://github.com/markdownlint/markdownlint/blob/master/docs/configuration.md).
6+
#
7+
# The plugin runs in serving mode only.
8+
#
9+
Jekyll::Hooks.register :site, :post_write do |site|
10+
next unless site.config['serving']
11+
staged_files = `git ls-files -m`.split("\n")
12+
staged_md_files = staged_files.select { |file| File.extname(file) == '.md' }
13+
next if staged_md_files.empty?
14+
puts 'Checking Markdown syntax...'.blue
15+
staged_md_files_as_a_string = staged_md_files.join(' ')
16+
report = `bin/mdl #{staged_md_files_as_a_string}`
17+
puts report.yellow
18+
puts 'The style is defined in _checks/md_style'.yellow
19+
end

_checks/md_style

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Approved style
2+
rule 'MD001'
3+
exclude_rule 'MD002'
4+
rule 'MD003', :style => :atx
5+
rule 'MD004'
6+
rule 'MD005'
7+
rule 'MD006'
8+
rule 'MD009'
9+
rule 'MD010'
10+
rule 'MD011'
11+
rule 'MD012'
12+
exclude_rule 'MD013'
13+
exclude_rule 'MD014'
14+
rule 'MD018'
15+
rule 'MD019'
16+
exclude_rule 'MD020'
17+
exclude_rule 'MD021'
18+
rule 'MD022'
19+
rule 'MD023'
20+
rule 'MD024', :allow_different_nesting => true
21+
rule 'MD025'
22+
23+
# The following rules still require Docs team review and approval
24+
exclude_rule 'MD007'
25+
exclude_rule 'MD026'
26+
exclude_rule 'MD027'
27+
exclude_rule 'MD028'
28+
exclude_rule 'MD029'
29+
exclude_rule 'MD030'
30+
exclude_rule 'MD031'
31+
exclude_rule 'MD032'
32+
exclude_rule 'MD033'
33+
exclude_rule 'MD034'
34+
exclude_rule 'MD035'
35+
exclude_rule 'MD036'
36+
exclude_rule 'MD037'
37+
exclude_rule 'MD038'
38+
exclude_rule 'MD039'
39+
exclude_rule 'MD040'
40+
exclude_rule 'MD041'
41+
exclude_rule 'MD046'

_config.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ baseurl: ""
1919
#
2020
version: "2.3"
2121
versions:
22-
-
23-
name: "2.1"
24-
url: /guides/v2.1/
2522
-
2623
name: "2.2"
2724
url: /guides/v2.2/
@@ -102,11 +99,7 @@ defaults:
10299
group: module-reference-guide-2_3
103100
github_link: false
104101
feedback_link: false
105-
-
106-
scope:
107-
path: guides/v2.1
108-
values:
109-
sitemap: false
102+
110103
-
111104
scope:
112105
path: guides/v2.2
@@ -180,7 +173,7 @@ algolia:
180173
api_key: d2d0f33ab73e291ef8d88d8b565e754c
181174

182175
google:
183-
analytics: UA-66243208-1
176+
gtm: GTM-KRCLXBB
184177

185178
# Toggles the _plugin/html-check-hook.rb script that checks links in the generated HTML
186179
#
@@ -197,10 +190,6 @@ mage2bloburl: https://github.com/magento/magento2/blob
197190
m1xgdeurl: /guides/m1x
198191
m1xgithuburl: https://github.com/magento/devdocs/blob/master
199192

200-
# 2.1 variables
201-
gdeurl21: /guides/v2.1/
202-
githuburl21: https://github.com/magento/devdocs/tree/master/guides/v2.1/
203-
204193
# 2.2 variables
205194
gdeurl22: /guides/v2.2/
206195
githuburl22: https://github.com/magento/devdocs/tree/master/guides/v2.2/

_data/compatibility.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ extension:
1717
-
1818
name: Google Shopping ads Channel
1919
versions:
20+
-
21+
name: 3.0.0
22+
support:
23+
2.2.4+: general availability
24+
2.3.0: general availability
25+
2.3.1: general availability
26+
2.3.2: general availability
27+
-
28+
name: 2.0.2
29+
support:
30+
2.2.4+: general availability
31+
2.3.0: general availability
32+
2.3.1: general availability
33+
2.3.2: general availability
2034
-
2135
name: 2.0.1
2236
support:

_data/toc/extension-best-practices.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@ pages:
5757

5858
- label: Creating a Magento admin page
5959
url: /ext-best-practices/extension-coding/example-module-adminpage.html
60+
61+
- label: Creating a dynamic row system config
62+
url: /ext-best-practices/tutorials/dynamic-row-system-config.html

_data/toc/javascript-developer-guide.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ pages:
5555
- label: Confirmation widget
5656
url: /javascript-dev-guide/widgets/widget_confirm.html
5757

58+
- label: Dropdown widget
59+
url: /javascript-dev-guide/widgets/widget_dropdown.html
60+
5861
- label: DropdownDialog widget
5962
url: /javascript-dev-guide/widgets/widget_dialog.html
6063

@@ -90,3 +93,6 @@ pages:
9093

9194
- label: Tabs widget
9295
url: /javascript-dev-guide/widgets/widget_tabs.html
96+
97+
- label: ToggleAdvanced widget
98+
url: /javascript-dev-guide/widgets/widget_toggle.html

_data/toc/rest-api.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ pages:
55

66
- label: Quick reference
77
children:
8-
- label: REST Endpoints (Swagger)
9-
include_versions: ["2.0"]
10-
url: http://devdocs.magento.com/swagger/index_20.html
11-
12-
- label: REST Endpoints (Swagger)
13-
include_versions: ["2.1"]
14-
url: http://devdocs.magento.com/swagger/index_21.html
158

169
- label: REST Endpoints (Swagger)
1710
include_versions: ["2.2"]

0 commit comments

Comments
 (0)