Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 793 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 793 Bytes

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.