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

Commit 3548e7a

Browse files
committed
Merge branch 'master' into patch-1
2 parents b82ed97 + 4167d4b commit 3548e7a

File tree

149 files changed

+61
-37005
lines changed

Some content is hidden

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

149 files changed

+61
-37005
lines changed

.github/workflows/linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ jobs:
6363
VALIDATE_JSCPD: false
6464
VALIDATE_OPENAPI: false
6565
MARKDOWN_CONFIG_FILE: .markdownlint.json
66+
VALIDATE_NATURAL_LANGUAGE: false

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-2.7.2
1+
ruby-2.7.5

Gemfile.lock

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT
22
remote: https://github.com/magento-devdocs/devdocs-theme.git
3-
revision: b1e43366e1fa7c7cd33a2213c6a9304f57536e8f
3+
revision: 841025f8b27b7b66cb4a2661f0112d3151f49fa1
44
specs:
55
devdocs (16)
66
jekyll (>= 4.0)
@@ -16,7 +16,7 @@ GEM
1616
algoliasearch (1.27.5)
1717
httpclient (~> 2.8, >= 2.8.3)
1818
json (>= 1.5.1)
19-
chef-utils (17.8.25)
19+
chef-utils (17.9.26)
2020
concurrent-ruby
2121
colorator (1.1.0)
2222
concurrent-ruby (1.1.9)
@@ -27,25 +27,29 @@ GEM
2727
ffi (>= 1.15.0)
2828
eventmachine (1.2.7)
2929
exifr (1.3.9)
30-
faraday (1.8.0)
30+
faraday (1.9.3)
3131
faraday-em_http (~> 1.0)
3232
faraday-em_synchrony (~> 1.0)
3333
faraday-excon (~> 1.1)
34-
faraday-httpclient (~> 1.0.1)
34+
faraday-httpclient (~> 1.0)
35+
faraday-multipart (~> 1.0)
3536
faraday-net_http (~> 1.0)
36-
faraday-net_http_persistent (~> 1.1)
37+
faraday-net_http_persistent (~> 1.0)
3738
faraday-patron (~> 1.0)
3839
faraday-rack (~> 1.0)
39-
multipart-post (>= 1.2, < 3)
40+
faraday-retry (~> 1.0)
4041
ruby2_keywords (>= 0.0.4)
4142
faraday-em_http (1.0.0)
4243
faraday-em_synchrony (1.0.0)
4344
faraday-excon (1.1.0)
4445
faraday-httpclient (1.0.1)
46+
faraday-multipart (1.0.2)
47+
multipart-post (>= 1.2, < 3)
4548
faraday-net_http (1.0.1)
4649
faraday-net_http_persistent (1.2.0)
4750
faraday-patron (1.0.0)
4851
faraday-rack (1.0.0)
52+
faraday-retry (1.0.3)
4953
ffi (1.15.4)
5054
filesize (0.2.0)
5155
forwardable-extended (2.6.0)
@@ -132,18 +136,18 @@ GEM
132136
mixlib-config (>= 2.2.1, < 4)
133137
mixlib-shellout
134138
mercenary (0.4.0)
135-
mini_portile2 (2.6.1)
139+
mini_portile2 (2.7.1)
136140
mixlib-cli (2.1.8)
137141
mixlib-config (3.0.9)
138142
tomlrb
139143
mixlib-shellout (3.2.5)
140144
chef-utils
141145
multipart-post (2.1.1)
142146
netrc (0.11.0)
143-
nokogiri (1.12.5)
144-
mini_portile2 (~> 2.6.1)
147+
nokogiri (1.13.0)
148+
mini_portile2 (~> 2.7.0)
145149
racc (~> 1.4)
146-
nokogiri (1.12.5-x86_64-darwin)
150+
nokogiri (1.13.0-x86_64-darwin)
147151
racc (~> 1.4)
148152
octokit (4.21.0)
149153
faraday (>= 0.9)
@@ -171,7 +175,7 @@ GEM
171175
faraday (> 0.8, < 2.0)
172176
terminal-table (2.0.0)
173177
unicode-display_width (~> 1.1, >= 1.1.1)
174-
thor (1.1.0)
178+
thor (1.2.1)
175179
tomlrb (2.0.1)
176180
typhoeus (1.4.0)
177181
ethon (>= 0.9.0)
@@ -187,8 +191,8 @@ GEM
187191
PLATFORMS
188192
ruby
189193
x86-mswin32
190-
x86_64-darwin-18
191194
x86_64-darwin-19
195+
x86_64-darwin-21
192196

193197
DEPENDENCIES
194198
devdocs!
@@ -209,4 +213,4 @@ DEPENDENCIES
209213
whatsup_github
210214

211215
BUNDLED WITH
212-
2.2.15
216+
2.1.4

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ desc "Same as 'rake', 'rake preview'"
2424
task default: %w[preview]
2525

2626
desc "Same as 'test:report'"
27-
task test: %w[test:md test:report]
27+
task test: %w[test:md test:report test:unused_images test:unused_includes]
2828

2929
desc 'Preview the devdocs locally'
3030
task preview: %w[install clean] do

rakelib/test.rake

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,16 @@ namespace :test do
6363
puts 'No issues found'.green
6464
end
6565

66-
desc 'Find unused images'
66+
desc 'Find unused images. To exclude by regex pattern, use the "exclude_img" argument. Example of excluding a "layout" directory: "rake test:unused_includes exclude_img=/layout/"'
6767
task :unused_images do
68-
puts 'Running a task for finding unused images'.magenta
69-
images = Dir['src/**/*.{png,svg,jpeg,jpg,ico}']
68+
puts 'Running a task for finding unused images (png,svg,jpeg,jpg,ico)'.magenta
69+
images = FileList['src/**/*.{png,svg,jpeg,jpg,ico}']
70+
7071
puts "The project contains a total of #{images.size} images."
72+
73+
exclude = ENV['exclude_img']
74+
images.exclude(/#{exclude}/) if exclude
75+
7176
puts 'Checking for unlinked images...'
7277
Dir['src/**/*.{md,html,js,css}'].each do |file|
7378
# Exclude symmlinks
@@ -76,33 +81,41 @@ namespace :test do
7681
images.delete_if { |image| File.read(file).include?(File.basename(image)) }
7782
end
7883

79-
abort 'No unlinked images' if images.empty?
80-
81-
images.each do |image|
82-
puts "No links for #{image}".yellow
84+
if images.empty?
85+
puts 'No unlinked images'.green
86+
else
87+
images.each do |image|
88+
puts "No links for #{image}".yellow
89+
end
90+
puts "Found #{images.size} dangling images".red
8391
end
84-
puts "Found #{images.size} dangling images".red
8592
end
8693

87-
desc 'Find unused includes'
94+
desc 'Find unused includes. To exclude by regex pattern, use the "exclude_incl" argument. Example of excluding a "layout" directory: "rake test:unused_includes exclude_incl=/layout/"'
8895
task :unused_includes do
8996
puts 'Running a task to find unused _includes'.magenta
90-
includes = Dir['src/_includes/**/*']
97+
includes = FileList['src/_includes/**/*']
98+
9199
puts "The project contains a total of #{includes.size} includes"
92-
puts 'The following includes are not linked:'
100+
101+
exclude = ENV['exclude_incl']
102+
includes.exclude(/#{exclude}/) if exclude
103+
93104
Dir['src/**/*.{md,html}'].each do |file|
94-
# Exclude symmlinks
95105
next if File.symlink? file
96106

97107
includes.delete_if { |include| File.read(file).include?(File.basename(include)) }
98108
end
99109

100-
abort 'No unlinked includes' if includes.empty?
101-
102-
includes.each do |include|
103-
puts "No links for #{include}".yellow
110+
if includes.empty?
111+
puts 'No unlinked includes'.green
112+
else
113+
puts 'The following includes are not linked:'
114+
includes.each do |include|
115+
puts "No links for #{include}".yellow
116+
end
117+
puts "Found #{includes.size} unlinked includes".red
118+
puts 'Be careful removing include files. Some include files, such as those in the layout/** directory, may not be linked in the project, but may be used implicitly by the doc theme.'.bold
104119
end
105-
puts "Found #{includes.size} unlinked includes".red
106-
puts 'Be careful removing include files. Some include files, such as those in the layout/** directory, may not be linked in the project, but may be used implicitly by the doc theme.'.bold
107120
end
108121
end

src/_data/toc/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pages:
1818
versionless: true
1919

2020
- label: Release policy
21-
url: /release/policy
21+
url: /release/policy/
2222
versionless: true
2323

2424
- label: Lifecycle policy

src/_includes/backward-incompatible-changes/b2b/1.3.1-1.3.2.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/_includes/backward-incompatible-changes/commerce/2.0.0-2.0.1.html

Whitespace-only changes.

src/_includes/backward-incompatible-changes/commerce/2.0.0-2.1.0.html

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)