Skip to content

Instantly share code, notes, and snippets.

@developit
Last active March 25, 2024 15:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save developit/04ad7ac878b5fa35e76e to your computer and use it in GitHub Desktop.
Save developit/04ad7ac878b5fa35e76e to your computer and use it in GitHub Desktop.
Publish your docs instantly using gist & documentation-viewer
# SETUP: install documentation.js:
npm i -g documentation browser-pipe
# SETUP: install gist cli (github.com/defunkt/gist)
brew install gist
# generate docs, upload to gist.github.com, then pipe the Gist URL to Documentation Viewer in your browser:
documentation src | gist -p -f docs.json | awk '{print "https://documentation-viewer.firebaseapp.com/#"$1}' | browser-pipe
@developit
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment