rstudio / distill

Distill for R Markdown
https://rstudio.github.io/distill/
Apache License 2.0
423 stars 57 forks source link

Add an example of post in a GitHub repo and more instructions? #139

Open maelle opened 4 years ago

maelle commented 4 years ago

I've just tried out the importing functionality from a GitHub repository which worked well. "You want posts to be contained within their own Git repositories" sounds really nice.

Here's my repo: https://github.com/maelle/distill-standalone-post (and the website where I imported it https://github.com/maelle/maelle-distill)

In the docs https://rstudio.github.io/distill/blog_workflow.html#importing-a-post I'd have liked to see

jjallaire commented 4 years ago

Good suggestion. Any chance you'd consider giving us a PR for this?

francisbarton commented 4 years ago

It feels to me like there is a little bit of overlap here with some of things I found confusing or frustrating as a new user trying out distill. See #129 . I am sorry if that's not helpful.

slopp commented 3 years ago

I don't think its currently possible to import multiple posts from one GitHub repo, and it would have saved me some time if this was called out in the documentation

slopp commented 3 years ago

Note, however, that you can manually point at just the raw HTML file if it is a stand alone distill article:

distill::import_post("https://raw.githubusercontent.com/<user>/<repo>/main/<article>.html")

So I was able to workaround this limitation by importing multiple posts from the same repo manually. It may be nice if the import function handled this scenario, or if we document this workaround.