2023-03-10 09:49:48 +01:00
|
|
|
#!/usr/bin/env ruby
|
2023-03-11 18:31:44 +01:00
|
|
|
# frozen_string_literal: true
|
2024-05-04 02:28:26 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Contains rules for a redirect from the root path
|
2024-05-02 16:29:46 +02:00
|
|
|
# to the surah index for a given locale (eg / -> /en/)
|
2023-03-10 09:49:48 +01:00
|
|
|
|
2024-05-15 05:20:40 +02:00
|
|
|
compile "/html/main/redirect.html.erb" do
|
2024-08-13 00:11:28 +02:00
|
|
|
filter(:erb, locals: {context: Ryo(locale: "en"), locales:})
|
2024-06-16 05:04:09 +02:00
|
|
|
filter(:tidy, exe: tidy)
|
2023-03-10 09:49:48 +01:00
|
|
|
write("/index.html")
|
|
|
|
end
|
|
|
|
|
2024-03-16 09:35:58 +01:00
|
|
|
compile "/js/main/redirect.ts" do
|
2024-06-16 05:04:09 +02:00
|
|
|
filter(:webpack, depend_on: ["/js/lib/"])
|
2024-03-16 09:35:58 +01:00
|
|
|
write("/js/main/redirect.js")
|
2024-06-09 06:02:08 +02:00
|
|
|
filter(:gzip)
|
|
|
|
write("/js/main/redirect.js.gz")
|
2023-03-10 09:49:48 +01:00
|
|
|
end
|