Skip to content

Commit 8601295

Browse files
committed
Merge remote-tracking branch 'origin/upstream'
# Conflicts: # CONTRIBUTING.md # CUSTOMIZE.md # FAQ.md # INSTALL.md # README.md # _posts/2018-12-22-distill.md # _posts/2021-07-04-diagrams.md
2 parents f6ea875 + cef2ac0 commit 8601295

27 files changed

+689
-240
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
1010
"packages": "build-essential,imagemagick,inotify-tools,jupyter-nbconvert,procps,ruby-full,zlib1g-dev"
1111
},
12-
"ghcr.io/devcontainers-contrib/features/prettier:1": {}
12+
"ghcr.io/devcontainers-extra/features/prettier:1.0.2": {}
1313
},
1414

1515
// Optionally: run jekyll serve automatically on container entering using the Docker entrypoint

.github/workflows/broken-links-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
npm install -g purgecss
4141
purgecss -c purgecss.config.js
4242
- name: Link Checker 🔗
43-
uses: lycheeverse/lychee-action@v1.9.0
43+
uses: lycheeverse/lychee-action@v2.0.2
4444
with:
4545
fail: true
4646
# only check local links

.github/workflows/broken-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- uses: actions/checkout@v4
4848

4949
- name: Link Checker 🔗
50-
uses: lycheeverse/lychee-action@v2.1.0
50+
uses: lycheeverse/lychee-action@v2.0.2
5151
with:
5252
fail: true
5353
# removed md files that include liquid tags
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: Update Google Scholar Citations
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * 1" # Monday
6+
- cron: "0 0 * * 3" # Wednesday
7+
- cron: "0 0 * * 5" # Friday
8+
workflow_dispatch:
9+
10+
jobs:
11+
update-citations:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
# See CUSTOMIZE.md for details on how to set up PAT for triggering subsequent workflows
18+
# with:
19+
# token: ${{ secrets.PAT }}
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.13"
25+
26+
- name: Install dependencies
27+
run: |
28+
echo "🔧 Installing dependencies..."
29+
python -m pip install --upgrade pip
30+
pip install -r requirements.txt
31+
32+
- name: Save current citations.yml hash
33+
id: before
34+
run: |
35+
echo "📦 Checking existing citations.yml hash..."
36+
if [ -f _data/citations.yml ]; then
37+
sha_before=$(sha256sum _data/citations.yml | awk '{print $1}')
38+
echo "sha_before=$sha_before" >> $GITHUB_OUTPUT
39+
echo "📝 SHA before: $sha_before"
40+
else
41+
echo "sha_before=none" >> $GITHUB_OUTPUT
42+
echo "📝 No existing citations.yml file found."
43+
fi
44+
45+
- name: Run citation update script
46+
id: run_citation_update
47+
shell: bash
48+
run: |
49+
set +e
50+
echo "🚀 Running citation update script (single attempt)..."
51+
start_time=$(date)
52+
timeout 90 python bin/update_scholar_citations.py
53+
status=$?
54+
end_time=$(date)
55+
if [ $status -eq 0 ]; then
56+
echo "✅ Citation update succeeded (started at $start_time, ended at $end_time)."
57+
echo "✅ Citation update succeeded." >> $GITHUB_STEP_SUMMARY
58+
else
59+
echo "❌ Citation update script failed with exit code $status (started at $start_time, ended at $end_time)."
60+
echo "❌ Citation update script failed with exit code $status." >> $GITHUB_STEP_SUMMARY
61+
fi
62+
set -e
63+
64+
- name: Save new citations.yml hash
65+
id: after
66+
run: |
67+
echo "🔍 Checking updated citations.yml hash..."
68+
if [ -f _data/citations.yml ]; then
69+
sha_after=$(sha256sum _data/citations.yml | awk '{print $1}')
70+
echo "sha_after=$sha_after" >> $GITHUB_OUTPUT
71+
echo "📝 SHA after: $sha_after"
72+
else
73+
echo "sha_after=none" >> $GITHUB_OUTPUT
74+
echo "📝 citations.yml was not created or is missing."
75+
fi
76+
77+
- name: Report citations.yml change in summary
78+
run: |
79+
echo "📋 Comparing citation file hashes..."
80+
if [ "${{ steps.before.outputs.sha_before }}" != "${{ steps.after.outputs.sha_after }}" ]; then
81+
echo "✅ _data/citations.yml was updated."
82+
echo "✅ _data/citations.yml was updated." >> $GITHUB_STEP_SUMMARY
83+
else
84+
echo "ℹ️ _data/citations.yml was not changed."
85+
echo "ℹ️ _data/citations.yml was not changed." >> $GITHUB_STEP_SUMMARY
86+
fi
87+
88+
- name: Configure Git
89+
run: |
90+
git config --local user.email "[email protected]"
91+
git config --local user.name "GitHub Actions"
92+
echo "🔧 Git configured."
93+
94+
- name: Commit and push if changed
95+
run: |
96+
git add _data/citations.yml
97+
git diff --staged --quiet || (
98+
echo "📤 Committing and pushing changes..."
99+
git commit -m "Update Google Scholar citations"
100+
git push
101+
)

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ Gemfile.lock
1010
assets/libs/
1111
node_modules/
1212
vendor
13-
.idea
13+
.idea
14+
.venv

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ _posts/2015-10-20-math.md
1010
_sass/font-awesome/*.scss
1111
_sass/tabler-icons/*.scss
1212
_scripts/*
13+
# Ignore citation YAML file generated by script
14+
_data/citations.yml

Gemfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,21 +204,21 @@ GEM
204204
bigdecimal (~> 3.1)
205205
namae (1.2.0)
206206
racc (~> 1.7)
207-
nokogiri (1.18.8-aarch64-linux-gnu)
207+
nokogiri (1.18.9-aarch64-linux-gnu)
208208
racc (~> 1.4)
209-
nokogiri (1.18.8-aarch64-linux-musl)
209+
nokogiri (1.18.9-aarch64-linux-musl)
210210
racc (~> 1.4)
211-
nokogiri (1.18.8-arm-linux-gnu)
211+
nokogiri (1.18.9-arm-linux-gnu)
212212
racc (~> 1.4)
213-
nokogiri (1.18.8-arm-linux-musl)
213+
nokogiri (1.18.9-arm-linux-musl)
214214
racc (~> 1.4)
215-
nokogiri (1.18.8-arm64-darwin)
215+
nokogiri (1.18.9-arm64-darwin)
216216
racc (~> 1.4)
217-
nokogiri (1.18.8-x86_64-darwin)
217+
nokogiri (1.18.9-x86_64-darwin)
218218
racc (~> 1.4)
219-
nokogiri (1.18.8-x86_64-linux-gnu)
219+
nokogiri (1.18.9-x86_64-linux-gnu)
220220
racc (~> 1.4)
221-
nokogiri (1.18.8-x86_64-linux-musl)
221+
nokogiri (1.18.9-x86_64-linux-musl)
222222
racc (~> 1.4)
223223
observer (0.1.2)
224224
open-uri (0.5.0)
@@ -234,7 +234,7 @@ GEM
234234
rb-fsevent (0.11.2)
235235
rb-inotify (0.11.1)
236236
ffi (~> 1.0)
237-
rexml (3.4.1)
237+
rexml (3.4.2)
238238
rouge (4.5.2)
239239
safe_yaml (1.0.5)
240240
sass-embedded (1.89.0-aarch64-linux-gnu)

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ giscus:
111111
strict: 1 # use strict identification mode
112112
reactions_enabled: 1 # enable (1) or disable (0) emoji reactions
113113
input_position: bottom # whether to display input form below (bottom) or above (top) the comments
114-
theme: preferred_color_scheme # name of the color scheme (preferred works well with al-folio light/dark mode)
114+
dark_theme: dark # name of the dark color scheme (preferred works well with al-folio dark mode)
115+
light_theme: light # name of the light color scheme (preferred works well with al-folio light mode)
115116
emit_metadata: 0
116117
lang: en
117118

_data/socials.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@
22
# the commented lines are the default social media links supported by the template
33
# the socials will be displayed in the order they are defined here
44

5+
# academia_edu: your organization and your username Ex. https://organization.academia.edu/UserName
6+
# organization: princeton # your organization as appears in the subdomain
7+
# username: AlbertEinstein # your username
58
# acm_id: # your dl.acm.org/profile/id
9+
# arxiv_id: # your arXiv author ID
610
# blogger_url: # your blogger URL
711
# bluesky_url: # your bluesky URL
12+
# cv_pdf: # path to your CV PDF file
813
# dblp_url: # your DBLP profile url
914
# discord_id: # your discord id (18-digit unique numerical identifier)
1015
email: [email protected] # your email address
1116
# facebook_id: # your facebook id
1217
# flickr_id: # your flickr id
1318
github_username: ARDoCo # your GitHub user name
1419
# gitlab_username: # your GitLab user name
20+
# hal_id: # your HAL id (https://hal.science/)
1521
# ieee_id: # your ieeexplore.ieee.org/author/id
1622
# inspirehep_id: # Inspire HEP author ID
1723
# instagram_id: # your instagram id
@@ -35,6 +41,7 @@ github_username: ARDoCo # your GitHub user name
3541
# semanticscholar_id: # your Semantic Scholar ID
3642
# spotify_id: # your spotify id
3743
# stackoverflow_id: # your stackoverflow id
44+
# strava_userid: # your strava user id
3845
# telegram_username: # your Telegram user name
3946
# unsplash_id: # your unsplash id
4047
# wechat_qr: # filename of your wechat qr-code saved as an image (e.g., wechat-qr.png if saved to assets/img/wechat-qr.png)

_includes/distill_scripts.liquid

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
crossorigin="anonymous"
1414
></script>
1515

16+
<!-- Custom overrides -->
17+
<script src="{{ '/assets/js/distillpub/overrides.js' | relative_url }}"></script>
18+
1619
{% if page.mermaid and page.mermaid.enabled %}
1720
<!-- Mermaid and D3 -->
1821
<script

0 commit comments

Comments
 (0)