Skip to content

Commit a537a3f

Browse files
committed
remove old cruft and modernize site with CI deploy, updated CDNs, etc
- add GitHub Actions workflow to auto-deploy on push to source - remove dead Universal Analytics (UA-140260727-1); GA4 stays - remove Disqus (config, includes, comments front matter from 12 posts) - fix dead rawgit CDN → jsDelivr for Computer Modern fonts - update KaTeX 0.10.2 → 0.16.28, Vega-Lite v3 → v5 - remove jQuery (unused), IE=edge meta tag - delete stale files (analytics.txt, Gemfile.lock.rubyv2bkup) - add .ruby-version, .DS_Store to .gitignore - clean up _config.yml, footer, README
1 parent b53c2d6 commit a537a3f

25 files changed

Lines changed: 46 additions & 403 deletions

‎.github/workflows/deploy.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [source]
6+
7+
jobs:
8+
build-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: ruby/setup-ruby@v1
14+
with:
15+
ruby-version: '3.1.7'
16+
bundler-cache: true
17+
18+
- run: bundle exec jekyll build
19+
20+
- uses: peaceiris/actions-gh-pages@v4
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: ./_site
24+
publish_branch: master

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ _site
22
.sass-cache
33
.jekyll-metadata
44
.jekyll-cache
5+
.DS_Store

‎.ruby-version‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.1.7

‎Gemfile.lock.rubyv2bkup‎

Lines changed: 0 additions & 277 deletions
This file was deleted.

‎README.md‎

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
11
## Workflow
22

3-
Because jekyll-scholar isn't in the list of GitHub-sanctioned plugins, we need a workaround. Here it is.
3+
Because jekyll-scholar isn't in the list of GitHub-sanctioned plugins, we use a GitHub Actions workflow that builds the site and deploys it to the `master` branch.
44

5-
#### 1. Editing locally
6-
- edit the site on the `source` branch locally.
7-
- run `bundle exec jekyll serve` to serve locally during editing.
8-
- Note: requires **ruby version 3**, so may need to change the current ruby
9-
version (e.g. `chruby 3.1.7` or `rvm use 3.1.7` --- note, tested with `v3.4.5` and it didn't work. use `3.1.7`).
5+
#### Local development
6+
- Edit the site on the `source` branch locally.
7+
- Run `bundle exec jekyll serve` to serve locally during editing.
8+
- Requires **Ruby 3.1.7** (e.g. `chruby 3.1.7` or `rvm use 3.1.7`).
109

11-
#### 2. Push to remote
12-
When ready, `git push` to put the edits on the GitHub.
13-
14-
- First time may need to set source: `git push --set-upstream origin source`
15-
16-
#### 3. Deploy site
17-
18-
```bash
19-
./bin/deploy --user
20-
```
21-
22-
Answer `y`.
23-
24-
- This will build the site from `source` branch (`bundle exec jekyll build` ) and put the resulting site on the `master` branch, where github pages will find it and serve it at [jahoo.github.io](http://jahoo.github.io)
10+
#### Deploy
11+
Push to `source`. A GitHub Actions workflow will automatically build the site (`bundle exec jekyll build`) and deploy the result to the `master` branch, where GitHub Pages serves it at [jahoo.github.io](https://jahoo.github.io).

‎_config.yml‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ description: > # this means to ignore newlines until "baseurl:"
1212
Postdoc at MIT, Department of Brain and Cognitive Sciences.
1313
baseurl: "" # the subpath of your site, e.g. /blog
1414
url: "https://jahoo.github.io" # the base hostname & protocol for your site
15-
# twitter_username: postylem
16-
# github_username: postylem
1715
google_scholar_id: koLi2TwAAAAJ
1816

1917
# Build settings
@@ -34,13 +32,7 @@ scholar:
3432
bibliography: default.bib
3533
bibliography_template: bib # references file _layouts/bib.*
3634

37-
# Comments (see _layouts/posts.html)
38-
disqus_shortname: jaclouhoo
39-
# https://help.disqus.com/en/articles/1717111-what-s-a-shortname
40-
4135
# USE THE FOLLOWING FOR MATH:
4236
# $$\LaTeX code$$ (for display)
4337
# \\[\LaTeX code\\] (also for display)
4438
# \\(\LaTeX code\\) (for inline)
45-
46-
# theme: jekyll-theme-minimal

‎_includes/analytics.html‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎_includes/disqus_custom_embed_code.html‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)