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

Commit b45628b

Browse files
authored
Merge branch 'master' into hg-cloud-issues
2 parents 0f71460 + 41f2ee9 commit b45628b

File tree

442 files changed

+1935
-3231
lines changed

Some content is hidden

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

442 files changed

+1935
-3231
lines changed

_plugins/generators/mrg_v2_3.rb

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
# This plugin generates module-specific topics in the 'guides/v2.3/mrg'.
77
# It takes data from files in '_data/codebase/mrg' and generates
88
# a virtual .md page for it with the same name.
9-
# The content in data is generated internally from
10-
# modules' READMEs of magento2ce, magento2ee, magento2b2b repositories.
119
#
1210

1311
module Jekyll
1412
# Custom generator for MRG pages
15-
class Mrg2_3PageGenerator < Generator
13+
class Mrg23PageGenerator < Generator
1614
safe true
1715

1816
def generate(site)
@@ -28,37 +26,33 @@ def generate(site)
2826
# For example, for '_data/codebase/v2_3/mrg/NewModule.yml' that contains
2927
#
3028
# title: Magento_NewModule
31-
# edition: ce
3229
# content: Magento_NewModule is an awesome module
3330
#
34-
# this will create a new virtual page guides/v2.3/mrg/ce/NewModule.md
31+
# this will create a new virtual page guides/v2.3/mrg/NewModule.md
3532
# that would correspond to:
3633
# ---
3734
# title: Magento_NewModule
3835
# ---
3936
# Magento_NewModule is an awesome module.
4037
#
41-
mrg_data.each do |category, modules|
42-
modules.each do |mod, metadata|
43-
# PageWithoutAFile handles processing files without reading it.
44-
# mrg_topic is a virtual '.md' file
45-
# See details in https://www.rubydoc.info/gems/jekyll/Jekyll/PageWithoutAFile
46-
# See tests in https://github.com/jekyll/jekyll/blob/master/test/test_page_without_a_file.rb
47-
mrg_topic = PageWithoutAFile.new(
48-
@site,
49-
@site.source,
50-
"guides/v2.3/mrg/#{category}",
51-
"#{mod}.md"
52-
)
53-
mrg_topic.content = metadata['content']
54-
mrg_topic.data['title'] = metadata['title']
55-
mrg_topic.data['last_modified_at'] = metadata['last_modified_at']
56-
mrg_topic.process("#{mod}.md")
38+
mrg_data.each do |mod, metadata|
39+
# PageWithoutAFile handles processing files without reading it.
40+
# mrg_topic is a virtual '.md' file
41+
# See details in https://www.rubydoc.info/gems/jekyll/Jekyll/PageWithoutAFile
42+
# See tests in https://github.com/jekyll/jekyll/blob/master/test/test_page_without_a_file.rb
43+
mrg_topic = PageWithoutAFile.new(
44+
@site,
45+
@site.source,
46+
'guides/v2.3/mrg/',
47+
"#{mod}.md"
48+
)
49+
mrg_topic.content = metadata['content']
50+
mrg_topic.data['title'] = metadata['title']
51+
mrg_topic.process("#{mod}.md")
5752

58-
# Add the newly constructed page object to the rest of pages
59-
# on the site.
60-
@site.pages << mrg_topic
61-
end
53+
# Add the newly constructed page object to the rest of pages
54+
# on the site.
55+
@site.pages << mrg_topic
6256
end
6357
end
6458
end

_plugins/generators/mrg_v2_4.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# This plugin generates module-specific topics in the 'guides/v2.4/mrg'.
77
# It takes data from files in '_data/codebase/mrg' and generates
88
# a virtual .md page for it with the same name.
9-
# The content in data is generated internally from
10-
# modules' READMEs of magento2ce, magento2ee, magento2b2b repositories.
119
#
1210

1311
module Jekyll

src/_data/codebase/v2_3/mrg/b2b/B2b.yml

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

src/_data/codebase/v2_3/mrg/b2b/BundleNegotiableQuote.yml

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

src/_data/codebase/v2_3/mrg/b2b/BundleSharedCatalog.yml

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

src/_data/codebase/v2_3/mrg/b2b/Company.yml

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

src/_data/codebase/v2_3/mrg/b2b/CompanyCredit.yml

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

src/_data/codebase/v2_3/mrg/b2b/CompanyPayment.yml

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

src/_data/codebase/v2_3/mrg/b2b/ConfigurableNegotiableQuote.yml

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

0 commit comments

Comments
 (0)