File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -52,3 +52,6 @@ cp -r bin/redirects/LanguageGuide "$output"
52
52
cp -r bin/redirects/ReferenceManual " $output "
53
53
cp -r bin/redirects/RevisionHistory " $output "
54
54
cp -r bin/redirects/index.html " $output "
55
+
56
+ # Add a redirect page from swift.org/swift-book/documentation/.
57
+ cp -r bin/redirects/documentation/index.html " $output /documentation/"
Original file line number Diff line number Diff line change
1
+ < html >
2
+ < head >
3
+ < title > The Swift Programming Language: Redirect</ title >
4
+ < meta http-equiv ="refresh " content ="10; url=https://docs.swift.org/swift-book/documentation/the-swift-programming-language/ ">
5
+ < head >
6
+ < body >
7
+ < div >
8
+ This content has moved; redirecting to the
9
+ < a href ="https://docs.swift.org/swift-book/documentation/the-swift-programming-language/ " id ="redirect "> new location</ a > .
10
+ < noscript >
11
+ < aside >
12
+ This page requires JavaScript.
13
+ Please turn on JavaScript and refresh the page.
14
+ </ aside >
15
+ </ noscript >
16
+ </ div >
17
+ < script >
18
+ const baseURL = "https://docs.swift.org/swift-book/documentation/the-swift-programming-language/" ;
19
+
20
+ var newURL = baseURL ;
21
+
22
+ document . getElementById ( "redirect" ) . setAttribute ( "href" , newURL ) ;
23
+ window . location = newURL ;
24
+ </ script >
25
+ </ body >
26
+ </ html >
You can’t perform that action at this time.
0 commit comments