This is a review of https://github.com/simonw/til
source: https://github.com/simonw/til/blob/e2e4819d33613410efa533541262599f23fd6223/build_database.py#L32
datasette
root = pathlib.Path(__file__).parent.resolve()
...
def build_database():
db = sqlite_utils.Database(repo_path / "tils.db")
for filepath in root.glob("*/*.md"):
...
Like Simon's code for simplicity. See the ReACT implementation. Original took a look at this because I was looking to refresh my blog and wanted some inspiration.
Some changes: - since my files are in Dendron, already have updated times
Created 2023-05-17T04:04:29.258000, updated 2023-05-20T16:55:36.461000 · History · Edit