Skip to content

Instantly share code, notes, and snippets.

@lhoupert
Last active August 13, 2020 16:15
Show Gist options
  • Save lhoupert/00d83d4dddbd0419b1f2c63ca5c58f73 to your computer and use it in GitHub Desktop.
Save lhoupert/00d83d4dddbd0419b1f2c63ca5c58f73 to your computer and use it in GitHub Desktop.
How to publish the content of a git repository online
  1. Make sure that the master branch of the repository is up to date
  2. Make sure that the python package gh-import is installed (website)
  3. From the master branch of the directory call ghp-import and point it to the html directory my_html_dir containing the HTML files to be exported:
ghp-import -n -p -f my_html_dir

Useful additional information can be found on the jupyter-book website

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