Closed oren closed 5 years ago
Try sourcePath: '/'
?
Ah, I guess we can set sourcePath
to /
by default.
@issuehunt has funded $40.00 to this issue.
sourcePath: 'https://github.com/oren/oren.github.io/tree/master/new'
.yep this could solve the issue:
sourcePath: location.hostname === 'localhost' ? '/' : 'https://oren.github.io/new/'
but I found another bug, if you open https://oren.github.io/new/ it will try to load https://oren.github.io/new/new/README.md while I think https://oren.github.io/README.md should be the correct default behavior.
Closing this and maybe open another issue for this bug instead.
I added
sourcePath: location.hostname === 'localhost' ? '/' : 'https://oren.github.io/new/'
but it's not solving it - https://github.com/oren/oren.github.io/blob/master/new/index.html#L20
Also, how come that new/articles is working fine? https://oren.github.io/new/articles without any code change?
You may try 'https://github.com/oren/oren.github.io/tree/master/new'. All of your files and markdown has to be in the same place as from which you're sending index.html with docute script. I'm guessing that the articles are on your server, while the markdown is only on github. You'll have to move the articles to github for the above option to work, or move markdown to server thats hosting the website and try egoist's solution again.
I'm guessing this based your sidebar links and if you're moving stuff to the server than change those.
I apologize but I am not following your advice. Let me make sure I clarify my situation: I have README.md in the folder /new and I also have README.md in /new/articles. From some reason I don't see it being rendered on /new but I do see it when I go to /new/articles
Try sourcePath: location.hostname === 'localhost' ? '/' : 'https://oren.github.io/'
. It's still trying to access /new/new/readme
Im just guessing btw.
Not sure if the above solution is a workaround, or is dependent on the related issue about basePath being fixed.
URL: https://oren.github.io/new/ code: https://github.com/oren/oren.github.io/blob/master/new/README.md
Thanks!
IssueHunt Summary
### Sponsors (Total: $40.00) - [