Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file removed .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Only the Gemfile is needed to build the preview image.
*
!Gemfile
80 changes: 80 additions & 0 deletions .github/workflows/site-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Site check

# Builds the site with the same gems GitHub Pages uses and checks every
# internal link and image, so a broken page is caught before it is merged.
on:
pull_request:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
build-and-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true

- name: Build with the GitHub Pages gems
run: bundle exec jekyll build --trace
env:
JEKYLL_ENV: production
PAGES_REPO_NWO: ${{ github.repository }}
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check generated pages against the data files
run: |
ruby -ryaml -e '
today = Time.now.getlocal("+05:30").strftime("%Y-%m-%d")
events = YAML.load_file("_data/events.yml").reject { |e| e["status"] == "unconfirmed" }
past = events.count { |e| e["date"] < today }
upcoming = events.select { |e| e["date"] >= today }.map { |e| e["title"] }
errors = []

events_html = File.read("_site/events/index.html")
rows = events_html.scan("</tr>").size - events_html.scan("<thead>").size
errors << "Events page shows #{rows} past events, data has #{past}" if rows != past

home = File.read("_site/index.html")
upcoming.first(1).each { |t| errors << "Home page is missing upcoming event: #{t}" unless home.include?(t) }
stats = home.scan(/lai-stat-number">(\d+)</).flatten
errors << "Home page stats missing" if stats.size != 4

Dir["_site/**/*.html"].each do |f|
text = File.read(f)
errors << "Liquid error in #{f}" if text.include?("Liquid error") || text.include?("Liquid syntax error")
end

puts "Past events in data: #{past}; rows on Events page: #{rows}"
puts "Upcoming: #{upcoming.join(", ").then { |s| s.empty? ? "none" : s }}"
puts "Home stats (events, hackathons, paper sessions, projects): #{stats.join(", ")}"
abort(errors.join("\n")) unless errors.empty?
puts "Generated pages match the data."
'

- name: Check internal links and images
run: |
bundle exec ruby -e '
require "html-proofer"
HTMLProofer.check_directory("./_site", {
disable_external: true,
enforce_https: false,
allow_hash_href: true,
ignore_urls: [/^mailto:/]
}).run
'

- name: Upload the built site (download it from the run summary to preview)
if: always()
uses: actions/upload-artifact@v4
with:
name: built-site
path: _site
retention-days: 7
19 changes: 18 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
# Jekyll build output and caches
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata

# Ruby gems installed locally (bundle config set --local path vendor/bundle)
.bundle/
.replit
vendor/
# Generated by `bundle install`; GitHub Pages always builds with the latest
# github-pages gem, so we don't pin versions here.
Gemfile.lock

# Node (not used by the site)
node_modules/

# Editors and OS files
.DS_Store
.replit
12 changes: 10 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
---
layout: default
title: 404
title: Page not found
permalink: /404
nav_exclude: true
search_exclude: true
---

<h1>Page not found</h1>

<p>The page you requested could not be found. Try using the navigation {% if site.search_enabled != false %}or search {% endif %}to find what you're looking for or go to this <a href="{{ '/' | relative_url }}">site's home page</a>.</p>
<p>We could not find that page. The site was reorganised in November 2026, so an old link may have moved. Try one of these:</p>

<ul>
<li><a href="{{ '/events/' | relative_url }}">Events</a> and <a href="{{ '/hackathons/' | relative_url }}">Hackathons</a></li>
<li><a href="{{ '/projects/' | relative_url }}">Projects</a> and <a href="{{ '/research/' | relative_url }}">Research</a></li>
<li><a href="{{ '/about/' | relative_url }}">About</a> and <a href="{{ '/contact/' | relative_url }}">Contact</a></li>
</ul>

<p>{% if site.search_enabled != false %}You can also use the search box, or go back to the {% else %}Or go back to the {% endif %}<a href="{{ '/' | relative_url }}">home page</a>.</p>
Loading
Loading