Skip to content

Commit d1a7719

Browse files
committed
fix tests and blogpost nits
1 parent f55f844 commit d1a7719

9 files changed

Lines changed: 223 additions & 404 deletions

‎_content/av/drums-and-bells_qing-de.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2-
title: "Drums and Bells – Qing De Monastery"
2+
title: "Drums and Bells"
3+
authors:
4+
- "Qing De Monastery"
35
drive_links: ["https://drive.google.com/file/d/1nKelIAHnESuzswf3WTt_1mRt51jtN8Uh/view?usp=drivesdk"]
46
external_url: "https://archive.org/details/drums-and-bells-evening-chanting-qing-de-monastery"
57
status: featured

‎_content/av/welcome-to-jurassic-art_99pi.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Welcome to Jurassic Art"
3+
authors: ["Bob Bakker"]
34
subcat: podcast
45
year: 2021
56
month: apr

‎_content/booklets/chinese-liturgy_stc.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "The (Chinese) Buddhist Liturgy"
3+
editor: "Lok To"
34
publisher: "The Sutra Translation Committee of the United States and Canada"
45
source_url: "http://ftp.budaedu.org/ebooks/pdf/CE002.pdf"
56
drive_links:

‎_content/reference/an-thematic-guide_bodhi.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ course: sutta
66
tags:
77
- an
88
year: 2019
9+
authors: [bodhi]
910
---
1011

1112
A listing of the primary themes of the Aṅguttara Nikāya arranged according to the gradual training with references to the suttas on those themes.

‎_content/reference/buddhisim-art_bob1988.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "buddhisim [sic] art"
33
external_url: "https://skfb.ly/6ZqKo"
4+
authors: ["Bob 1988"]
45
course: bart
56
tags:
67
- sculpture

‎_content/reference/chinese-grammar_ctcfl.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Online Chinese grammar notes"
3+
authors: ["Shio-yun Kan"]
34
external_url: "http://www.ctcfl.ox.ac.uk/Lang%20work/Grammar%20database/Grammar_database_content.htm"
45
course: chinese-primer
56
tags:

‎_posts/2022-06-30-finding-peace.md‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,25 @@ This month, we added two new sections to our library on [Samatha](/tags/samatha)
66

77
Together, they represent the main focus of Buddhist meditation: on calm abiding and the development of wisdom.
88

9-
In these stressful times, both are as important as ever.
10-
To be able "to contend seriously with a problem, you first have to let it in," [as a recent podcast episode I loved](https://buddhistuniversity.net/content/av/living-at-the-end-of-our-world) worded it.
11-
And "letting in" is precisely the work of mindfulness.
9+
While separated here, they obviously support each other, because
10+
"to contend seriously with a problem, you first have to let it in," [as a brilliant podcast episode on climate change](https://buddhistuniversity.net/content/av/living-at-the-end-of-our-world) recently worded it.
11+
In times like these, mindfulness is more important than ever.
1212

13-
But despite the urgency of change, we needn't shoulder everything alone.
14-
Despite its quiescent reputation, Buddhist meditation is a _social_ emotional education system.
13+
But despite the urgency of change (in ourselves and in our world), we need not shoulder everything alone.
14+
Despite its quiescent reputation, Buddhist meditation is a _social_-emotional education system.
1515

16-
John Paul Martinez's poem "To Offer Sweet Fruit to the Ghost" was featured in [this beautiful episode of *The Slowdown* late last year](https://buddhistuniversity.net/content/av/to-offer-sweet-fruit-to-the-ghost).
17-
It shows how Buddhist "superstitions" can be powerful forms of connection and meaning making in difficult times—even if they are hard for us Western-educated children to accept:
16+
John Paul Martinez's poem "To Offer Sweet Fruit to the Ghost" was featured in [a beautiful episode of *The Slowdown*](https://buddhistuniversity.net/content/av/to-offer-sweet-fruit-to-the-ghost).
17+
In his poem, Martinez shows how Buddhist "superstitions" can be a powerful form of connection and meaning-making in difficult times—even when they are hard for the Western-educated among us to accept:
1818

1919
> Ma says not to swat at the housefly
2020
chirring in our headspace
2121
for the past two hours
2222
because it just might be you.
2323
...
2424

25-
Read or listen to the rest of his poem at [slowdownshow.org](https://www.slowdownshow.org/episode/2021/09/29/512-to-offer-sweet-fruit-to-the-ghost)
26-
and find hundreds of other poems, podcasts, papers, and a pot-pourri of other precious pieces on our website: BuddhistUniversity.net
25+
You can read or listen to the rest of the poem at [slowdownshow.org](https://www.slowdownshow.org/episode/2021/09/29/512-to-offer-sweet-fruit-to-the-ghost)
26+
and find hundreds of other poems, podcasts, papers, and a potpourri of other precious pieces at our website: BuddhistUniversity.net
2727

28-
As always, if you have any comments, questions or suggestions, please don't hesitate to email me.
29-
30-
Your Librarian,
28+
As always, if you have any comments, questions or suggestions, please don't hesitate to email me,
29+
Your librarian,
3130
Khemarato Bhikkhu

‎_quick_build.yml‎

Lines changed: 201 additions & 388 deletions
Large diffs are not rendered by default.

‎_tests/content.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ A series of tests checking the integrity of the _content data
1616
| file_links match formats | {% assign fs = '' | split: '' %}{% for c in hostedcontent %}{% for l in c.file_links %}{% assign ee = l | split: "." | last %}{% unless ee == c.formats[forloop.index0] %}{% assign fs = fs | push: c %}{% endunless %}{% endfor %}{% endfor %}{% if fs.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | {% assign count = hostedcontent.size | minus: fs.size %}{% if count > 0 %}There are {{ count }} sane formats.{% endif %}{% if fs.size > 0 %} The {{ fs.size }} pieces with bad formats are: {% for c in fs %}[{{ c.title | split: ":" | first }}]({{ c.url }}) {% endfor %}{% endif %}
1717
| Negative Pages | {% assign fails = '' | split: '' %}{% for cont in site.content %}{% unless cont.pages %}{% continue %}{% endunless %}{% if cont.pages contains "--" %}{% assign ps = cont.pages | split: "--" %}{% assign ps = 1 | plus: ps[1] | minus: ps[0] %}{% if ps < 1 %}{% assign fails = fails | push: cont %}{% endif %}{% else %}{% if cont.pages < 1 %}{% assign fails = fails | push: cont %}{% endif %}{% endif %}{% endfor %}{% if fails.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Found {{ fails.size }} with negative pages{% if fails.size > 0 %}: {{ fails | map: "path" | array_to_sentence_string }}{% endif %}
1818
| Missing Author Pages | {% assign expect = '' | split: '' %}{% for cont in site.content %}{% for auth in cont.authors %}{% unless auth contains " " %}{% unless expect contains auth %}{% assign expect = expect | push: auth %}{% endunless %}{% endunless %}{% endfor %}{% endfor %}{% assign grouped = expect | group_by_exp: "auth", "site.authors | where: 'slug', auth | size" %}{% for group in grouped %}{% if group.name == 0 %}{% assign failed = group.items %}{% else %}{% assign found = group.items %}{% endif %}{% endfor %}{% if expect.size == found.size %}Pass ✅{% else %}FAIL ❌{% endif %} | Of the {{ expect.size }} authors cited, {{ found.size }} of them are in the database. {% if failed.size > 0 %}Failed to find author pages for: {{ failed | array_to_sentence_string }}{% endif %}
19-
| Content Missing an Author | {% assign fails = '' | split: '' %}{% for cont in site.content %}{% unless cont.slug contains "_" %}{% continue %}{% endunless %}{% unless cont.authors.size >= 1 %}{% assign fails = fails | push: cont %}{% endunless %}{% endfor %}{% if fails.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Found {{ fails.size }} works without authors{% if fails.size > 0 %}: {{ fails | map: "url" | array_to_sentence_string }}{% endif %}
19+
| Content Missing an Author | {% assign fails = '' | split: '' %}{% for cont in site.content %}{% unless cont.slug contains "_" %}{% continue %}{% endunless %}{% unless cont.authors.size >= 1 or cont.translator or cont.editor or cont.reader or cont.journal == "tricycle" %}{% assign fails = fails | push: cont %}{% endunless %}{% endfor %}{% if fails.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Found {{ fails.size }} works without authors{% if fails.size > 0 %}: {{ fails | map: "url" | array_to_sentence_string }}{% endif %}
2020
| Unlinked Authors | {% assign authors = site.authors | map: "title" %}{% assign dupes = '' | split: '' %}{% for cont in site.content %}{% for auth in cont.authors %}{% if authors contains auth %}{% assign dupes = dupes | push: cont %}{% break %}{% endif %}{% endfor %}{% endfor %}{% if dupes.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Found {{ dupes.size }} works with unlinked authors{% if dupes.size > 0 %}: {{ dupes | map: "url" | array_to_sentence_string }}{% endif %}
2121
| Dangling Authors | {% assign authors = site.authors | map: "slug" %}{% for auth in found %}{% assign authors = authors | where_exp: "a", "a != auth" %}{% endfor %}{% assign unfound = '' | split: '' %}{% for auth in authors %}{% assign c = site.content | where: "translator", auth | size %}{% if c > 0 %}{% continue %}{% endif %}{% assign c = site.content | where: "editor", auth | size %}{% if c > 0 %}{% continue %}{% endif %}{% assign c = site.content | where: "reader", auth | size %}{% if c == 0 %}{% assign unfound = unfound | push: auth %}{% endif %}{% endfor %}{% if unfound.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ unfound.size }} authors with no works attributed to them{% if unfound.size == 0 %}.{% else %}: {{ unfound | array_to_sentence_string }}.{% endif %}
2222
| Content unexpectedly missing links | {% assign failures = site.content | where_exp: "c", "c.external_url == nil" | where_exp: "c", "c.drive_links == nil" | where_exp: "c", "c.source_url == nil" | where_exp: "c", "c.file_links == nil" | where_exp: "c", "c.category != 'monographs'" | where_exp: "c", "c.status != 'rejected'" | where_exp: "c", "c.slug != 'historical-dictionary-of-chan_wang-youru'" | where_exp: "c", "c.subcat != 'film'" %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ failures.size }} missing links{% if failures.size >0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
2323
| Content missing year | {% assign failures = site.content | where_exp: "c", "c.year == nil" %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ failures.size }} missing years{% if failures.size >0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
2424
| Invalid months | {% assign failures = "" | split: "" %}{% for cont in site.content %}{% if cont.month %}{% unless site.data.bibtex.months contains cont.month %}{% assign failures = failures | push: cont.path %}{% endunless %}{% endif %}{% endfor %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | {{ failures.size }} bad months found{% if failures.size >0 %}: {{ failures | array_to_sentence_string }}{% endif %}
2525
| Content missing from its course | {% assign failures = "" | split: "" %}{% for course in site.courses %}{% if course.layout == "multipartcourse" %}{% continue %}{% endif %} {% assign allcc = site.content | where: "course", course.slug | where_exp: "c", "c.category != 'canon'" | where: "c", "c.series != 'ms-study_bodhi'" %}{% for content in allcc %}{% unless course.content contains content.slug %}{% assign failures = failures | push: content %}{% endunless %}{% endfor %}{% endfor %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ failures.size }} found{% if failures.size >0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
26-
{% if site.partial_build %}| Partial build filters useless stuff | {% assign torem = "" | split: "" %}{% assign courseslugs = site.courses | map: "slug" %}{% assign manualslugs = "tantric,nature,chan,samatha,vipassana,west,nuns,view,thought,society,inner,wider" | split: "," %}{% assign tagslugs = site.tags | map: "slug" %}{% assign courseslugs = tagslugs | concat: courseslugs | concat: manualslugs %}{% for c in site.content %}{% if c.course and courseslugs contains c.course %}{% continue %}{% endif %}{% assign f = "go" %}{% for p in site.posts %}{% if p.content contains c.slug %}{% assign f = "pass" %}{% break %}{% endif %}{% endfor %}{% if f == "pass" %}{% continue %}{% endif %}{% assign torem = torem | push: c %}{% endfor %}{% if torem.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Found {{ torem.size }} useless pieces{% if torem.size > 0 %} (listed below).{% endif %}
27-
| Partial build doesn't filter useful stuff | {% assign toadd = '' | split: '' %}{% for path in site.exclude %}{% unless path contains "_content/" %}{% continue %}{% endunless %}{% assign slug = path | split: "/" | last | split: "." | first%}{% for p in site.pages %}{% if p.content contains slug %}{% assign toadd = toadd | push: path %}{% break %}{% endif %}{% endfor %}{% endfor %}{% if toadd.size == 0 %}Pass ✅ | Found no useful pieces excluded. {% else %}FAIL ❌ | Found {{ toadd.size }} useful pieces to add (see below). {% endif %}
26+
{% if site.partial_build %}| Partial build filters useless stuff | {% assign torem = "" | split: "" %}{% assign courseslugs = site.courses | map: "slug" %}{% assign manualslugs = "nature,west,nuns,view,thought,society,inner,wider" | split: "," %}{% assign tagslugs = site.tags | map: "slug" %}{% assign courseslugs = tagslugs | concat: courseslugs | concat: manualslugs %}{% for c in site.content %}{% if c.course and courseslugs contains c.course %}{% continue %}{% endif %}{% assign f = "go" %}{% for p in site.documents %}{% if p.content contains c.slug or p.content contains c.path or p.content contains c.url %}{% assign f = "pass" %}{% break %}{% endif %}{% endfor %}{% if f == "pass" %}{% continue %}{% endif %}{% assign torem = torem | push: c %}{% endfor %}{% if torem.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Found {{ torem.size }} useless pieces{% if torem.size > 0 %} (listed below).{% endif %}
27+
| Partial build doesn't filter useful stuff | {% assign toadd = '' | split: '' %}{% for path in site.exclude %}{% unless path contains "_content/" %}{% continue %}{% endunless %}{% assign slug = path | split: "/" | last | split: "." | first%}{% for p in site.documents %}{% if p.content contains slug %}{% assign toadd = toadd | push: path %}{% break %}{% endif %}{% endfor %}{% endfor %}{% if toadd.size == 0 %}Pass ✅ | Found no useful pieces excluded. {% else %}FAIL ❌ | Found {{ toadd.size }} useful pieces to add (see below). {% endif %}
2828

2929
{% if torem.size > 0 or toadd.size > 0 %}
3030
`_quick_build.yml` changes:

0 commit comments

Comments
 (0)