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

Commit

Permalink
Mark the MRG as migrated
Browse files Browse the repository at this point in the history
Update MRG url in main navigation
  • Loading branch information
dshevtsov committed Jun 8, 2022
1 parent 25fb4ad commit 4f394e6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ defaults:
path: guides/v2.4/mrg
values:
group: module-reference-guide-2_4
github_link: false
layout: migrated

-
scope:
Expand Down
3 changes: 1 addition & 2 deletions _plugins/generators/migrated_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def generate(site)
migrated_pages_data << migrated_page
end

migrated_pages_by_group = migrated_pages_data.group_by { |page| page[:guide] }

migrated_pages_by_group = migrated_pages_data.group_by { |page| page[:guide] }.sort.to_h
content = "The folowing is the list of topics that have been migrated and will be redirected soon.\n\n"
migrated_pages_by_group.each do |guide, topics|
content += "\n## #{guide}\n\n\n"
Expand Down
1 change: 1 addition & 0 deletions _plugins/generators/mrg_v2_4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def generate(site)
)
mrg_topic.content = metadata['content']
mrg_topic.data['title'] = metadata['title']
mrg_topic.data['migrated_to'] = 'https://developer.adobe.com/commerce/php/module-reference/' + mrg_topic.url.split('/').pop.sub('.html', '/')
mrg_topic.process("#{mod}.md")

# Add the newly constructed page object to the rest of pages
Expand Down
5 changes: 5 additions & 0 deletions src/_data/main-nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@

- label: Module Reference Guide
url: /mrg/intro.html
include_versions: ["2.3"]

- label: Module Reference Guide
url: https://developer.adobe.com/commerce/php/module-reference/
include_versions: ["2.4"]

- label: Coding Standards
url: /coding-standards/bk-coding-standards.html
Expand Down
1 change: 0 additions & 1 deletion src/guides/v2.4/mrg/intro.md

This file was deleted.

14 changes: 14 additions & 0 deletions src/guides/v2.4/mrg/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Introduction to the Module Reference Guide
migrated_to: https://developer.adobe.com/commerce/php/module-reference/
---

The [Module](https://glossary.magento.com/module) Reference Guide contains brief descriptions for the modules specific to {{site.data.var.ce}}, {{site.data.var.ee}}, and {{site.data.var.b2b}}. All module topics are generated from the corresponding README files in the codebase.

{:.ref-header}
Related topics

- [Building a new Magento module]({{ page.baseurl }}/extension-dev-guide/bk-extension-dev-guide.html)
- [How to enable/disable a Magento module]({{ page.baseurl }}/install-gde/install/cli/install-cli-subcommands-enable.html)
- [SOAP Reference]({{ page.baseurl }}/soap/bk-soap.html)
- [REST Reference]({{ page.baseurl }}/rest/bk-rest.html)

0 comments on commit 4f394e6

Please sign in to comment.