Commit Graph

18 Commits

Author SHA1 Message Date
George 8fe4bee5e6
Remove lsi command (#2428)
Removed lsi command from code since it was added to _config.yml

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-05-17 14:19:02 -03:00
Amir Pourmand c0bc95c5d9
Add Reload to Docker (Automatic Reload of Changes to _config.yaml) (#1702)
- #1640
2023-10-07 10:03:58 +03:30
George 64cf57fab3
Added support to PurgeCSS (#1562)
Tackled #1329 with [PurgeCSS](https://purgecss.com/).

Being talking with @varuniyer about using
[jekyll-uncss](https://github.com/episource/jekyll-uncss) to reduce css
file sizes by ditching unused classes. This approach have 3 main
problems:

1 - have some limitations as pointed
[here](https://github.com/alshedivat/al-folio/issues/1329#issuecomment-1546517327)
2 - last update to
[jekyll-uncss](https://github.com/episource/jekyll-uncss) was about 3
years ago, so it might have a few issues
3 - [uncss](https://github.com/uncss/uncss) haven't seem a new release
in a while, currently [lacking
maintenance](https://github.com/uncss/uncss/issues/459), and using some
deprecated libraries as seem here:

```
npm install -g uncss
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
```

I thought about giving PurgeCSS a go, since it has been more [actively
maintaned](https://github.com/FullHuman/purgecss), but
[jekyll-purgecss](https://github.com/mhanberg/jekyll-purgecss) haven't.

For this, I needed to change to use some local libraries instead of
getting them via CDN. The good news is that it is quite effective in
reducing css file sizes. Comparing dir sizes with `du -hs
_site/assets/css/`:

| current | minify | PurgeCSS | PurgeCSS + minify |
| ------- | ------ | -------- | ----------------- |
| 1,1M    | 988K   | 456K     | 420K              |

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-09-28 14:22:42 -03:00
George 8ccc284008
Added related posts section (#1168) 2023-02-19 21:26:48 -05:00
Rohan Deb Sarkar df70bfe57c
fix deploy script for `--user` (#994)
Fixes #820.

Explanation:
https://github.com/alshedivat/al-folio/discussions/969#discussioncomment-4180959
2022-11-20 01:15:42 +05:30
Amir Pourmand 7172df0877
Add Docker-compose file for windows compatibility (#875)
This file makes it easier for windows users to use docker. (Closes #829)

Previous to this commit, those who used Windows had to install Ubuntu
inside windows (via WSL) and run our commands. Now they can run it by
just typing `docker-compose up`.

> The main problem was that `./bin/dockerhub_run.sh` command was written
with `Bash` in mind and you had to change it a little bit to make it
compatible with windows `Powershell`. We shouldn't have two scripts.
This is why adding a `docker-compose.yml` file is necessary.
2022-10-31 11:27:43 -04:00
Amir Pourmand 0e9d3a44f9
Add Dockerfile for easy installation on local machine (#532) 2022-07-10 00:19:05 -04:00
Rohan Deb Sarkar 6b61236d37
Adds support for bypassing GitHub Pages Jekyll processing (#738) 2022-07-02 07:07:54 +05:30
Rohan Deb Sarkar 503bfc235a
Add `jekyll-minifier` (#668)
* Remove obsolete plugins

* Add `jekyll-minifier`

* Add `JEKYLL_ENV=production`
2022-05-12 14:46:01 -04:00
Lorenzo Pacchiardi e2353bcc8f
Check for local untracked files when deploying (#168)
* Check for local untracked files when deploying

* Compress test for untracked files to 1 line

Co-authored-by: Maruan <alshedivat@users.noreply.github.com>

* Add vendor to .gitignore

* Add .bundle to .gitignore

Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
2021-01-05 10:04:18 -05:00
Christoph Junghans c4be6f8457
social: add work url (#171)
* social: add work url

* Deploy: --dry-run -> --no-push
2021-01-05 09:37:57 -05:00
Christoph Junghans 625fb694d6
Github action: add deploy workflow (#163)
* Github action: add deploy workflow

* Update .github/workflows/deploy.yml

Co-authored-by: Maruan <alshedivat@users.noreply.github.com>
2021-01-04 20:09:20 -05:00
Sahir Bhatnagar 9cbed31f10 Do not delete CNAME when moving _site files to deploy branch (#25)
The step in the deploy script that deletes almost all files except for _site/ was causing issues if you have a custom domain name. GitHub pages requires a CNAME, so I added this to the list of files not to delete.
2018-08-23 23:35:02 -04:00
Maruan 0676c85b6e
Add Travis CI (#21)
* Add Travis CI

* Add build status badge
2018-06-19 10:05:48 -04:00
Maruan Al-Shedivat 43df930fba Ensure everything is committed before deploying 2017-09-26 10:16:08 -04:00
Maruan Al-Shedivat a47b1acd21 Improve deploy script (addresses #6) 2017-09-08 12:51:25 -04:00
Maruan Al-Shedivat 7c258e74f5 Make deploy script use bunlder 2017-07-01 09:24:04 -07:00
Maruan Al-Shedivat efb2489b07 Fix baseurl. Add gh-pages deployment script. 2016-07-05 04:50:43 -04:00