If I try to capture a GH repo (this for example GitHub - sgan81/apfs-fuse: FUSE driver for APFS (Apple File System)) DT will create bookmark instead of a non-clutered markdown (as requested). Till then, that could be normal, but the problem is that if I click on the bookmark and DT tries to open it, DT crashes.
WFM, though not with MD uncluttered – the option is greyed out. DT 3.9 on macOS 13.2.1
Do you really want to capture “the repository” or rather the HTML shown on GH when you click on the link you posted? These two things are miles apart, and for “capturing” a repo I’d suggest git clone rather than DT.
Also, when I save the bookmark in DT, clicking on it leads to GH, no crash at all.
@lpuerto Same here, when i use the “Clip to DEVONthink” extension in Safari, clipping to a Markdown, it works just fine, as does making a working bookmark when picking that option. macOS 13.2.1 and DEVONthink 3.9. No crashes in DEVONthink.
I’m trying to understand what you’re doing and why. Since there might, just might, be another, perhaps better way.
Also, you said that you’re trying to capture “a repo”, which is very much not what you’re doing (nor even trying). Just another reason to ask questions.
Another possibility would be to copy the link to the Readme.md (right click) in GitHub and then “Create new Document from Clipboard” in DT. WFM, too.
Yes. And as I said before, capturing the link works for me. But then I’m on Intel, too.
What is the best way of capturing a Markdown file from Github, with the ability to easily refresh it in the future (the way one can refresh a Web Archive)?
The file might be there but it ain’t gonna be here if I don’t have an Internet connection. Also, if I search in DT for terms present in the Markdown file published on Github, I’m not going to find it if it’s just a bookmark…
tell application id "DNtp"
repeat with theRecord in selected records
set theURL to URL of theRecord
if type of theRecord is webarchive and theURL ends with ".md" then
set theMD to source of theRecord
set theName to name of theRecord
create record with {name:theName, URL:theURL, type:markdown, content:theMD} in (location group of theRecord)
end if
end repeat
end tell