Commit graph

71 commits

Author SHA1 Message Date
76c131f2a7 Chomp path to tidy 2024-06-14 23:32:55 -03:00
0e7f223fe0 Try fix CI 2024-06-14 23:31:39 -03:00
3b6fe3592a Update nanoc-webpack.rb 2024-06-14 17:12:39 -03:00
c8018ff7f0 Determine Timer.tsx duration from MP3, otherwise default on fallback
This change repurposes /json/durations/alafasy/<id>.json as
/json/durations/<id>.json. A file from /json/durations/ is
used by Timer.tsx when sound is disabled. Otherwise the
duration is taken from an MP3.

This change facilitates changing the recitation author
without needing to provide a JSON file that described the
duration of each MP3.
2024-06-07 15:10:57 -03:00
4b041571f3 Update {random,surah-index,surah-stream}.html.erb
Add dir attribute
2024-05-29 03:14:35 -03:00
e1249e7b81 Add Farsi support
This change is a big one. It adds Farsi support,
which by itself is significant. In the process of
adding Farsi support other significant improvements
were made:

* Select.tsx component
* TLocale (Quran/index.ts)
* ...
2024-05-19 16:51:37 -03:00
eeaf48bca8 Add canonical and alternate link tags to all 'main' pages 2024-05-15 00:59:40 -03:00
2e6952eacc Add SurahStream/ 2024-05-14 16:07:57 -03:00
f06432b2ae Update nanoc/rules/ 2024-05-02 11:29:46 -03:00
4f282e12f2 Fix format offenses 2024-05-02 10:46:40 -03:00
0a2c75ecb3 Update Rules 2024-05-02 10:26:25 -03:00
4824d3cada Add nanoc/ruledsl/require_rules.rb 2024-05-02 10:14:04 -03:00
c4593eac90 Add nanoc/ruledsl/filter.rb 2024-05-02 10:08:15 -03:00
6bec11a547 Add static JSON to .js files rather than .html files 2024-04-30 22:46:48 -03:00
0c05e5344c Move postman.scss to /css/vendor/postman.scss 2024-04-30 00:28:52 -03:00
ddad2d5687 Update Rules 2024-04-29 10:40:00 -03:00
e740bad260 Add esbuild-loader, upgrade nanoc-webpack.rb 2024-04-25 20:36:34 -03:00
05ac909e80 Replace slugs.json with nameById.json 2024-03-16 21:31:06 -03:00
c95da7197c Move top-level json files in src/ to src/json/ 2024-03-15 15:06:16 -03:00
b99f104464 Set -upper => true (tidy-html5) 2024-02-25 13:04:45 -03:00
1f6f039ba3 Add per-env webpack configuration files 2024-02-18 09:26:04 -03:00
74eae72495 Replace filters/tidy.rb with nanoc-tidy.rb (rubygem) 2023-11-07 01:59:45 -03:00
c8613cf304 Minify recitations.json 2023-10-14 09:21:39 -03:00
1d641e7c71 Re-organize project files
Attempt to simplify the layout of project files.
2023-10-08 06:31:29 -03:00
a2fc33bb7c Remove redirect from /en/1/ to /en/al-fatihah/
Rather than redirect /en/1/ to /en/al-fatihah/, render the surah
stream instead. A canonical `link` tag is included for the benefit
of search engines to differentiate between duplicates.

Preference is given to /en/al-fatihah/ over /en/1/.
2023-10-06 00:06:25 -03:00
edf7fdbd92 Minify reciters.json 2023-07-21 12:30:47 -03:00
23d1eeca2b Add robots.txt 2023-07-17 16:48:12 -03:00
d62c12060e Move "rules/" to "nanoc/rules/". 2023-07-17 07:19:43 -03:00
bd000760ea webpackage.scss -> postman.scss 2023-07-11 20:14:58 -03:00
5748101c9a Migrate to nanoc-gzip 2023-06-29 19:49:42 -03:00
919af86a65 rubocop'ing 2023-03-12 16:50:19 -03:00
468613e193 Rename "surah_id_to_name" to "slugs"
Fix #106
2023-03-12 16:46:11 -03:00
5f957af84c Set document title at compile time
This change will hopefully make it easier for search engines to
pick up a page's title.
2023-03-12 11:23:48 -03:00
3f3032dfcb Add canonical link tag to id_redirect.html.erb 2023-03-11 16:04:21 -03:00
1ab56c61bf Add src/sitemap.xml.erb 2023-03-11 16:04:21 -03:00
07812ffdaa Add "inline_css" helper method 2023-03-11 10:45:12 -03:00
145d5a4399 Run rubocop -A 2023-03-11 09:31:37 -03:00
3bbe8cf165 Inline surahs.json, slugs.json, and i18n.json 2023-03-11 09:27:31 -03:00
914c918eaa Add a simpler, more organized i18n.ts implementation 2023-03-11 08:35:49 -03:00
9fef5122eb Add surah/id_redirect 2023-03-10 07:48:47 -03:00
2dfadcb937 Add surah/random 2023-03-10 07:39:03 -03:00
20b7420ac9 Replace TheSurahPage with surah/stream 2023-03-10 06:47:35 -03:00
eac53f8da1 Add surah/redirect 2023-03-10 06:13:49 -03:00
d8b63e4fd0 Replace TheSurahIndex with surah/index 2023-03-10 06:13:49 -03:00
0073c76fbb Add TheSurahIndex.tsx
TheSurahIndex.tsx provides a list of surahs (aka chapters) from
The Quran. Fix #2.
2023-03-06 17:30:38 -03:00
29bc167fa0 Split 'Rules' file across multiple files
This change will hopefuly make it easier  to scale the Rules file
over time. Rather than having one file with all rules, there are
multiple files that are categorized.

Ref #2
2023-03-01 22:04:50 -03:00
78a0146cf9 Generalize the CSS 2023-02-28 05:03:09 -03:00
25e5703e1a Add random redirect from the paths /en, and /ar
When the theme logo is clicked, the user will be redirected
to a random surah and the current active language will remain
the same.
2023-01-09 05:15:18 -03:00
2c81c044f6 Upgrade to nanoc-webpack.rb v0.1.5 2023-01-08 06:23:05 -03:00
5c8247aedb Add lib/slice.ts 2023-01-05 19:31:32 -03:00