jupyter-book: Mysterious 404 error with github pages

Good morning!

I’m encountering a bizarre 404 error when trying to host a jupyter-book with gh-pages. I’m a jekyll newbie, but have really enjoyed the jupyter-book tool!

  1. (I believe) I’ve disabled the problematic jekyll-scholar plugin & related

  2. gh-pages assures me that Your site is published at https://chanzuckerberg.github.io/image-analysis-course/ with no reported errors

  3. As expected, the site is redirecting from https://chanzuckerberg.github.io/index.html to https://chanzuckerberg.github.io/image-analysis-workshop/intro/about

  4. The html for intro/about.html is being built correctly: https://github.com/chanzuckerberg/image-analysis-course/blob/master/_build/intro/about.html

  5. However, all pages are 404

Have you encountered this before? Would super appreciate being pointed in the right direction. Hopefully it’s user error (easiest to fix!).

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Hey @choldgraf

Thanks for your patience, we were off using jupyter-book in a workshop! It went swimmingly, and folks super appreciated the documentation format & binder integration.

I took a look through the docs, and they’re generally great. I noticed a few things you might consider:

1 - It wasn’t clear to me that the --demo book wasn’t compatible with ghpages, and it was tricky to figure out which / how to remove packages to fix it.

2 - As someone who’s never used jekyll before, it wasn’t clear to me what the relationship was between _site and _build (and that I needed to manually find and remove the demo content from _site to work).

3 - I think you’ve got a couple of dead links on this page (starting with See the guide...)

I had deleted the entire repo locally, so I just re-cloned from master, rebuilt, and pushed again with ghp-import and now it’s working fine! It’s possible I hadn’t pushed the latest build previously. Thanks for your help though!