This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree 3 files changed +32
-1
lines changed
3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ content_map:
12
12
filter : true
13
13
-
14
14
directory : src/mftf/v2
15
- repository : magento /magento2-functional-testing-framework
15
+ repository : commerce-docs /magento2-functional-testing-framework-public
16
16
branch : 2.x-develop
17
17
filter : true
18
18
-
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 2.3 pages to the DevSite.
13
+ # It uses redirect metadata from the 2.4 version of the page.
14
+ # If there is no 2.4 version of the page, then it redirects to https://developer.adobe.com/commerce/docs/
15
+
16
+ # frozen_string_literal: true
17
+
18
+ Jekyll ::Hooks . register :site , :post_read do |site |
19
+ pages = site . pages
20
+
21
+ pages . each do |page |
22
+ # Skip pages where the parameter is already set
23
+ next unless page . path . start_with? 'mftf/v2'
24
+
25
+ # Process only files with 'md' and 'html' extensions
26
+ next unless File . extname ( page . path ) . match? ( /md/ )
27
+
28
+ page . data [ 'redirect_to' ] = "https://github.com/magento/magento2-functional-testing-framework/blob/2.x-develop/#{ page . path . delete_prefix ( 'mftf/v2/' ) } "
29
+ end
30
+ end
Original file line number Diff line number Diff line change 2
2
layout : full-width
3
3
title : Page Not Found
4
4
permalink : /404.html
5
+ redirect_to : https://developer.adobe.com/commerce/docs/
5
6
---
6
7
7
8
## Sorry!
You can’t perform that action at this time.
0 commit comments