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

Commit cfc0af0

Browse files
authored
Merge branch 'master' into addition/widget-dropdown
2 parents c66d513 + 3f9f10c commit cfc0af0

File tree

910 files changed

+2657
-61327
lines changed

Some content is hidden

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

910 files changed

+2657
-61327
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

.mdlrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style '_checks/md_style'

Docfile.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
content_map:
2-
-
3-
directory: guides/v2.1
4-
repository: magento/devdocs
5-
branch: 2.1
6-
filter: false
72
-
83
directory: guides/m1x
94
repository: magento/devdocs-m1

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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
@@ -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)
@@ -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: 32 additions & 1 deletion
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

@@ -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: 1 addition & 12 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
@@ -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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ 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
2027
-
2128
name: 2.0.2
2229
support:

_data/toc/javascript-developer-guide.yml

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

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

0 commit comments

Comments
 (0)