Skip to content

Commit

Permalink
fix #128
Browse files Browse the repository at this point in the history
  • Loading branch information
Khemarato Bhikkhu committed Jun 24, 2023
1 parent d528458 commit 960ef17
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Archive.org Saver
on:
workflow_dispatch:
schedule:
- cron: "40 3 15 5,11 *"
- cron: "40 3 26 5,11 *"
jobs:
Archive:
env:
Expand Down
2 changes: 1 addition & 1 deletion _content/articles/compassionate-violence_gray-david.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Compassionate Violence?: On the Ethical Implications of Tantric Buddhist Ritual"
authors:
- "David B. Gray"
source_url: "https://blogs.dickinson.edu/buddhistethics/2010/05/10/ethical-implications-of-tantric-buddhist-ritual/"
source_url: "https://blogs.dickinson.edu/buddhistethics/files/2010/05/gray-article.pdf"
drive_links:
- "https://drive.google.com/file/d/17NyzeJ75Ytyy-6oXcfXGp-aq02vX4si4/view?usp=drivesdk"
course: tantric
Expand Down
2 changes: 1 addition & 1 deletion _content/articles/moral-phenomenology_simonds-colin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Buddhist Ethics as Moral Phenomenology: A Defense and Development of the Theory"
authors:
- "Colin Simonds"
external_url: "https://blogs.dickinson.edu/buddhistethics/2021/12/19/buddhist-ethics-as-moral-phenomenology/"
external_url: "https://blogs.dickinson.edu/buddhistethics/files/2021/12/Simonds_21_FD.pdf"
drive_links:
- "https://drive.google.com/file/d/1SHXvB3aLMsz5hL8VNM6YRws9m5KSLflA/view?usp=drivesdk"
course: tantric
Expand Down
2 changes: 1 addition & 1 deletion _content/excerpts/hacking-relationships_reagle-joseph.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pages: "107--125"
publisher: mit
year: 2019
month: apr
external_url: "https://direct.mit.edu/books/chapter-pdf/270049/9780262352031_cbp.pdf"
external_url: "https://direct.mit.edu/books/book/chapter-pdf/2089535/9780262352031_cbp.pdf"
hidden_links:
- "https://drive.google.com/file/d/1jR1fMMGf-Fwji3LNvfPIFF25eYxq2uOi/view?usp=drivesdk"
course: sex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tags:
- setting
- interfaith
olid: OL6859744M
external_url: "https://archive.org/download/EarlyBuddhistTheoryOfKnowledge/Early%20Buddhist%20Theory%20of%20Knowledge.pdf"
external_url: "https://archive.org/details/EarlyBuddhistTheoryOfKnowledge"
drive_links:
- "https://drive.google.com/file/d/1h86ckmJRXx6HW4n9pcAXJiuzSr1es5K8/view?usp=drivesdk"
year: 1963
Expand Down
2 changes: 1 addition & 1 deletion _content/papers/vibhava_analayo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ number: 3
pages: "558--560"
publisher: "The Department of Buddhist Affairs"
address: "Sri Lanka"
external_url: "buddhismuskunde.uni-hamburg.de/pdf/5-personen/analayo/encyclopedia-entries/vibhava.pdf"
external_url: "https://www.buddhismuskunde.uni-hamburg.de/pdf/5-personen/analayo/encyclopedia-entries/vibhava.pdf"
year: 2009
drive_links:
- "https://drive.google.com/file/d/1YMbKba66zd18Q7r66C6kTpI1CZyPAVQw/view?usp=drive_link"
Expand Down
2 changes: 1 addition & 1 deletion _courses/buddha.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ big_image: "https://github.com/buddhist-uni/big_imgs/raw/main/banners/courses/di
big_width: 2415
big_height: 1274
image_width: 2415
banner_info: <a href="https://commons.wikimedia.org/wiki/File:Ascetic_Sumedha_and_Dipankara_Buddha.jpg">Hintha</a>, <a href="https://creativecommons.org/licenses/by-sa/3.0">BY-SA 3.0</a>
banner_info: Hintha, <a href="https://creativecommons.org/licenses/by-sa/3.0">BY-SA 3.0</a>
google_doc_id: 1VJkvNR6SsJJsCAwDYCoGNw9nCKodASGqN4Js5rYB-NE
description: "A thorough tour of the Pāli texts which report the Buddha's character, accomplishments, life, and history."
epigraph: |
Expand Down
3 changes: 1 addition & 2 deletions _series/factually.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: "Factually"
authors: ["Adam Conover"]
category: av
subcat: podcast
preferred_url: "https://www.earwolf.com/show/factually-with-adam-conover/"
external_url: "https://starburns.audio/podcasts/factually/"
external_url: "https://www.stitcher.com/show/factually-with-adam-conover"
---

A comedian interviews a variety of experts to ask what nuances we might be missing from the day's headlines.
1 change: 1 addition & 0 deletions _tests/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ A series of tests checking the integrity of the _content data
| Count | {% if site.content.size > 100 %}Pass ✅{% else %}FAIL ❌{% endif %} | With {{ site.content.size }} items in the library. |
| Excessive Authors | {% assign ea = site.content | where_exp: "c", "c.authors.size > 5" %}{% if ea.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | {% assign cout = '' | split: '' %}{% for c in ea %}{% assign cout = cout | push: c.path %}{% endfor %}Found {{ ea.size }} works with more than 5 authors{% if ea.size > 0 %}:{% else %}.{% endif %} {{ cout | array_to_sentence_string }}
| External URLs are Unique | {% assign ac = site.content | where_exp: "c", "c.external_url" %}{% assign seen = "" | split: "" %}{% assign dupes = "" | split: "" %}{% for c in ac %}{% if seen contains c.external_url %}{% unless dupes contains c.external_url %}{% assign dupes = dupes | push: c.external_url %}{% endunless %}{% else %}{% assign seen = seen | push: c.external_url %}{% endif %}{% endfor %}{% if dupes.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | {% if dupes.size > 0 %}Found these duplicate URLs: `{{ dupes | join: " " }}`{% else %}No duplicate URLs found.{% endif %}
| External URLs are URLs | {% assign ac = site.content | where_exp: "c", "c.external_url" %}{% assign fails = "" | split: "" %}{% for c in ac %}{% unless c.external_url contains "http" %}{% assign fails = fails | push: c %}{% endunless %}{% endfor %}{% if fails.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | {% if fails.size > 0 %}Found these bad URLs: {% for c in fails %}[{{ c.title | split: ":" | first }}]({{ c.url }}) {% endfor %}{% else %}No URLs missing http.{% endif %}
| Drive Links are Unique | {% assign ac = site.content | where_exp: "c", "c.drive_links" %}{% assign seen = "" | split: "" %}{% assign dupes = "" | split: "" %}{% for c in ac %}{% for d in c.drive_links %}{% if seen contains d %}{% unless dupes contains d %}{% assign dupes = dupes | push: d %}{% endunless %}{% else %}{% assign seen = seen | push: d %}{% endif %}{% endfor %}{% endfor %}{% if dupes.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | {% if dupes.size > 0 %}Found these duplicate links: `{{ dupes | join: " " }}`{% else %}No duplicate links found.{% endif %}
| Course in tags | {% assign failures = site.content | where_exp: "c", "c.tags contains c.course" %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ failures.size }} pieces with the course in the tags{% if failures.size > 0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
| Sane file_links | {% assign valid_buckets = "exclusive_01,patanjali-yoga-sutra,function-data" | split: "," %}{% assign hostedcontent = site.content | where_exp: "c", "c.file_links.size > 0" %}{% assign fs = '' | split: '' %}{% for c in hostedcontent %}{% for l in c.file_links %}{% assign s = l | split: "/" %}{% if valid_buckets contains s[0] %}{% if s contains "blob" %}{% assign fs = fs | push: c %}{% endif %}{% else %}{% assign fs = fs | push: c %}{% endif %}{% endfor %}{% endfor %}{% if fs.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | {% assign count = hostedcontent.size | minus: fs.size %}{% if count > 0 %}There are {{ count }} sane links{% endif %}{% if fs.size > 0 %}The {{ fs.size }} pieces with bad buckets are: {% for c in fs %}[{{ c.title | split: ":" | first }}]({{ c.url }}) {% endfor %}{% endif %}
Expand Down

0 comments on commit 960ef17

Please sign in to comment.