egoist / docute

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

TypeError: r is undefined #176

Open oren opened 5 years ago

oren commented 5 years ago

When I deploy my website to github pages I don't see the content and instead there is a javascript error:

TypeError: r is undefined

Here is my website: http://oren.github.io/chinese/

and the repo: https://github.com/oren/oren.github.io/blob/b1f49cfb909c1faec745ab8c82c9a816370a2b3d/chinese/index.html

egoist commented 5 years ago

Try 4.0.7, btw your sourcePath should be /chinese/docs/

oren commented 5 years ago

Thank you!

oren commented 5 years ago

now I can't see the website when I open it with python on my laptop. instead i see:

Error response

Error code 404.

Message: File not found.

Error code explanation: 404 = Nothing matches the given URI. 
oren commented 5 years ago

I found out what causes it but I don't have a good solution. Here is the issue:

This works on github pages but not on my laptop:

sourcePath: '/chinese/docs/',

This works on my laptop but not on github pages

sourcePath: '/docs/',

Any suggestions?

egoist commented 5 years ago

Trying using a static server that supports history mode?