DEV Community

Marcos Maia
Marcos Maia

Posted on

Can the text for a blog post in dev.to be loaded from a github markdown file directly?

I would like to keep my blog posts in a github repository and load them directly here only by referencing the specific path to the md file. Is it possible? What's the recommended approach?

Top comments (8)

Collapse
 
thegroo profile image
Marcos Maia • Edited

Just found this other post which enables you to use Github actions to get it done. Haven't tested it but seems like a good alternative solution.

dev.to/azure/auto-posting-to-devto...

Collapse
 
rhymes profile image
rhymes

Hi Marcos, other than using RSS you have another option: use the articles API.

@timdeschryver wrote an extension to use it

Basically you'd take your markdown and post it to DEV via the extension.

FYI there's also a feature request to have DEV interact with Git:

Feature Request: Access my posts via ssh&git #220

c33s avatar
c33s commented on May 23, 2018

TASK or Feature

Request or User Story

i fear that this is out of scope of this awesome community, but maybe you like the idea. on gitlab you can every repo can have a wiki, the wiki can be edited via the normal webinterface but the wiki is a normal git repo so you also can simply clone the wiki repo locally and edit it, push it back or somewhere else.

it would be soooo awesome if i would be able to access my posts like ths. it also would make #219 obsolete

Collapse
 
thegroo profile image
Marcos Maia

Seems good. I will take a look at this, thank you very much for sharing.

Collapse
 
perlatsp profile image
Perlat Kociaj

Hey Marcos, this seems a nice idea of keeping your blog posts in git and controlling the via git versions. A briefly idea at this time comes on my mind if you use git hooks, and as soon as you push you set a git gook to connect via dev.to api and publish the post.

Collapse
 
thegroo profile image
Marcos Maia

This, looks to me a promising possible way to do it. I will look into the dev.to APIs further. Thank you!

Collapse
 
nektro profile image
Meghan (she/her)

I would public site in a github repo with a static site generator for blogs that posts on github pages and has either native or plugin support for making an rss feed and then adding that URL to dev.to/settings/publishing-from-rss

Collapse
 
thegroo profile image
Marcos Maia

Yes, this might work. I will definitely consider it. Thank you!

Collapse
 
thegroo profile image
Marcos Maia • Edited

Found this post which has a partial solution for this: dev.to/maxime1992/manage-your-dev-... , cool stuff.