Commit Graph

64 Commits

Author SHA1 Message Date
George 18f7307e07
Fixed axe workflow (#2149)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-30 15:16:15 -03:00
George 533798410e
Removing lighthouse_results from broken-links trigger 2024-01-28 20:02:15 -03:00
George 2356aea6e4
Removing lighthouse results from deploy trigger 2024-01-28 20:01:44 -03:00
George 1935a2ace0
Avoid deploying site when changes are in README files 2024-01-28 19:35:52 -03:00
George 2492ab389b
Workflow fix (#2136)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-27 22:58:40 -03:00
George 7638547a49
Updated checkout step in lighthouse-badger.yml 2024-01-23 13:08:48 -03:00
George 0c082372ba
Fixed urls in 1_bug_report.yml 2024-01-23 12:54:41 -03:00
George c99a453a87
Fixed urls in 2_feature_request.yml 2024-01-23 12:54:29 -03:00
George 7d861cbd52
Fixed url in config.yml 2024-01-23 12:54:14 -03:00
George fc2386014a
Updated links in issue template config.yml 2024-01-23 12:49:16 -03:00
George 6fcc28332c
Updated links in 2_feature_request.yml 2024-01-23 12:48:52 -03:00
George 2fa8141f22
Updated links in 1_bug_report.yml 2024-01-23 12:48:15 -03:00
George b0b19a1293
Removed 0 from bug report 2024-01-23 12:12:16 -03:00
George ec9571a8c1
Improved issues templates (#2110)
Since a lot of issues opened are just questions that should be opened as
so, and sometimes the issue template is just not followed, I decided to
make opening new issues a little more "enforced", if not clear.

I based the new templates on the ones from [pytorch
lightning](https://github.com/Lightning-AI/pytorch-lightning/issues/new/choose),
which I think are pretty good. The visuals will only appear after the
merge is processed, but you can have an idea of how it will look like by
checking their templates and how they look.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-23 12:10:03 -03:00
George b83a0e38c4
Added Lighthouse test GitHub action (#2084)
Added support for Lighthouse test as a GitHub action, and it appears
like
[this](https://github.com/george-gca/multi-language-al-folio?tab=readme-ov-file#lighthouse-pagespeed-insights).
The only thing missing is for @alshedivat to create a [repository
secret](https://github.com/MyActionWay/lighthouse-badger-workflows#lighthouse-badger-easyyml)
named `LIGHTHOUSE_BADGER_TOKEN` with the information needed.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-23 10:35:13 -03:00
George db0a92b8d4
Moved prettier comment on PR to its own action (#2114)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-22 18:01:55 -03:00
George bbaae0afa9
Fixed prettier actions (#2113)
After some thorough testing, finally made prettier on PR work. Since an
html file can't be used as comment on GitHub, changed to simply point to
the action that failed and to the file containing the html diff.

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-22 17:45:34 -03:00
George 27d2fa093d
Changed how prettier comments on PR works (#2112)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-22 14:49:34 -03:00
George 7ed8f49e72
Update prettier-on-pr.yml permissions 2024-01-22 13:40:33 -03:00
George 8af6b73fd6
Prettier check now generates a diff comment on PR (#2085)
Splitted prettier GitHub action into two:
- `on push`, only runs on direct pushes, if test fails generates an
artifact (that lasts for 3 days) with an html version of the changes
needed to pass prettier test
- `on PR`, only runs on PRs, if test fails comments on the PR with the
HTML content of the diff

I couldn't actually test the `on PR` version since it needs to be on a
PR in the master branch, so this will only be triggered after this PR is
accepted, and for the next PR that fails prettier test.

PS: currently the artifact is a zip file with the html inside. It is not
currently possible to generate it other way, we have to wait for [this
issue](https://github.com/actions/upload-artifact/issues/14) to be
closed.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-22 13:30:24 -03:00
George 65c5c8a056
Added acknowledge section to feature_request.md 2024-01-22 11:11:48 -03:00
George 67000003fa
Downgrade ruby version (#2098)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-19 11:45:19 -03:00
George 04f7b041a1
Changed conditions of running GitHub actions (#2082)
The GitHub actions were running everytime a new commit was made to the
repo, but that wasn't needed. For example, we don't need to try to
create a new docker image if the libraries didn't change, same to build
the whole site after a change in the README.md.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-19 11:11:18 -03:00
George 1775a9a99d
Axe accessibility test support (#2080)
Added GitHub action to do axe accessibility tests with [axe
cli](https://github.com/dequelabs/axe-core-npm/tree/develop/packages/cli).
I believe it is best by default to let this be run only manually, since
fixing some of the issues are not straightforward (I haven't fixed them
all for this template yet).

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-15 16:38:31 -03:00
George 30f3c14465
Link checks on deploy (#2079)
Added another GitHub action to check for broken local links on version
of the site that will be deployed.

The `broken-links` action check for broken links considering
documentation files (like INSTALLING.md) and also pages like
[_pages/about.md](https://github.com/alshedivat/al-folio/blob/master/_pages/about.md),
but it can't check for broken links when the link will be handled by
jekyll tags (like in
[_pages/blog.md](https://github.com/alshedivat/al-folio/blob/master/_pages/blog.md).

With `broken-links-site` we can check if all the links that will be used
on the final site that refer to local files are correct. Focusing only
on local files since this would end up calling too many checks for
library files, like
`https://unpkg.com/bootstrap-table@1.22.1/dist/bootstrap-table.min.css`.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-15 16:38:06 -03:00
George 71f054c82e
Fix broken links (#2077)
Added GitHub action to check for broken links in repo before commit,
ignoring files with liquid tags since these were not yet processed and
also README since some sites created from this template doesn't have
valid urls anymore. Fixed some broken links in repo.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-15 11:09:45 -03:00
George 5459ef19b8
Changed file paths in bug_report.md 2024-01-11 15:28:47 -03:00
Maruan beb6f27d59
format code with prettier.io (#2048)
summary:
- adds prettier formatter configuration
- formats the entire repo using prettier, ignoring minified files
(`*.min.css`) and heavy generated html
- changes extensions of all `.html` files to `.liquid`, which is more
correct and necessary for prettier to work correctly
- replaces "%-" and "-%" with just "%" — manual liquid formatting using
minus signs is superfluous since we are compressing and minifying the
code anyway
- adds CI action for running prettier check on PR and pushes to master
2024-01-10 00:10:51 -05:00
Amir Pourmand 3ebb90f696
Add DockerSlim (#1699) 2023-10-07 12:18:56 +03:30
Maruan 8893d483bc
Update giscus setup via github action (#1792)
giscus settings in `_config.yml` had al-folio repo specified by default.
many users kept these defaults in their own repos, which resulted in
getting comments from blog posts of different users posted to al-folio
discussions. this is undesirable, since users lose control over the
discussions in their blogs.

this PR solves the issue:
- first, we set `giscus.repo` to blank in `_config.yml`. if the field is
kept blank, when the website is built locally, the user will see a
warning saying that giscus comments are misconfigured.
- second, we add a step to the `deploy` workflow that writes repository
name to `giscus.repo` in `_config.yml`. that way, even if `giscus.repo`
field is left black or set to an incorrect repo, it gets correctly
populated at deployment time.

other small changes in this PR are small stylistic adjustments.
2023-10-04 22:27:36 -04:00
Maruan c8d28df4bc
Create .github/release.yml
Adds a template for automatic generation of release notes
2023-10-01 21:42:43 -04:00
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
Amir Pourmand b2989ea76a
Update Tag Deploys to Support M1 Macbooks (#1522)
I should merge this whenever normal deploy is well-tested for Mac
computers.
2023-07-19 09:13:46 +03:30
George ab2f72baaa
Added support for jupyter notebooks #417 (#1511)
Implemented #417.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
Co-authored-by: Amir Pourmand <pourmand1376@gmail.com>
2023-07-05 12:43:59 -03:00
George 567b731de6
Revert "Created GitHub action to update site pagespeed svg" (#1530)
Reverts alshedivat/al-folio#1529
2023-07-02 19:43:19 -03:00
George e1b93cff0a
Created GitHub action to update site pagespeed svg (#1529)
Addresses #1524

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-07-02 19:18:17 -03:00
Amir Pourmand 4bbf13bf5b
Update Docker Images to support M1 Mac (#1486)
I added multi-architecture support for docker images. 

- #1469 

ToDo: 
- [ ] Update deploy tag file accrodingly
2023-06-29 23:02:28 -07:00
Juan Carlos Niebles 6eebb65632
fixes #1497 (#1505) 2023-06-24 14:44:23 -03:00
ebohnenb 2f58bb909a
Update ruby to 3.2.2 in deploy.yml (#1459) 2023-06-10 21:18:47 -04:00
Maruan 6b3b92ca06
update readme + remove sponsorship info (#1274)
majority of the recent improvements to al-folio have been truly driven
by a growing community of fans and contributors. this template has
gradually transformed from a low-key weekend project into a "public
good" of some sort used by thousands of people, university labs and
classes, and academic conference and workshops. as such, having personal
sponsorship info from the repository is no longer relevant.

as the community grows a bit further, we may have to think about
establishing some kind of governance around decisions of how al-folio is
supposed to evolve, which features to prioritize, and how to reward
contributors for their hard work. for now, these decisions will be made
by the project maintainers (active contributors are welcome to join the
team). and I'm all ears for proposals and suggestions!
2023-03-19 18:42:53 -04:00
Scott Lee Chua 2f49d07dc3 Replace bin/deploy with GitHub Action (#1234)
This PR updates `deploy.yml` to use the GitHub Action [Deploy to GitHub Pages](https://github.com/marketplace/actions/deploy-to-github-pages).
2023-03-19 06:43:32 -04:00
Alireza Dehghanzadeh e2966c4114
New update to GH Actions: Deprecating `save-state` and `set-output` commands (#986)
Hi there

First of all, thanks for this amazing complete theme

Due to this warning which has been recently showed by Github,
`::set-output` will be deprecated and must be replaced with a new method


![image](https://user-images.githubusercontent.com/86428901/201933020-4a53d735-08b4-41d3-b38c-e16942fdd64e.png)

topic: [GitHub Actions: Deprecating save-state and set-output
commands](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/)

Thanks
2022-11-15 19:30:22 +05:30
Amir Pourmand 99b14c436f
Add Tags for Docker Images (#754) 2022-07-17 20:32:44 -04:00
Amir Pourmand b6ea0d01ff
Skip Docker Image on Forked Images (#767) 2022-07-17 20:11:27 -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 9d7180417e
Better bundler caching for GitHub Actions (#750)
* Better caching for GitHub Actions

* Update `actions/checkout` to `v3`
2022-07-09 18:08:11 +05:30
Rohan Deb Sarkar e40bc98f47
Delete `travis.yml` (#665) 2022-05-12 13:40:21 -04:00
Maruan f7dd7f61c6
Call bash on bin/deploy in github actions (#625) 2022-04-03 12:55:12 -04:00
José M. Requena Plens 696894549b
Update deploy.yml (#436)
‘action’ is deprecated, change to ‘ruby’
https://github.com/ruby/setup-ruby
2021-10-29 21:31:46 -04:00
Maruan cd4b382799
Add jekyll-diagrams (#333)
* Add mermaid support via jekyll-diagrams

* Add mermaid install to deploy workflow
2021-10-03 21:26:29 -04:00