Skip to content

Commit 055ec27

Browse files
committed
a couple nits
1 parent cd76664 commit 055ec27

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎_content/av/ancient-path-to-enlightenment_dabei.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: "The Ancient Path To Enlightenment"
33
authors:
44
- "Da Bei Shan"
5-
external_url: "https://youtube.com/playlist?list=PLWiBcRvkbyRFjqWAbbCf7gwIqf1_5Ur0l"
5+
status: "rejected"
6+
reason: "No longer available 😞"
67
course: tudong
78
tags:
89
- chinese
@@ -14,3 +15,5 @@ year: 2014
1415
---
1516

1617
A documentary series about monks in China sincerely practicing *dhutaṅga*.
18+
19+
Sadly, the YouTube video was taken down. If you find another link, please send me an email below. 😁

‎_content/essays/abhidharma-praise_rongton.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ translator: "Adam Pearcey"
66
external_url: "https://www.lotsawahouse.org/tibetan-masters/rongton/abhidharma-lineage-praise"
77
drive_links:
88
- "https://drive.google.com/file/d/1Od9WKHahcSeur7qzQ3GcRPmA4qU22Q1_/view?usp=drivesdk"
9-
course: indian
9+
course: abhidhamma
1010
tags:
11-
- tibetan
11+
- tibetan-roots
1212
year: 2020
1313
---
1414

‎_tests/content.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A series of tests checking the integrity of the _content data
1313
| 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 %}
1414
| Missing Authors | {% 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 %}
1515
| 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 %}
16-
| Non-monograph content 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.slug != 'baraka_fricke-ron'" | where_exp: "c", "c.slug != 'harvey'" %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Except for [_Baraka_](/content/av/baraka_fricke-ron) and [_Harvey_](/content/av/harvey) (known exceptions), there were {{ failures.size }} found{% if failures.size >0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
16+
| Non-monograph content 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 != 'baraka_fricke-ron'" | where_exp: "c", "c.slug != 'harvey'" %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Except for [_Baraka_](/content/av/baraka_fricke-ron) and [_Harvey_](/content/av/harvey) (known exceptions), there were {{ failures.size }} found{% if failures.size >0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
1717
{% if site.partial_build %}| Partial build filters useless stuff | {% assign torem = "" | split: "" %}{% assign courseslugs = site.courses | map: "slug" %}{% assign manualslugs = "engaged,nature,chan" | 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).
1818

1919
```yml

‎_tests/similar_content.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ test_cases:
4242
- [kids-these-days_harris-malcolm, debt_graeber-david]
4343
- [mn044, bhikkhuni-dhammadinna_analayo]
4444
- [teardrops-of-time_fuhrmann-arnika, i-lost-you_kalayanapong-angkarn]
45+
- [shared-characters-in-jain-buddhist-and-hindu-narrative_appleton, story-of-the-horse-king_appleton]
4546
---
4647

4748
A series of integration tests for the quality of the content recommendations.

0 commit comments

Comments
 (0)