This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ content_map:
1212 filter : true
1313-
1414 directory : src/mftf/v2
15- repository : magento /magento2-functional-testing-framework
15+ repository : commerce-docs /magento2-functional-testing-framework-public
1616 branch : 2.x-develop
1717 filter : true
1818-
Original file line number Diff line number Diff line change 1+ # Copyright 2023 Adobe
2+ # All Rights Reserved.
3+ #
4+ # NOTICE: All information contained herein is, and remains
5+ # the property of Adobe and its suppliers, if any. The intellectual
6+ # and technical concepts contained herein are proprietary to Adobe
7+ # and its suppliers and are protected by all applicable intellectual
8+ # property laws, including trade secret and copyright laws.
9+ # Dissemination of this information or reproduction of this material
10+ # is strictly forbidden
11+
12+ # This plugin redirects MFTF v2 pages to the MFTF repo.
13+
14+ # frozen_string_literal: true
15+
16+ Jekyll ::Hooks . register :site , :post_read do |site |
17+ pages = site . pages
18+
19+ pages . each do |page |
20+ # Skip pages where the parameter is already set
21+ next unless page . path . start_with? 'mftf/v2'
22+
23+ # Process only files with 'md' and 'html' extensions
24+ next unless File . extname ( page . path ) . match? ( /md/ )
25+
26+ page . data [ 'redirect_to' ] = "https://github.com/magento/magento2-functional-testing-framework/blob/2.x-develop/#{ page . path . delete_prefix ( 'mftf/v2/' ) } "
27+ end
28+ end
Original file line number Diff line number Diff line change 22layout : full-width
33title : Page Not Found
44permalink : /404.html
5+ redirect_to : https://developer.adobe.com/commerce/docs/
56---
67
78## Sorry!
You can’t perform that action at this time.
0 commit comments