Commit Graph

709 Commits

Author SHA1 Message Date
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 392720066e
Added diff tools to INSTALL.md 2024-01-22 12:37:25 -03:00
George 65c5c8a056
Added acknowledge section to feature_request.md 2024-01-22 11:11:48 -03:00
Jona Ruthardt 30f7ab0f11
Added one more researcher using al-folio (#2105)
Added my own website as a star to the "Academics" section
2024-01-21 13:43:13 -03:00
George 711af76a08
Fixed dark mode not working after purgecss 2024-01-20 13:52:33 -03:00
Amir Pourmand 7c617d8076
Update INSTALL.md (#2091)
- #2090
2024-01-19 20:41:43 +03:30
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
Afrânio Melo 1d4a8c742b
Adding star (#2095)
Thank you all!!!
2024-01-18 13:17:20 -03:00
George 8d8298a945
Update INSTALL.md version of al-folio 2024-01-16 20:04:04 -03:00
George a843b3c6fe
Updated toc on README.md 2024-01-16 18:37:08 -03:00
George 3aa31333b1
Added star history to README.md 2024-01-16 18:33:02 -03:00
George c5190617ea
Update contributing on README.md 2024-01-16 18:28:11 -03:00
George cfe13d6a43
Added missing separator in README 2024-01-16 18:07:26 -03:00
George f669b23136
Fixed role main in default.liquid 2024-01-15 17:40:33 -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
Yifan Jiang 0a737aa022
Fix custom blockquotes (#2071)
Fixed issue #2066. Removed `>` in front of `{: .block-tip }` which was
introduced by prettier in the example post.
2024-01-15 01:55:46 -05:00
George 5459ef19b8
Changed file paths in bug_report.md 2024-01-11 15:28:47 -03:00
George cc83a127c4
Fixed FAQ link in CONTRIBUTING.md 2024-01-11 15:08:18 -03:00
George 1a205362f1
Fixed missing changes to liquid file 2024-01-11 00:13:36 -03:00
Sam B 568e9cc8ba
Added additional user to README.md (#2063)
Added new user to academics section in readme. 

Thank you for this great resource!
2024-01-10 22:47:05 -03:00
Sam B aabe1e5aa6
Fixed small typo (#2064)
instalation -> installation

Thank you for this resource!
2024-01-10 22:44:32 -03:00
Maruan 982a5fe114
Update .git-blame-ignore-revs 2024-01-10 11:24:39 -05:00
George 2d34024961
Fix prettier (#2062)
Changed rule to minified files, reverted changes to minified files

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-10 11:21:58 -03:00
Maruan 7c279b159d
Move news and 404 to pages (#2060)
moves news and 404 from repo root dir to `_pages/` where they are
supposed to be + changes their extensions to `.md`
2024-01-10 01:59:59 -05:00
Maruan Al-Shedivat 7e8ca8f191 Add .git-blame-ignore-revs 2024-01-10 00:13:23 -05: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
George 60a09ed25c
Normalizing coauthor names before search (#2057)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-09 14:13:33 -03:00
George 4ea7f5ba57
Add direct link to `use this template` 2024-01-09 13:18:40 -03:00
George e3997d0f6c
Added citation examples, simplified citation code (#2056)
Since the citation file and other stuff is already defined in
`_config.yml`, removed them when calling `{% bibliography %}`. Also
realized that `jekyll-scholar` helps in displaying only the papers cited
in page, changed to use that.

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-08 14:35:42 -03:00
George feb9c9e677
Removed background from template example 2024-01-03 21:11:00 -03:00
George 7b0ca12a78
Added information about using wsl on Windows (#2040)
Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-01-02 22:51:42 -03:00
George 4a55cd1bd1
Upgrading the README file (#2034)
I decided to break the README file into different ones to declutter it
from the main page. Also adding some more explanation on the structure
of the template. Tackling #2032 and #2033

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2024-01-02 22:30:48 -03:00
George 92ac10ad82
Changed mermaid support in template (#1992)
Fix #1609

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
Co-authored-by: Maruan Al-Shedivat <maruan@genesistherapeutics.ai>
2024-01-02 18:35:57 -03:00
George 86ada06e4b
Changed trophies layout to better suit different screen sizes (#2038)
Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-01-02 14:07:04 -03:00
Noah West da5065fffc
Remove imagemagick strip (#2028)
I had added -strip arg to the imagemagick call as it is generally
desirable to strip metadata from images before publishing them, however
it seems to occasionally cause issues with jekyll-imagemagick
auto-regeneration, regenerating images even when they have not changed.
2023-12-30 16:45:53 -05:00
WEI EN TSAI f05fb7bc58
fix live-reloading in docker (#2022)
Fix #2021 : The webpage hosted by docker would not be automatically
reloaded because the port used for live-reloading (port 35729) is not
forwarded.
2023-12-29 02:43:26 +03:30
Noah West fb294e3348
Responsive image fix (#2014)
Fixes #1967 

Update the way responsive images are used to only use one srcset, and
add corresponding `sizes` attribute to the relevant layouts and
templates.
I did not go through and add `sizes` to all the example posts/projects.
When `sizes` is not specified by the user, the `figure.html` template
defaults to 95% the width of the viewport which should work fine for
most cases; users can optimize further if they wish by feeding `sizes`
into the template.

Additionally:
 - Enabled support for .gif to .webp compression
- fix error in jekyll-imagemagick config where all images were resized
to be 800px or less. (for example img-1400.webp was actually only 800px
wide, etc.)
- added note about making sure imagemagick is installed before enabling
it in responsive images section of `_config.yml`
2023-12-26 13:00:38 -05:00
Alireza Dehghanzadeh 70d9ca94e1
bring back `repo_id` and `category_id` in `giscus` section (#1892)
After deploying my website (Cloudflare Pages), my Giscus did not work, I
realized these two paramesters are removed. After adding them again, my
Giscus worked correctly.
These new values are values from previous commits of original repository

---------

Co-authored-by: Maruan Al-Shedivat <maruan@genesistherapeutics.ai>
2023-12-25 15:43:53 -03:00
Fares Abawi 45bb74eb43
Added video button to bib entries (#2008)
When the video entry is added to bib:

e.g.,

```
{
...
video={https://www.youtube.com/embed/jNQXAC9IVRw}
...
}
```
A dedicated button appears for videos. When clicked, a playable video
appears under the research article (like abstracts and bibtex)
2023-12-25 14:50:37 -03:00
George 0795059a4b
Now blog can be reorganized in header (#1996)
Fixes #1559 #1795

Signed-off-by: George Araújo <george.gcac@gmail.com>
2023-12-25 14:41:27 -03:00
Dinesh Natesan 6119d0657c
added ability to switch off pagination on the blog page (#1909) 2023-12-24 21:46:14 -05:00
Tianmaru a1a9250b93
check for active children in submenus (#1869)
This patch checks, if the title of the current page matches with the
title of a submenu child. If so, it sets the submenu and the
corresponding child as active, highlighting it in the header.
2023-12-24 20:01:38 -05:00