egoist/docute

Do you want to work on this issue?

You can request for a bounty in order to promote it!


1 active bounty request

$100.00
Solve someone else's bounty request by clicking on it and completing the funding to earn additional credits

README.md not being applied and Title has the word undefined #237

oren posted onGitHub

  1. Why I can't see the content of README.md?
  2. Why is the title on the browser's tab say 'Undefined - Oren's Website'

URL: https://oren.github.io/new/ code: https://github.com/oren/oren.github.io/blob/master/new/README.md

Thanks!


Try sourcePath: '/' ?

posted by egoist almost 6 years ago

Ah, I guess we can set sourcePath to / by default.

posted by egoist almost 6 years ago

@issuehunt has funded $40.00 to this issue.


posted by IssueHuntBot almost 6 years ago
  1. You're supposed to host the readme.md alongside index.html. If you'd rather not you can specify the option sourcePath: 'https://github.com/oren/oren.github.io/tree/master/new'.
posted by janat08 almost 6 years ago
  1. I assume that this is caused by service worker errors, otherwise a message should've appeared indicating that readme isn't reachable.
posted by janat08 almost 6 years ago

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.

posted by egoist almost 6 years ago

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?

posted by oren almost 6 years ago

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.

posted by janat08 almost 6 years ago

I'm guessing this based your sidebar links and if you're moving stuff to the server than change those.

posted by janat08 almost 6 years ago

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

posted by oren almost 6 years ago

Try sourcePath: location.hostname === 'localhost' ? '/' : 'https://oren.github.io/'. It's still trying to access /new/new/readme

posted by janat08 almost 6 years ago

Im just guessing btw.

posted by janat08 almost 6 years ago

Not sure if the above solution is a workaround, or is dependent on the related issue about basePath being fixed.

posted by janat08 almost 6 years ago

Fund this Issue

$40.00
Funded
Only logged in users can fund an issue

Pull requests

Recent activities

janat08 submitted an output to  egoist/ docute# 237
almost 6 years ago
issuehunt funded 40.00 for egoist/docute# 237
almost 6 years ago