Skip to content

Commit

Permalink
Back to it
Browse files Browse the repository at this point in the history
  • Loading branch information
Khemarato Bhikkhu committed Jan 14, 2024
1 parent edc0944 commit fd6ffa0
Show file tree
Hide file tree
Showing 12 changed files with 182 additions and 8 deletions.
50 changes: 48 additions & 2 deletions .github/ISSUE_TEMPLATE/add-tag.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,56 @@
---
name: Add Tag
about: Tracking the steps required to add new tags to the site.
title: Add bibliography to the site
title: "Add '{{ name }}' content to the site"
labels: ''
assignees: buddhist-uni

milestone: 2
body:
- type: input
id: tag
attributes:
label: Tag Slug
description: The slug ID of the tag we're adding.
placeholder: e.g. pali-canon
validations:
required: true
- type: input
id: name
attributes:
label: Tag Name
description: The full name of the tag
placeholder: e.g. The Pāli Canon
validations:
required: true
- type: input
id: drivelink
attributes:
label: Drive Folder
description: A link to the folder on Google Drive.
placeholder: https://drive.google.com/drive/folders/1RJi6bEXa25zizGdsm5evCycYuY6a2D8r
validations:
required: true
---

This is a task to publish the [{{ name }}]({{ drivelink }}) folder on Google Drive as [a new bibliography/tag](https://github.com/buddhist-uni/buddhist-uni.github.io/wiki/Adding-new-tags) on the site.

This includes adding all the `course: {{ tag }}` content.
For more information on how to add content from Drive to the website, see [the content data entry guide](https://github.com/buddhist-uni/buddhist-uni.github.io/wiki/Adding-items-to-the-library).

Steps needed to accomplish this:
- [x] Add the tag as a draft to [_tags/](https://github.com/buddhist-uni/buddhist-uni.github.io/tree/main/_tags)
- Done! See **the draft tag [here](https://buddhistuniversity.net/tags/{{ tag }})**
- [x] Add suttas from the folder to the site
- [ ] Add OpenAlex academic articles in the folder to the site
- [ ] Add all other content from the public drive folder
- [ ] Add any copyrighted content (e.g. YouTube links, books, or podcasts) not shared directly in the public folder
- [ ] Add a draft set of images
- [ ] Add a description
- [ ] Add an image caption
- [ ] Audit tag content for:
- [ ] Meeting the diversity quotas
- [ ] Weeding content that shouldn't be included
- [ ] Harmony of description, images, and content
- [ ] Productionize images
- [ ] Publish the tag
- [ ] Announce the tag on the blog/newsletter
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ _site
.bundle
.sass-cache
.jekyll-cache
.gcache
.jekyll-metadata
.ruby-version
*.swp
27 changes: 27 additions & 0 deletions _content/articles/karma-masters-ethical-wound_stonington-scott.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: "Karma Masters: The Ethical Wound, Hauntological Choreography, and Complex Personhood in Thailand"
authors:
- "Scott Stonington"
external_url: "https://deepblue.lib.umich.edu/bitstream/2027.42/163632/1/aman13464_am.pdf"
source_url: "https://doi.org/10.1111/aman.13464"
drive_links:
- "https://drive.google.com/file/d/1-nr3RsH8c9YIwFZ3x4DGO2JXEbD-zmSm/view?usp=drivesdk"
course: karma
status: featured
tags:
- thai
- inner
- problems
year: 2020
month: aug
journal: "American Anthropologist"
volume: 122
number: 4
pages: "759--770"
publisher: "Wiley"
openalexid: W3081959391
---

> How can one make sense of ethical action when one is always already partly the other?
A medical anthropologist analyzes the Thai concept of the เจ้ากรรมนายเวร (*čhao kam nāi wēn*) and explores how a more porous sense of self helps Chiang Mai Buddhists to manage pain and assemble good lives.
21 changes: 21 additions & 0 deletions _content/av/krononauts_last-archive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "The Krononauts"
authors:
- "Ben Naddaff-Hafrey"
subcat: podcast
external_url: "https://www.pushkin.fm/podcasts/the-last-archive/the-krononauts"
status: featured
course: time
tags:
- america
year: 2023
month: jul
publisher: "Pushkin Industries"
series: "The Last Archive"
# number: season 4 number 6
minutes: 45
---

> We're living in a time-travel golden age. But why? What happened to time?
A short history of time travel, including the Yahoo time capsule and the birthday party Steven Hawking only announced after the fact.
3 changes: 2 additions & 1 deletion _content/av/like-a-robot_suchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ external_url: "https://www.youtube.com/watch?v=ePgNsnqWUo4"
drive_links:
- "https://drive.google.com/file/d/1Mo9L8cnhY7PbFrDhoCO7LeRAc1Xu-4W1/view?usp=drive_link"
course: emptiness
status: featured
tags:
- body
- vipassana
Expand All @@ -14,4 +15,4 @@ month: apr
minutes: 42
---

> The body is like a robot. The mind is the one who directs and tells the robot what to do. So, whatever happens to the body, the mind should stay clear. Don't get involved.
> The body is like a robot. The mind is the one who directs and tells the robot what to do. So, whatever happens to the body, the mind should stay clear.
28 changes: 28 additions & 0 deletions _content/canon/dn26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: "DN 26 Cakkavatti Sutta: The Wheel-Turning Monarch"
translator: sujato
slug: "dn26"
external_url: "https://suttacentral.net/dn26/en/sujato"
drive_links:
- "https://drive.google.com/file/d/1pEiJG4JE-eLae_UNNb8dwien-gIGHDqL/view?usp=drivesdk"
course: social
tags:
- cosmology
- problems
- time
- myth
- dn
# buddha tag covered by Nyanamoli's *Life*
year: 2018
pages: 10
parallels:
- da6
- ma70
- sht-sutta62
---

> When those seven days have passed, having emerged from their hiding places and embraced each other, they will come together and cry in one voice, ‘Fantastic, dear foe, you live!’
In illustration of his dictum that one should rely on oneself, the Buddha gives a detailed account of the fall of a kingly lineage of the past, and the subsequent degeneration of society.
This process, however, is not over, as the Buddha predicts that eventually society will fall into utter chaos.
But far in the far future, another Buddha, Metteyya, will arise in a time of peace and plenty.
38 changes: 38 additions & 0 deletions _content/canon/sn1.23.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: "SN 1.23 Jaṭā Sutta: The Tangle"
translator: bodhi
slug: "sn.001.023"
subcat: poetry
external_url: "https://suttacentral.net/sn1.23/en/bodhi"
drive_links:
- "https://drive.google.com/file/d/1ejNrmPZ9-dN5S3DwvG3dxYjVhJlrKTK2/view?usp=drivesdk"
course: nibbana
status: featured
tags:
- canonical-poetry
- vsm
- sn
# buddha tag covered by Nyanamoli's *Life*
year: 2000
pages: 1
parallels:
- sa599
- sa-2.173
- sn7.6
# Partial parallels from SC
# - g3dhp1-10
# - ja497
# - sn11.19
# - t212.7
# - t213.6
# - uv6
# - uv-kg6
# - uvs6
---

> Where name-and-form ceases,
Stops without remainder,
And also impingement and perception of form:
It is here this tangle is cut.

This generation is all tangled up like a nest of matted hair. Who can untangle this mess and how?
3 changes: 2 additions & 1 deletion _content/canon/sn7.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ year: 1998
course: imagery
tags:
- sn
- path
- vipassana
- nibbana
# buddha tag covered by Nyanamoli's *Life*
status: featured
pages: 1
parallels:
Expand Down
5 changes: 3 additions & 2 deletions _content/essays/free-will-no-such-thing_brahm.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ external_url: "https://bswa.org/teaching/free-will-ajahn-brahm/"
drive_links:
- "https://drive.google.com/file/d/10zwgDk6ZojowDsOtK2ryiOkG_ataC8fK/view?usp=drive_link"
course: emptiness
status: featured
tags:
- philosophy
- free-will
- thought
- intellect
- sati
year: 2004
month: jun
minutes: 63
---

> Where will stops, there is freedom.
In this talk, Ajahn Brahm leads his listeners through an exploration of free will and free won't from a Buddhist perspective.
Ajahn Brahm explains his belief in "Free Won't."
4 changes: 3 additions & 1 deletion _content/essays/limits-of-desciption_geoff.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ year: 2017
pages: 16
---

In this essay, Ṭhānissaro Bhikkhu discusses a debate on "not self" as either a linguistic strategy or as an ontology. Ṭhānissaro Bhikkhu objectively presents his view and the [opposing view of Venerable Bhikkhu Bodhi](/content/excerpts/anatta-as-ontology_bodhi).
Ṭhānissaro Bhikkhu defends his view that "not self" is a linguistic strategy not an ontology.

This essay is in particular a response to [Venerable Bhikkhu Bodhi's thoughtful critique of this position](/content/excerpts/anatta-as-ontology_bodhi).
3 changes: 3 additions & 0 deletions _courses/nibbana.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ We will return to Metaphor and Literalism in a few chapters, but first let us ta

We wrap up this, the main, section of our course, with a brief word on the "Radiant Mind" and related perennial topics:

{% include content_blurb.html category="canon" slug="sn1.23" %}
- A short poem (which inspired the Visuddhimagga) on how the path creates “unentangled” knowledge.

{% include content_blurb.html category="articles" slug="luminous-mind_analayo" %}
- Bhikkhu Analayo gives a careful, textual study of the supposedly “luminous” nature of the mind in early Buddhism. Is such a view supported by the early texts or is this a later development?

Expand Down
7 changes: 6 additions & 1 deletion scripts/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import re
from functools import cache
try:
import joblib
from yaspin import yaspin
from bs4 import BeautifulSoup
from google.auth.transport.requests import Request
Expand All @@ -27,7 +28,7 @@
from googleapiclient.discovery import build
from googleapiclient.http import MediaIoBaseUpload, MediaFileUpload
except:
print("pip install yaspin bs4 google google-api-python-client google_auth_oauthlib")
print("pip install yaspin bs4 google google-api-python-client google_auth_oauthlib joblib")
quit(1)

# If modifying these scopes, have to login again.
Expand All @@ -43,6 +44,8 @@
DRIVE_LINK = 'https://drive.google.com/file/d/{}/view?usp=drivesdk'
DOC_LINK = 'https://docs.google.com/document/d/{}/edit?usp=drivesdk'

disk_memorizor = joblib.Memory(git_root_folder.joinpath("scripts/.gcache"), verbose=0)

def link_to_id(link):
ret = re.search(r'/d/([a-zA-Z0-9_-]{33}|[a-zA-Z0-9_-]{44})/?(edit|view)?(\?usp=)?(sharing|drivesdk|drive_link)?$', link)
return ret.groups()[0] if ret else None
Expand Down Expand Up @@ -122,10 +125,12 @@ def session():
def youtube():
return build('youtube', 'v3', credentials=google_credentials())

@disk_memorizor.cache
def get_ytvideo_snippet(ytid):
snippet = youtube().videos().list(id=ytid,part="snippet").execute().get("items")[0].get("snippet")
return {k: snippet[k] for k in ['title', 'description', 'tags'] if k in snippet}

@disk_memorizor.cache(cache_validation_callback=joblib.expires_after(days=28))
def get_subfolders(folderid):
folderquery = f"'{folderid}' in parents and mimeType='application/vnd.google-apps.folder' and trashed=false"
childrenFoldersDict = session().files().list(
Expand Down

0 comments on commit fd6ffa0

Please sign in to comment.