Our great sponsors
-
dev-to-git
Publish a blog post (markdown file) to Dev.to from your command line or from CI with this CLI
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
If you see any mistakes, you can raise a PR to my dev.to blog repository with the neccessary changes and we can get them added to the post!
Credits to Maxime who created the dev-to-git tool that takes your markdown files and publishes them in dev.to and Bram Borggreve for creating a tutorial using Github Actions.
Here, it is all upto you. You want to create a repo for each blog post or a mono repo with all dev.to blog posts. You can start from scratch and add a package.json and a workflow yaml or you can use Maxime's dev.to template. The template is really helpful if you don't want to spend time setting things up. You can simply clone it and start writing. Maxime's template works for Travis CI so, we will start from scratch this time and refer to beeman's blog for github actions.
We have used two dependencies; prettier and embedme. Prettier is for linting and can automatically fix issues in your repo. Embedme is used for embedding source code snippets into readmes, you simply provide the path and run embedme. So before we push anything we can run yarn run prettier:check to check for linting issues and automatically fix them with yarn run prettier:write and run embedme yarn run embedme:verify to check if all paths are correct and yarn run embedme to create the embeded readme.