CrossPost allows you to write your articles once in markdown and cross post them to different platforms, like webflow, dev.to and github
Write your developer article in markdown once, publish and sync on webflow,
dev.to, GitHub, Medium & codementor.
At the moment, with CrossPost you will be able to write your developer article
in markdown using your favorite editor and automatically push/update it on
webflow and dev.to.
Check out the full tutorial
fullstack.coach
to get yourself started to write your content in markdown and to configure your
top notch IWE (Integrated Writer Environment).
So far codementor.io and Medium don’t offer an API to create articles, so that
you’ll need to follow a few more manual steps to import your articles there
(again, you can see the complete
fullstack.coach
blog writing tutorial for the necessary steps).
~ npm install -g crosspost
For now, CrossPost’s main purpose is to take a markdown file from your local
file system and publish it on webflow and dev.to with one command. After
installing CrossPost as described above, you can check out all commands by
running crosspost
in your terminal. You should encounter something like this
for CrossPost 1.1.3 version:
~ crosspost
Usage: crosspost [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
configure [options] Configure CrossPost
article [options] <file_path> Cross post markdown article 🚀
help [command] display help for command
If you never used CrossPost before, you’ll need to configure it first:
~ crosspost configure
There will be a little interview to set up the connection to the different APIs.
Visit our step by step tutorial at
fullstack.coach
to set yourself up in more detail.
Navigate to the directory of your markdown article.
~ cd articles/folder
Push an article to webflow and dev.to in one go:
~ crosspost article your-article.md
You could also just push it to webflow:
~ crosspost article your-article.md --to webflow
If you don’t know where to go after installing CrossPost do this to get an
overview over crosspost’s capabilities:
~ crosspost --help
Or do this to get details about a certain command:
~ crosspost article --help
If you really really get stuck, create an Issue on GitHub or reach out to me 😃
You shouldn’t get stuck hopefully though, if you carefully read the full
documentation post over at
fullstack.coach.
That’s the brute force way, I’ve just come up with. There is certainly a more
elegant way to do that 🙈.
npm uninstall crosspost -g
cd into/cloned/repo
npm install -g
(will install the local version globally) Now you can do~ crosspost
Thank you!
Please keep in mind that it’s an early version of CrossPost, so that bugs might
not be ruled out and some stuff might still not be documented.
Speaking of documentation, you will also need to perform some setup steps
described over at
fullstack.coach,
especially when it comes to configuring webflow to accept and display your
markdown articles (webflow does not work with markdown out of the box).
Carefully read the webflow/dev.to configurations and caveats sections from this
comprehensive documentation
post.
You may also find other cool technical blogging stuff there, by the way.