Update nanoc/rules/

This commit is contained in:
0x1eef 2024-05-03 21:28:26 -03:00
parent 1452119439
commit 7908b7f2a3
5 changed files with 16 additions and 5 deletions

View file

@ -1,6 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
# contains rules for images, fonts, etc
##
# Contains rules for images, fonts, etc
##
# fonts

View file

@ -1,6 +1,9 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
# contains rules for the surah index available at /<locale>/
##
# Contains rules for the surah index available
# at /<locale>/
locales.each do |locale|
compile "/html/index.html.erb", rep: "/#{locale}/surah/index" do

View file

@ -1,6 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
# contains rules for a redirect from /<locale>/random/ to a
##
# Contains rules for a redirect from /<locale>/random/ to a
# random surah (eg /en/random/ -> /en/al-kahf/)
locales.each do |locale|

View file

@ -1,6 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
# contains rules for a redirect from the root path
##
# Contains rules for a redirect from the root path
# to the surah index for a given locale (eg / -> /en/)
compile "/html/redirect.html.erb" do

View file

@ -1,6 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
# contains rules for the the surah stream available
##
# Contains rules for the the surah stream available
# at /<locale>/<name>/, /<locale>/<id>/
compile "/json/*/*/surah.json" do