Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 45 additions & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,44 +62,68 @@ on:
workflow_dispatch:

permissions:
contents: write
contents: read

jobs:
deploy:
# available images: https://github.com/actions/runner-images#available-images
build:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Ruby 💎
uses: ruby/setup-ruby@v1
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
- name: Setup Ruby
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f
with:
ruby-version: "3.3.5"
bundler-cache: true
- name: Setup Python 🐍
uses: actions/setup-python@v5
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.13"
cache: "pip" # caching pip dependencies
- name: Update _config.yml ⚙️
uses: fjogeleit/yaml-update-action@main
cache: "pip"
- name: Install and Build
run: |
sudo apt-get update && sudo apt-get install -y imagemagick
pip3 install --upgrade nbconvert
export JEKYLL_ENV=production
bundle exec jekyll build
- name: Purge unused CSS
run: |
npm install -g purgecss
purgecss -c purgecss.config.js

deploy:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
- name: Setup Ruby
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f
with:
commitChange: false
valueFile: "_config.yml"
propertyPath: "giscus.repo"
value: ${{ github.repository }}
- name: Install and Build 🔧
ruby-version: "3.3.5"
bundler-cache: true
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.13"
cache: "pip"
- name: Set giscus repo
run: |
ruby -ryaml -e 'path = "_config.yml"; config = YAML.load_file(path); config["giscus"] ||= {}; config["giscus"]["repo"] = ENV.fetch("GITHUB_REPOSITORY"); File.write(path, config.to_yaml)'
- name: Install and Build
run: |
sudo apt-get update && sudo apt-get install -y imagemagick
pip3 install --upgrade nbconvert
export JEKYLL_ENV=production
bundle exec jekyll build
- name: Purge unused CSS 🧹
- name: Purge unused CSS
run: |
npm install -g purgecss
purgecss -c purgecss.config.js
- name: Deploy 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
- name: Deploy
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f
with:
folder: _site
3 changes: 0 additions & 3 deletions _includes/head.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,3 @@
{% if page.tikzjax %}
<link defer rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
{% endif %}

<!-- PlumX Metrics Artifact Widget -->
<script src="//cdn.plu.mx/widget-popup.js" async></script>
14 changes: 7 additions & 7 deletions _layouts/distill.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
<d-front-matter>
<script async type="text/json">
{
"title": "{{ page.title }}",
"description": "{{ page.description }}",
"published": "{{ page.date | date: '%B %d, %Y' }}",
"title": {{ page.title | jsonify }},
"description": {{ page.description | jsonify }},
"published": {{ page.date | date: '%B %d, %Y' | jsonify }},
"authors": [
{% for author in page.authors %}
{
"author": "{{ author.name }}",
"authorURL": "{{ author.url }}",
"author": {{ author.name | jsonify }},
"authorURL": {{ author.url | jsonify }},
"affiliations": [
{
"name": "{{ author.affiliations.name }}",
"url": "{{ author.affiliations.url }}"
"name": {{ author.affiliations.name | jsonify }},
"url": {{ author.affiliations.url | jsonify }}
}
]
}{% if forloop.last == false %},{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion _pages/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nav: true
nav_order: 2
---

<script type="text/javascript" src="//cdn.plu.mx/widget-popup.js"></script>
<script async src="https://cdn.plu.mx/widget-popup.js"></script>

<!-- _pages/publications.md -->

Expand Down
Loading