Skip to content

Instantly share code, notes, and snippets.

@stlehmann
Created September 12, 2017 06:46
Show Gist options
  • Save stlehmann/d946fcda73091cf5b1253561d384edf3 to your computer and use it in GitHub Desktop.
Save stlehmann/d946fcda73091cf5b1253561d384edf3 to your computer and use it in GitHub Desktop.
Run mkdocs server and open a webbrowser to show the contents.
import time
import subprocess
import webbrowser
subprocess.Popen(['mkdocs', 'serve'])
time.sleep(3)
webbrowser.open('http://localhost:8000')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment