Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
fe3c63d
Transfer deforested files to new branch for testing
May 26, 2023
ba91da8
Merge pull request #108 from DDMAL/deforesting
PythonSemicolon May 26, 2023
3b46b4d
Add link checker actions for testing
zhannaklimanova May 26, 2023
84ac8f2
Removed bad links and content used for testing
May 26, 2023
d6306f0
Merge pull request #109 from DDMAL/deforesting
PythonSemicolon May 26, 2023
01bb5bb
Update absolute links to point to deployed site
May 26, 2023
1afe16f
Update last old link
May 26, 2023
2154d59
Merge pull request #110 from DDMAL/update-absolute-links
PythonSemicolon May 26, 2023
09dbb6a
Update profile info for Taz
May 31, 2023
d632914
Update README for deforested site
Jun 1, 2023
4ed0bff
Add note for old version branch
Jun 1, 2023
750ffe1
Remove Ruby/Jekyll content in readme
Jun 1, 2023
8d2ca01
Add Yinan's updated info to deployed site
Jun 2, 2023
109c1bc
Merge pull request #114 from DDMAL/update-yinan-deforested
PythonSemicolon Jun 2, 2023
1630520
Add 2023 group photo to archive and front page
zhannaklimanova Jun 5, 2023
c8af7e8
Update archive with 2022 photo
zhannaklimanova Jun 5, 2023
4240a44
Pretty-print script output and fail on HTTP_404
zhannaklimanova Jun 11, 2023
319442d
Updating broken poster links
zhannaklimanova Jun 23, 2023
9297fac
Reformatting of html pages
zhannaklimanova Jun 29, 2023
6a601af
Remove commented (un-needed) code
zhannaklimanova Jun 29, 2023
5f8bd4e
Remove blog folder
zhannaklimanova Jun 30, 2023
99d7109
Remove commented section and unneeded code
zhannaklimanova Jun 30, 2023
36ba589
Update indentation
zhannaklimanova Jun 30, 2023
fae05ad
Fix indentation and code snippets
zhannaklimanova Jun 30, 2023
b64bd1a
Remove atom.xml as it is mostly only useful for CMS
zhannaklimanova Jun 30, 2023
4ac7c73
Remove feed.xml as it is mostly only useful for CMS
zhannaklimanova Jun 30, 2023
e5200fa
Remove empty directories
zhannaklimanova Jun 30, 2023
9dbb4a6
Remove uneeded poster html files
zhannaklimanova Jun 30, 2023
ae5f267
Remove presentations directory as it is already in activities folder
zhannaklimanova Jun 30, 2023
9d00188
Remove publications as it is already in activities folder
zhannaklimanova Jun 30, 2023
fe0ca34
Remove media as it is already in activities
zhannaklimanova Jun 30, 2023
0d7c71b
Remove OMRbibliography as it is not part of website and already in zz…
zhannaklimanova Jun 30, 2023
3d21245
Update code snippet indentation
zhannaklimanova Jun 30, 2023
57c7392
Remove billboard.html as it is already in billboard folder
zhannaklimanova Jun 30, 2023
c2c1da8
Reformat HTML to Markdown page
zhannaklimanova Jun 30, 2023
0bb1b96
Fix broken links
zhannaklimanova Jun 30, 2023
c778484
Update README.md
zhannaklimanova Jul 6, 2023
10cd48d
Remove unneeded README images
zhannaklimanova Jul 6, 2023
b5f3d3d
Resolved merge conflicts
zhannaklimanova Jul 6, 2023
e8e8932
Fix formatting issues on lab members page
PythonSemicolon Jul 6, 2023
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
  •  
  •  
  •  
62 changes: 0 additions & 62 deletions .forestry/front_matter/templates/person.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .forestry/front_matter/templates/post-forestry.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .forestry/front_matter/templates/research-project.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .forestry/settings.yml

This file was deleted.

84 changes: 84 additions & 0 deletions .github/workflows/broken-link-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Check for Broken Links

on: [push, pull_request]

jobs:
build_and_check:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
node-version: 16

- name: Setup Simple HTTP Server
run: |
nohup python -m http.server 8000 --bind 127.0.0.1 & # bind to IPv4 address

- name: Wait for HTTP server
run: |
for i in {1..30}; do # maximum wait time is 30 seconds
if curl -s http://127.0.0.1:8000 > /dev/null; then
echo "HTTP server is up"
break
fi
echo "Waiting for HTTP server"
sleep 1
done

- name: Install dependencies
run: npm install -g broken-link-checker # Install the broken-link-checker package globally

- name: Execute Link Checker and Show Broken Links
env:
TEMPORARY_WEBSITE_URL: "http://127.0.0.1:8000"
ACTUAL_WEBSITE_URL: "https://ddmal.music.mcgill.ca"
run: |
output=$(blc $TEMPORARY_WEBSITE_URL -re | \
grep -v -E '├───OK───|└───OK───' | \
awk '
BEGIN {
p=1;
buf=""
}

# The logic between the following two statements ensures lines started with "Getting links from:"
# and immediately followed by a line starting with "Finished!" and containing "0 broken" get removed
/^Getting links from:/ {
buf=$0;
next
}
/^Finished!.*0 broken\./ {
if (length(buf)>0) {
buf="";
next
}
}

{
if(length(buf)>0)
print buf;
if (NF > 0) # ensures only lines with non-zero fields are printed
print;
buf=""
}

# Printing an empty line after any single "Finished!" keyword to separate the outputs
/^Finished!/ {
print ""
}
' | sed "s|$TEMPORARY_WEBSITE_URL|$ACTUAL_WEBSITE_URL|g")

echo "$output"

# Fail the github actions only if there's a single HTTP 404 found
echo "$output" | grep -q 'HTTP_404' && flag=1

if [ "$flag" -eq "1" ]; then
echo "Broken links were found, exiting with an error."
exit 1
else
echo "No broken links were found (although there may be other HTTP errors - check above), exiting successfully."
exit 0
fi
106 changes: 96 additions & 10 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,96 @@
---
layout: default
title: "404: Page not found"
permalink: 404.html
---

<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.url }}/">Head back home</a> to try finding it again.</p>
</div>
<!DOCTYPE html>
<html lang="en-us">
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="theme-color" content="#1DB2E9">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#1DB2E9">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#1DB2E9">
<title>
404: Page not found &middot; DDMAL
</title>
<!-- CSS -->
<link rel="stylesheet" href="https://ddmal.music.mcgill.ca/assets/css/main.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700%7CPT+Sans:400">
<link href="https://fonts.googleapis.com/css?family=Montserrat|Raleway:300,400,500" rel="stylesheet">
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://ddmal.music.mcgill.ca/public/mcgill_crest.png">
<link rel="shortcut icon" href="https://ddmal.music.mcgill.ca/public/mcgill_crest.png">
<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://ddmal.music.mcgill.ca/atom.xml">
</head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<nav class="navbar navbar-light fixed-top navbar-expand-lg bg-white">
<a class="navbar-brand" href="https://ddmal.music.mcgill.ca/">DDMAL</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto" id="nav-items">
<li class="nav-item">
<a class="nav-link" href="https://ddmal.music.mcgill.ca/index.html">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://ddmal.music.mcgill.ca/lab_members/">Lab Members</a>
</li>
<li class="dropdown">
<a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#">Activities<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href='https://ddmal.music.mcgill.ca/activities/media/' target='_top' >Media</a></li>
<li><a href='https://ddmal.music.mcgill.ca/activities/posters/' target='_top' >Posters</a></li>
<li><a href='https://ddmal.music.mcgill.ca/activities/presentations/' target='_top' >Presentations</a></li>
<li><a href='https://ddmal.music.mcgill.ca/activities/publications/' target='_top' >Publications</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="https://ddmal.music.mcgill.ca/research/">Research</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://ddmal.music.mcgill.ca/software/">Software</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://ddmal.music.mcgill.ca/events/">Events</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://ddmal.music.mcgill.ca/resources/">Resources</a>
</li>
</ul>
</div>
</nav>
<body id ="Site" class='layout-reverse theme-base-db sidebar-overlay'>
<!-- Wrap is the content to shift when toggling the sidebar. We wrap the
content to avoid any CSS collisions with our real content. -->
<div class="wrap">
<div class="container content">
<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="https://ddmal.music.mcgill.ca/index.html">Head back home</a> to try finding it again.</p>
</div>
</div>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
<footer id="sticky">
<div class="footer-img-wrap">
<img class="mcgill-img-footer" src="https://ddmal.music.mcgill.ca/assets/schulich_logo.png" alt="">
<img class="ddmal-img-footer" src="https://ddmal.music.mcgill.ca/assets/Ddmal_logo_transp-bg_no-border_1600w.png" alt="">
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://ddmal.music.mcgill.ca/js/bootstrap.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var url = window.location;
$('ul.navbar-nav a[href="'+ url +'"]').parent().addClass('active');
$('ul.navbar-nav a').filter(function() {
return this.href == url;
}).parent().addClass('active');
});
</script>
</body>
</html>
Loading