Skip to content

Generates a Onebox element from an URL and fetches some stylesheets.

Notifications You must be signed in to change notification settings

augustjanse/onebox-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onebox-cli

Generates a Onebox element from an URL and fetches some stylesheets. Most of the effort went into figuring out what stylesheets from discourse/discourse that I needed to make it look good. Also necessary parts from phw/discourse-musicbrainz-onebox, which is written as a Discourse plugin.

Run

bundle

before running. Additionally depends on git and wget. Then run

ruby onebox-cli.rb [url]

which will output an HTML element that you can paste in your HTML and a style.css that you can include. Optionally, you can install xclip and do

ruby onebox-cli.rb [url] | xclip -selection c

to get it straight to your clipboard.

About

Generates a Onebox element from an URL and fetches some stylesheets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published