Commit graph

237 commits

Author SHA1 Message Date
c21e82d77d Fix dependency tree
Depend on ryo.rb, nanoc-gunzip.rb, and nanoc-webpack.rb via git.
2022-12-24 11:19:37 -03:00
ce7606b62c The theme image is now a link that goes to / 2022-12-07 14:25:27 -03:00
b7d6c9262e Rules: add a more precise compilation rule 2022-11-28 00:33:23 -03:00
aca7450b81 src/css: remove unneccessary styles. 2022-11-28 00:33:23 -03:00
2938148148 add 'env:verify-production-branch' task
fix #35
2022-11-28 00:30:35 -03:00
45a39b6d25 src/css: assign meaningful class names to "span:first-child" 2022-11-20 06:31:00 -03:00
eadc482e07 swap css variable with scss variable. 2022-11-20 06:31:00 -03:00
dfd6d2bdb4 src/css/: add improvements 2022-11-20 06:31:00 -03:00
c8b241ee6f fix: shell out to call rake task >1 time.
Rake::Task[".."].invoke disables the task after it has been invoked.
2022-11-20 06:20:10 -03:00
b8380f4717 Gemfile: update. 2022-11-20 04:41:28 -03:00
de1440b1d8 add 'rake watch' tasks
Add two 'rake watch' tasks:

- 'rake watch:server'
Watch for changes using the Ruby web server.

- 'rake watch:deploy:local'
Watch for changes using a local web server (eg nginx).

Fix #24
2022-11-20 04:41:28 -03:00
955e0ef1e2 depend on version of nanoc-webpack.rb that supports dep tracking.
Related #24
2022-11-20 00:37:06 -03:00
8dc3b4d9dd add "title" to redirect-to-random-surah.html.erb page. 2022-11-19 19:28:10 -03:00
8b01a5f575 redirect from index.html with one redirect rather than two.
Fix #41
2022-11-19 19:28:10 -03:00
2bd63c2524 readme: update. 2022-11-19 18:48:28 -03:00
bcddb88eb6 readme: update 2022-11-19 18:46:28 -03:00
5b122edaf1 readme: update. 2022-11-19 18:45:06 -03:00
dc1717465f README: add "Authors" section. 2022-11-19 18:35:25 -03:00
96baf1ff40 actions: add "build" step, add "prepare-env" action. 2022-11-19 18:31:52 -03:00
36a8ad84fd Gemfile: update nanoc-webpack.rb 2022-11-18 23:48:57 -03:00
816ea05288 filters/: add nanoc-webpack.rb
Replace lib/filters/webpack.rb with
[nanoc-webpack.rb](https://github.com/0x1eef/nanoc-webpack.rb)
2022-11-18 22:27:54 -03:00
889651cee4 Rules: remove unneccessary "exe" option 2022-11-18 17:09:32 -03:00
616f5d6073 add "WebPackage"
The "WebPackage" object allows for scripts, stylesheets, fonts, images
and other webpage assets to be downloaded for the page's primary content
to use afterwards.
2022-11-18 17:09:32 -03:00
9971ea3616 filters/webpack: exit with exit status of webpack (on failure) 2022-11-18 00:44:38 -03:00
fb3883412f filters/webpack: reduce complexity. 2022-11-18 00:41:28 -03:00
dc1b2bf56e filters/webpack: remove 'extname' method. 2022-11-18 00:41:28 -03:00
b7410acc07 filters/webpack: remove "exe" option.
Fix #37
2022-11-18 00:41:28 -03:00
516cbc5594 Rules: compress surah.json for surahs greater than 10KB in size
This change will compress surah.json for surahs that are greater than
10KB in size.
2022-11-12 15:28:20 -03:00
a2c9e774af replace lib/filters/gzip.rb with nanoc-gunzip.rb 2022-11-12 14:15:06 -03:00
be79f36d2d update "package-lock.json" 2022-11-11 16:09:33 -03:00
Gyen Abubakar
eb724a14b4 redirect to Al-Kahf if today's Friday 2022-11-11 16:09:33 -03:00
Gyen Abubakar
5e2ab86e22 eslint & prettier setup 2022-11-11 16:09:33 -03:00
7c42805787 lib/filters/gzip.rb: compress fonts, images, and javascript 2022-11-11 07:47:57 -03:00
a0600fb49e deploy: minify JS assets on production 2022-11-10 19:03:51 -03:00
7c58d7c82e Rakefile: add "nanoc:clean" task 2022-11-08 07:52:05 -03:00
172f25bd62 src/: add src/js/lib/locales.ts 2022-11-08 07:41:43 -03:00
73fba8cf00 src/: set html "lang" attribute 2022-11-08 06:12:32 -03:00
cdd4ce61ed src/: replace location.href = '...' with location.replace('...') 2022-11-08 05:59:45 -03:00
94ec17940b src/css/: 'ltr' on select
we only have english theme names (for now) - rtl doesn't make sense.
2022-11-06 07:16:52 -03:00
92ad7af99b src/: s/leaf/moon/ 2022-11-06 07:13:00 -03:00
0254d444e9 src/: allow locale-specific styles 2022-11-06 07:11:27 -03:00
37a3706b04 eslint: fix 2022-11-06 06:57:36 -03:00
296aa9a165 src/: add src/js/pages/redirect-to-surah-slug.ts 2022-11-06 06:55:13 -03:00
e31fac44bb src/: add src/js/pages/redirect-to-random-surah.ts 2022-11-06 06:55:13 -03:00
520c141d56 rename src/html/ files
* `src/html/surah.html.erb` -> `src/html/TheSurahPage.html.erb`
* `src/html/random_redirect.html` -> `src/html/redirect-to-random-surah.html`
* `src/html/slug_redirect.html.erb` -> `src/html/redirect-to-surah-slug.html.erb`
2022-11-06 06:53:30 -03:00
2b5da497d0 Gemfile: update ryo.rb 2022-11-05 23:55:44 -03:00
817b1305ac Rules: update 2022-11-05 21:46:23 -03:00
c99982cb86 fix redirect in slug_redirect.html.erb 2022-11-05 21:46:23 -03:00
2926183932 move html & erb files to src/html/ 2022-11-05 21:46:23 -03:00
d00b8277a3 redirect from /<locale>/<surah-id>/ to /<locale>/<surah-slug>/
This change will trigger redirects from - for example, "/en/1/"
to "/en/al-fatihah".
2022-11-05 19:49:11 -03:00