egoist / docute

📚 Effortless documentation, done right.
https://docute.egoist.dev
MIT License
3.8k stars 427 forks source link

Why does mode: history not working (github pages)? #209

Open oren opened 5 years ago

oren commented 5 years ago

Here is my test website - http://oren.github.io/new/

clicking on a url from the sidebar, for example - http://oren.github.io/new/ai.md, causing 404 on the 'fetch' of ai.md and the page is not showing.

That's the code: https://github.com/oren/oren.github.io/blob/fca5c6fb69c19c3602363bd0acaaca65b51d70cd/new/index.html

egoist commented 5 years ago

Yes GitHub Pages doesn't support this.

egoist commented 5 years ago

For GitHub Pages, it will work if you can rename index.html to 404.html, however the response status code will be 404 😅

It's recommended to use Netlify, ZEIT now or Render.com instead if you want to use history mode