This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree 3 files changed +30
-1
lines changed
3 files changed +30
-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 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 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