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

Commit 4311156

Browse files
authored
Merge branch 'master' into editorial/eav_attribute_options
2 parents e530e65 + 08dad70 commit 4311156

File tree

185 files changed

+1740
-45328
lines changed

Some content is hidden

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

185 files changed

+1740
-45328
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
with:
1818
ruby-version: 2.6
1919
- name: Install mdl gem
20-
run: gem install mdl -v '0.7.0'
20+
run: gem install mdl
2121
- name: Run mdl
2222
run: mdl --style=_checks/styles/style-rules-prod --ignore-front-matter --git-recurse -- .

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gem 'wdm', platform: :mswin
1111

1212
group :test do
1313
gem 'html-proofer'
14-
gem 'mdl', '= 0.7.0'
14+
gem 'mdl'
1515
gem 'launchy'
1616
end
1717

Gemfile.lock

+10-6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ GEM
1616
algoliasearch (1.27.2)
1717
httpclient (~> 2.8, >= 2.8.3)
1818
json (>= 1.5.1)
19+
chef-utils (16.4.41)
1920
colorator (1.1.0)
2021
concurrent-ruby (1.1.6)
2122
em-websocket (0.5.1)
@@ -106,16 +107,19 @@ GEM
106107
listen (3.2.1)
107108
rb-fsevent (~> 0.10, >= 0.10.3)
108109
rb-inotify (~> 0.9, >= 0.9.10)
109-
mdl (0.7.0)
110-
kramdown (~> 2.0)
111-
kramdown-parser-gfm (~> 1.0)
110+
mdl (0.11.0)
111+
kramdown (~> 2.3)
112+
kramdown-parser-gfm (~> 1.1)
112113
mixlib-cli (~> 2.1, >= 2.1.1)
113114
mixlib-config (>= 2.2.1, < 4)
115+
mixlib-shellout
114116
mercenary (0.4.0)
115117
mini_portile2 (2.4.0)
116-
mixlib-cli (2.1.6)
117-
mixlib-config (3.0.6)
118+
mixlib-cli (2.1.8)
119+
mixlib-config (3.0.9)
118120
tomlrb
121+
mixlib-shellout (3.1.4)
122+
chef-utils
119123
multipart-post (2.1.1)
120124
netrc (0.11.0)
121125
nokogiri (1.10.9)
@@ -178,7 +182,7 @@ DEPENDENCIES
178182
jekyll-sitemap
179183
jekyll-titles-from-headings
180184
launchy
181-
mdl (= 0.7.0)
185+
mdl
182186
rake
183187
wdm
184188
whatsup_github

Rakefile

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ require 'colorator'
1717
# Require helper methods from the 'lib' directory
1818
Dir.glob('lib/**/*.rb') { |file| require_relative(file) }
1919

20+
# Instantiate Docfile data for usage in tasks
21+
@content_map = DocConfig.new.content_map
22+
2023
desc "Same as 'rake', 'rake preview'"
2124
task default: %w[preview]
2225

_checks/styles/style-rules-prod

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ rule 'MD038' # Spaces inside code span elements
3535
exclude_rule 'MD039'
3636
rule 'MD040' # Fenced code blocks should have a language specified
3737
exclude_rule 'MD041'
38-
exclude_rule 'MD046'
38+
rule 'MD046'

rakelib/multirepo.rake

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ namespace :multirepo do
77
desc 'Create a file tree for devdocs website and get all required content'
88
task :init do
99
protocol = ENV['token'] ? "https://#{ENV['token']}@github.com/" : '[email protected]:'
10-
content_map = DocConfig.new.content_map
11-
content_map.each do |subrepo|
10+
@content_map.each do |subrepo|
1211
repo_url = protocol + subrepo['repository'] + '.git'
1312
add_subrepo(subrepo['directory'], repo_url , subrepo['branch'], subrepo['filter'])
1413
end
1514
end
1615

1716
desc 'Reinitialize subrepositories. CAUTION: This will remove directories and associated git repositories listed in Docfile'
1817
task reinit: %w[clean] do
19-
content_map = DocConfig.new.content_map
20-
content_map.each do |subrepo|
18+
@content_map.each do |subrepo|
2119
if subrepo['directory']
2220
puts "Removing #{subrepo['directory']}".yellow
2321
sh 'rm', '-rf', subrepo['directory']

rakelib/update.rake

+9-2
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,21 @@ namespace :update do
4949
task all: %w[devdocs subrepos]
5050

5151
desc 'Update subrepositories only'
52-
task subrepos: %w[mbi pb pbm mftf]
52+
task :subrepos do
53+
@content_map.each do |subrepo|
54+
update_dir subrepo['directory']
55+
end
56+
end
5357
end
5458

5559
def update_dir(dir)
5660
abort "Cannot find the #{dir} directory. You can run 'rake init' to create it and rerun 'rake update:all' again.".red unless Dir.exist? dir
5761
Dir.chdir dir do
62+
puts "Updating #{dir}:".magenta
63+
64+
next warn "No branch to update" if `git status -sb`.include? 'no branch'
5865
sh 'git remote -v'
59-
sh 'git pull'
66+
sh 'git pull --no-recurse-submodules'
6067
sh 'git status -sb'
6168
end
6269
end

src/_data/codebase/v2_3/mftf/action-groups.yml

-6,865
This file was deleted.

src/_data/codebase/v2_3/mftf/functional-tests.yml

-7,469
This file was deleted.

0 commit comments

Comments
 (0)