Skip to content

Commit 938031a

Browse files
committed
inching along
1 parent 46afeb0 commit 938031a

5 files changed

Lines changed: 37 additions & 8 deletions

File tree

‎.github/workflows/build.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
export RUBYOPT="--enable=yjit"
5959
ruby --version
6060
JEKYLL_ENV=production bundle exec jekyll build -d $BUILD_DIR --trace
61-
- name: Minify CSS, HTML, and JSs
61+
- name: Minify CSS, HTML, and JS
6262
run: bash scripts/minify.bash
6363
- name: Upload Build as Artifact
6464
uses: actions/upload-pages-artifact@v3

‎.zenodo.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"title": "The Open Buddhist University",
33
"keywords": ["buddhism", "mooc", "courseware", "course", "curriculum", "bibliography"],
44
"upload_type": "lesson",
5-
"description": "<p>A library of free courses and other materials for studying the fundamentals of Buddhism, it also includes dozens of topical bibliographies atop a database of over a thousand free articles, books, and recordings across the breadth of Buddhist Studies.</p><p>This archive contains the source code for building <a href=\"https://buddhistuniversity.net\">the website</a> with <a href=\"http://jekyllrb.com/\">Jekyll</a>. For full instructions, see CONTRIBUTING.md. Additional assets for serving the site can found <a href=\"https://doi.org/10.5281/zenodo.4450047\">here</a></p>",
5+
"description": "<p>A library of free courses and other materials for studying the fundamentals of Buddhism and our shared human world including dozens of topical bibliographies atop a database of thousands of free articles, books, and recordings.</p><p>This archive contains the source code for building <a href=\"https://buddhistuniversity.net\">the website</a> with <a href=\"http://jekyllrb.com/\">Jekyll</a>. For full instructions, see CONTRIBUTING.md.</p>",
66
"creators": [{
77
"name": "Khemarato Bhikkhu",
88
"orcid": "0000-0003-4738-7882"

‎ACKNOWLEDGEMENTS.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
title: Acknowledgements
33
---
44

5-
A BIG thank you to:
5+
A big thank you to:
66

7-
- [Google](https://about.google/) for hosting [our library of media files](https://drive.google.com/drive/folders/1NRjvD6E997jdaRpN5zAqxnaZv0SM-SOv) and [web fonts](https://fonts.google.com/specimen/Gentium+Plus)
7+
- [Google](https://about.google/) for hosting our [web fonts](https://fonts.google.com/specimen/Gentium+Plus)
88
- [GitHub](https://github.com/about/) for [hosting](https://pages.github.com/) the website and its source code, including their [Primer CSS](https://primer.style/) library
99
- [FontAwesome](https://fontawesome.com/) and [Wikimedia Commons](https://commons.wikimedia.org/wiki/Main_Page) for providing the images used throughout
1010
- [CloudFlare](https://www.cloudflare.com/application-security/) for securing the site
1111
- and last but certainly not least: thank you to all the various [content sources](https://www.buddhistuniversity.net/sources/), [creators](https://buddhistuniversity.net/authors/) and [publishers](https://buddhistuniversity.net/publishers/) who generously put their work out for free distribution.
1212

1313
It's a testament to Buddhist generosity that such an expansive and outstanding collection could be compiled (almost entirely) from free material.
1414

15-
The Open Buddhist University is an HTML5 website [built with Jekyll](https://jekyllrb.com/).
15+
The Open Buddhist University is an HTML5 website [built with Jekyll](https://jekyllrb.com/) and love

‎_content/canon/sn7.15.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "SN 7.15 Mānatthaddha Sutta: Big-headed One"
3+
translator: "Ven. Kiribathgoda Gnanananda"
4+
slug: "sn.007.015"
5+
external_url: "https://suttafriends.org/sutta/sn7-15"
6+
drive_links:
7+
- "https://drive.google.com/file/d/1LkAvytBt5u9cNfzMsx72wrjsF7Gq7hZz/view?usp=drivesdk"
8+
course: characters
9+
tags:
10+
- conceit
11+
- families
12+
- sn
13+
year: 2020
14+
pages: 3
15+
parallels:
16+
- sa92
17+
- sa-2.258
18+
- sf24
19+
---
20+
21+
A stuck-up brahmin listening to the Buddha is awestruck when the Buddha appears to read his mind.

‎scripts/minify.bash‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
[[ -z "$BUILD_DIR" ]] && { echo "\$BUILD_DIR is unassigned" ; exit 1; }
44

5+
if [[ "$BUILD_DIR" =~ [[:space:]] ]]; then
6+
echo "\$BUILD_DIR cannot contain whitespace."
7+
exit 1
8+
fi
9+
510
shopt -s globstar
611

712
echo "Removing unused CSS Rules..."
@@ -20,15 +25,18 @@ time npx cleancss --batch --batch-suffix '' -O2 \
2025

2126
if [ ! -f "$HOME/minhtml" ]; then
2227
echo "Installing HTML Minifier..."
23-
wget https://github.com/wilsonzlin/minify-html/releases/download/v0.15.0/minhtml-0.15.0-x86_64-unknown-linux-gnu --output-document="$HOME/minhtml"
28+
time wget --no-verbose https://github.com/wilsonzlin/minify-html/releases/download/v0.15.0/minhtml-0.15.0-x86_64-unknown-linux-gnu --output-document="$HOME/minhtml"
2429
chmod a+x $HOME/minhtml
2530
fi
2631

2732
echo "Minifying HTML..."
28-
time $HOME/minhtml --minify-js --minify-css $BUILD_DIR/**/*.html
33+
HTML_COUNT=$(time $HOME/minhtml --minify-js --minify-css $BUILD_DIR/**/*.html | wc -l)
34+
echo "Minified $HTML_COUNT html files"
2935

36+
echo ""
3037
echo "Minifying Search JS..."
31-
npx uglify-js $BUILD_DIR/assets/js/search_index.js -o $BUILD_DIR/assets/js/search_index.min.js -c -m
38+
time npx uglify-js $BUILD_DIR/assets/js/search_index.js -o $BUILD_DIR/assets/js/search_index.min.js -c -m
3239
mv $BUILD_DIR/assets/js/search_index.min.js $BUILD_DIR/assets/js/search_index.js
40+
# The other js files are too small to need minification
3341

3442
echo "Done!"

0 commit comments

Comments
 (0)