generated from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
725 additions
and
3,478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Submission Validation and Preview | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch all branches and full history | ||
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config | ||
persist-credentials: false | ||
|
||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
with: | ||
prettier_options: --write **/*.{js,jsx,ts,tsx,css,scss,md,html,yaml,liquid,yml} | ||
only_changed: True | ||
# Set your custom token | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Checkout the code again to get the latest changes (with Prettier formatting) | ||
- name: Checkout updated code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Ensure full history is fetched | ||
|
||
- name: Install the latest version of uv with caching | ||
id: setup-uv | ||
uses: astral-sh/setup-uv@v1 | ||
with: | ||
enable-cache: true | ||
|
||
- name: Run validation script | ||
run: uv run scripts/submission_check.py ${{ github.event.pull_request.base.ref }} | ||
|
||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.2" | ||
bundler-cache: true | ||
|
||
- name: Install and Build 🔧 | ||
run: | | ||
pip3 install --upgrade jupyter | ||
export JEKYLL_ENV=production | ||
bundle exec jekyll build | ||
- name: Purge unused CSS 🧹 | ||
run: | | ||
npm install -g purgecss | ||
purgecss -c purgecss.config.js | ||
- name: Deploy to Submission Branch | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./_site | ||
destination_dir: submission | ||
|
||
- name: Install GitHub CLI | ||
run: sudo apt-get install gh | ||
|
||
- name: Post Preview Link to PR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
PREVIEW_URL=https://${{ github.repository_owner }}.github.io/${{ github.repository_id }}/submission/ | ||
COMMENT_BODY="Preview of your submission is available at: $PREVIEW_URL" | ||
# Fetch the existing comments on the pull request | ||
COMMENTS=$(gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments --jq '.[].body') | ||
# Check if a preview comment already exists | ||
if echo "$COMMENTS" | grep -q "Preview of your submission is available at"; then | ||
# Find the comment ID and update the comment | ||
COMMENT_ID=$(gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments --jq '.[] | select(.body | contains("Preview of your submission is available at")) | .id') | ||
gh api repos/${{ github.repository }}/issues/comments/$COMMENT_ID --method PATCH -f body="$COMMENT_BODY" | ||
else | ||
# Create a new comment if no preview comment exists | ||
gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments --method POST -f body="$COMMENT_BODY" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,20 @@ | |
# ----------------------------------------------------------------------------- | ||
|
||
title: blank # the website title (if blank, full name will be used instead) | ||
first_name: You | ||
middle_name: R. | ||
last_name: Name | ||
email: [email protected] | ||
description: > # the ">" symbol means to ignore newlines until "footer_text:" | ||
A simple, whitespace theme for academics. Based on [*folio](https://github.com/bogoli/-folio) design. | ||
first_name: UniReps | ||
middle_name: | ||
last_name: Blog | ||
email: [email protected] | ||
# description: > # the ">" symbol means to ignore newlines until "footer_text:" | ||
footer_text: > | ||
Powered by <a href="https://jekyllrb.com/" target="_blank">Jekyll</a> with <a href="https://github.com/alshedivat/al-folio">al-folio</a> theme. | ||
Hosted by <a href="https://pages.github.com/" target="_blank">GitHub Pages</a>. | ||
Photos from <a href="https://unsplash.com" target="_blank">Unsplash</a>. | ||
keywords: jekyll, jekyll-theme, academic-website, portfolio-website # add your own keywords or leave empty | ||
lang: en # the language of your site (for example: en, fr, cn, ru, etc.) | ||
icon: ⚛️ # the emoji used as the favicon (alternatively, provide image name in /assets/img/) | ||
icon: unireps_favicon.png # the emoji used as the favicon (alternatively, provide image name in /assets/img/) | ||
|
||
url: https://alshedivat.github.io # the base hostname & protocol for your site | ||
baseurl: /al-folio # the subpath of your site, e.g. /blog/. Leave blank for root | ||
url: https://unireps-blog.github.io # the base hostname & protocol for your site | ||
baseurl: /blog/ # the subpath of your site, e.g. /blog/. Leave blank for root | ||
last_updated: false # set to true if you want to display last updated in the footer | ||
impressum_path: # set to path to include impressum link in the footer, use the same path as permalink in a page, helps to conform with EU GDPR | ||
back_to_top: true # set to false to disable the back to top button | ||
|
@@ -31,7 +29,7 @@ back_to_top: true # set to false to disable the back to top button | |
repo_theme_light: default # https://github.com/anuraghazra/github-readme-stats/blob/master/themes/README.md | ||
repo_theme_dark: dark # https://github.com/anuraghazra/github-readme-stats/blob/master/themes/README.md | ||
repo_trophies: | ||
enabled: true | ||
enabled: false | ||
theme_light: flat # https://github.com/ryo-ma/github-profile-trophy | ||
theme_dark: gitdimmed # https://github.com/ryo-ma/github-profile-trophy | ||
|
||
|
@@ -49,7 +47,7 @@ rss_icon: true | |
|
||
navbar_fixed: true | ||
footer_fixed: true | ||
search_enabled: true | ||
search_enabled: false | ||
socials_in_search: true | ||
bib_search: true | ||
|
||
|
@@ -78,10 +76,10 @@ dblp_url: # your DBLP profile url | |
discord_id: # your discord id (18-digit unique numerical identifier) | ||
facebook_id: # your facebook id | ||
flickr_id: # your flickr id | ||
github_username: # your GitHub user name | ||
github_username: UniReps # your GitHub user name | ||
gitlab_username: # your GitLab user name | ||
ieee_id: # your ieeexplore.ieee.org/author/id | ||
inspirehep_id: 1010907 # Inspire HEP author ID | ||
inspirehep_id: # Inspire HEP author ID | ||
instagram_id: # your instagram id | ||
kaggle_id: # your kaggle id | ||
keybase_username: # your keybase user name | ||
|
@@ -96,7 +94,7 @@ pinterest_id: # your pinterest id | |
publons_id: # your ID on Publons | ||
quora_username: # your Quora username | ||
research_gate_profile: # your profile on ResearchGate | ||
scholar_userid: qc6CJjYAAAAJ # your Google Scholar ID | ||
scholar_userid: # your Google Scholar ID | ||
scopus_id: # your profile on Scopus | ||
semanticscholar_id: # your Semantic Scholar ID | ||
spotify_id: # your spotify id | ||
|
@@ -108,12 +106,12 @@ whatsapp_number: # your WhatsApp number (full phone number in international form | |
wikidata_id: # your wikidata id | ||
wikipedia_id: # your wikipedia id (Case sensitive) | ||
work_url: # work page URL | ||
x_username: # your X handle | ||
x_username: unireps # your X handle | ||
youtube_id: # your youtube channel id (youtube.com/@<youtube_id>) | ||
zotero_username: # your zotero username | ||
|
||
contact_note: > | ||
You can even add a little note about which of these is the best way to reach you. | ||
# contact_note: > | ||
# You can even add a little note about which of these is the best way to reach you. | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Analytics and search engine verification | ||
|
@@ -133,10 +131,10 @@ bing_site_verification: # out your bing-site-verification ID (Bing Webmaster) | |
# Blog | ||
# ----------------------------------------------------------------------------- | ||
|
||
blog_name: al-folio # blog_name will be displayed in your blog page | ||
blog_description: a simple whitespace theme for academics | ||
permalink: /blog/:year/:title/ | ||
lsi: false # produce an index for related posts | ||
blog_name: The UniReps Blog # blog_name will be displayed in your blog page | ||
blog_description: > # the ">" symbol means to ignore newlines until "footer_text:" | ||
permalink: /:year/:title/ | ||
lsi: true # produce an index for related posts | ||
|
||
# Pagination | ||
pagination: | ||
|
@@ -162,19 +160,18 @@ giscus: | |
lang: en | ||
|
||
# Disqus comments (DEPRECATED) | ||
disqus_shortname: al-folio # put your disqus shortname | ||
# disqus_shortname: al-folio # put your disqus shortname | ||
# https://help.disqus.com/en/articles/1717111-what-s-a-shortname | ||
|
||
# External sources. | ||
# If you have blog posts published on medium.com or other external sources, | ||
# you can display them in your blog by adding a link to the RSS feed. | ||
external_sources: | ||
- name: medium.com | ||
rss_url: https://medium.com/@al-folio/feed | ||
- name: Google Blog | ||
- name: GRAM Workshop Blogpost | ||
posts: | ||
- url: https://blog.google/technology/ai/google-gemini-update-flash-ai-assistant-io-2024/ | ||
published_date: 2024-05-14 | ||
- url: https://gram-blogposts.github.io/blog/2024/contrast-learning/ | ||
published_date: 2024-06-13 | ||
featured: true | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Newsletter | ||
|
@@ -189,23 +186,23 @@ newsletter: | |
# Collections | ||
# ----------------------------------------------------------------------------- | ||
|
||
collections: | ||
news: | ||
defaults: | ||
layout: post | ||
output: true | ||
permalink: /:collection/:title/ | ||
projects: | ||
output: true | ||
permalink: /:collection/:title/ | ||
# collections: | ||
# news: | ||
# defaults: | ||
# layout: post | ||
# output: true | ||
# permalink: /:collection/:title/ | ||
# projects: | ||
# output: true | ||
# permalink: /:collection/:title/ | ||
|
||
announcements: | ||
enabled: true | ||
enabled: false | ||
scrollable: true # adds a vertical scroll bar if there are more than 3 news items | ||
limit: 5 # leave blank to include all the news in the `_news` folder | ||
|
||
latest_posts: | ||
enabled: true | ||
enabled: false | ||
scrollable: true # adds a vertical scroll bar if there are more than 3 new posts items | ||
limit: 3 # leave blank to include all the blog posts | ||
|
||
|
@@ -301,41 +298,41 @@ jekyll-archives: | |
tag: archive-tag | ||
category: archive-category | ||
permalinks: | ||
year: "/blog/:year/" | ||
tag: "/blog/tag/:name/" | ||
category: "/blog/category/:name/" | ||
year: "/:year/" | ||
tag: "/tag/:name/" | ||
category: "/category/:name/" | ||
|
||
display_tags: ["formatting", "images", "links", "math", "code", "blockquotes"] # these tags will be displayed on the front page of your blog | ||
display_categories: ["external-services"] # these categories will be displayed on the front page of your blog | ||
display_tags: [] #["formatting", "images", "links", "math", "code", "blockquotes"] # these tags will be displayed on the front page of your blog | ||
display_categories: [] #["external-services"] # these categories will be displayed on the front page of your blog | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Jekyll Scholar | ||
# ----------------------------------------------------------------------------- | ||
|
||
scholar: | ||
last_name: [Einstein] | ||
first_name: [Albert, A.] | ||
# scholar: | ||
# last_name: [Einstein] | ||
# first_name: [Albert, A.] | ||
|
||
style: apa | ||
locale: en | ||
# style: apa | ||
# locale: en | ||
|
||
source: /_bibliography/ | ||
bibliography: papers.bib | ||
bibliography_template: bib | ||
# Note: if you have latex math in your bibtex, the latex filter | ||
# preprocessing may conflict with MathJAX if the latter is enabled. | ||
# See https://github.com/alshedivat/al-folio/issues/357. | ||
bibtex_filters: [latex, smallcaps, superscript] | ||
# source: /_bibliography/ | ||
# bibliography: papers.bib | ||
# bibliography_template: bib | ||
# # Note: if you have latex math in your bibtex, the latex filter | ||
# # preprocessing may conflict with MathJAX if the latter is enabled. | ||
# # See https://github.com/alshedivat/al-folio/issues/357. | ||
# bibtex_filters: [latex, smallcaps, superscript] | ||
|
||
replace_strings: true | ||
join_strings: true | ||
# replace_strings: true | ||
# join_strings: true | ||
|
||
details_dir: bibliography | ||
details_link: Details | ||
# details_dir: bibliography | ||
# details_link: Details | ||
|
||
query: "@*" | ||
group_by: year | ||
group_order: descending | ||
# query: "@*" | ||
# group_by: year | ||
# group_order: descending | ||
|
||
# Display different badges withs stats for your publications | ||
# Customize badge behavior in _layouts/bib.liquid | ||
|
@@ -425,7 +422,7 @@ lazy_loading_images: true # enables lazy loading of images (recommended) | |
# Optional Features | ||
# ----------------------------------------------------------------------------- | ||
|
||
enable_google_analytics: false # enables google analytics | ||
enable_google_analytics: true # enables google analytics | ||
enable_cronitor_analytics: false # enables cronitor RUM analytics | ||
enable_pirsch_analytics: false # enables Pirsch analytics (https://pirsch.io/) | ||
enable_google_verification: false # enables google site verification | ||
|
Oops, something went wrong.