File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -300,3 +300,6 @@ wheelhouse
300
300
docs /.cache /
301
301
docs /public
302
302
node_modules
303
+ api /
304
+ site /
305
+ ! 404.html
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+
4
+ < head >
5
+ < meta charset ="UTF-8 ">
6
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
7
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
8
+ < script >
9
+ const websitePath = window . location . pathname ;
10
+ const versionRegex = / ( \w .+ ) \/ ( l a t e s t | ( [ 0 - 9 ] + ) \. ( [ 0 - 9 ] + ) \. ( [ 0 - 9 ] + ) (?: - ( [ 0 - 9 A - Z a - z - ] + (?: \. [ 0 - 9 A - Z a - z - ] + ) * ) ) ? (?: \+ [ 0 - 9 A - Z a - z - ] + ) ? ) / ;
11
+
12
+ if ( websitePath . search ( versionRegex ) === - 1 ) {
13
+ let projectName = "aws-lambda-powertools-python"
14
+ // redirect old links to latest version alias
15
+ window . location = websitePath . replace ( projectName , `${ projectName } /latest` )
16
+ }
17
+ </ script >
18
+ </ head >
19
+
20
+ </ html >
You can’t perform that action at this time.
0 commit comments