Logo

dev-resources.site

for different kinds of informations.

Runnable Tutorial Straight From Your Blog Post

Published at
2/21/2023
Categories
vscode
programming
blog
readme
Author
lizparody
Categories
4 categories in total
vscode
open
programming
open
blog
open
readme
open
Author
9 person written this
lizparody
open
Runnable Tutorial Straight From Your Blog Post

As a developer, you may often find yourself writing and reading technical blog posts, GitHub project READMEs, Stack Overflow answers and developer documentation. Have you ever wished you could click a link within any of them to launch a VS Code environment and automatically run the commands? This is a useful (and easy) way to verify that all the commands in the project are correct and the outputs/responses make sense. Also, if you have code examples this is a great way to help people quickly check them out and start experimenting.

With our latest release, you can do just that!

Letโ€™s take for example the blog post โ€œHow to Process Large Files with Node.jsโ€ which is one of our most popular blog posts.

If you click the link โ€œLaunch the demo project locallyโ€ as shown below, you will be able to run the commands inside VS Code.

Run blog posts commands

Gif tutorial run blog posts

A lot of the examples you find for frameworks, blog posts and tutorials are not really usable because they require a lot of context and setup, for example; downloading packages and setting up the required environment. Runme can take away this pain.

With Runme you can click a button instantly clone into a repository for your users, allow them to install the dependencies, and run that specific example out of the box without much setup - making your content much more accessible to your users.

How does it work?

You start by crafting a link that launches VS Code with all the desired details to successfully clone the project into your local file system. Next, it'll use the Runme extension to open the specified markdown file and render the runnable notebook. This mechanism uses the built in VS Code deep linking functionality that knows how to intelligently launch VS Code into a specified state. Along the way, VS Code will ask your permission and trust anytime it's touching your filesystem, auth or anything else sensitive.

Letโ€™s see the link:
constructing the link

vscode://stateful.runme?command=setup&[email protected]:stateful/blog-examples.git&fileToOpen=node-streams/README.md

If you donโ€™t want to use Github you can directly use a markdown link:

link to markdown

vscode://stateful.runme?command=setup&fileToOpen=your-markdown-file.md

By clicking the link, you will be able to see the README.md file with a โ–ถ๏ธ button next to the code.

run blog posts commands

And thatโ€™s it! Now you can make all your blog posts, GitHub project READMEs, Stack Overflow answers and developer documentation available with a click in VS Code.

Note: the repository will be in a temporary directory by default, but you can set it up in VS Code by going to: code > preferences > settings > Look for the Runme extension, and give it a specific path.

vs code settings

Before you go...

You can find us at @statefulhq on Twitter or on Discord. Also, if you're a VS Code user you should checkout Runme (transform READMEs into runnable notebooks), and Marquee (the open source homescreen that helps you stay organized). ๐Ÿ‘‹

readme Article's
30 articles in total
Favicon
WTF is a GitHub Profile README.md
Favicon
How to Write an Effective README File - A Guide for Software Engineers
Favicon
Lyzr-Automata powered README Generation
Favicon
๐Ÿš€ Introducing README GPT ๐Ÿค– : for Effortless README Generation! ๐Ÿš€
Favicon
Badges for Go Benchmark
Favicon
GitHub Repository README to DEV Community Post
Favicon
How to Write A 4000 Stars GitHub README for Your Project
Favicon
Can you have variables in a GitHub README file?๐Ÿค”
Favicon
How to write an Awesome README.md
Favicon
How to show diff in Markdown file
Favicon
๐Ÿš€ Quick guide to set up and customize your GitHub profile README
Favicon
How to create a customized GitHub profile
Favicon
Markdwon 24
Favicon
Algorithms and data structure
Favicon
Colors.pics is your best friend for documenting your color schemes
Favicon
README update
Favicon
Cool readme on your github profile page with github actions.
Favicon
Don't waste time to write README, use readme-ai instead
Favicon
Level Up Your Readme File ๐Ÿ“ˆ
Favicon
How to create a beautiful README for your GitHub blogs
Favicon
ร‰crire un fichier README.md
Favicon
Mastering Readme Files
Favicon
Make images responsive to light/dark mode on GitHub
Favicon
QUESTION: How many icons can be shown on your Github bio?
Favicon
Expose Your Currently Listening Song on Your Profile with Last.fm Profile Readme
Favicon
Make GitHub Readme Like Pro
Favicon
Your almost awesome GitHub profile
Favicon
Fetching YouTube videos to your GitHub README with GitHub Actions
Favicon
Runnable Tutorial Straight From Your Blog Post
Favicon
Why you should create a GitHub profile README (as a job seeking dev)

Featured ones: