serra/sphinx-with-markdown

`.nojekyll`

Closed this issue · 1 comments

kousu commented

How did you get https://github.com/serra/sphinx-with-markdown/blob/7331113/.nojekyll on your gh-pages branch created?

I'm trying to do the same but my sites aren't rendering right: https://kousu.github.io/neuropoly-docs4/

2021-10-27-010946_1446x1001_scrot

The problem seems to be that everything in a directory starting with an _ is blocked.

But, taking a clue from your repo, adding .nojekyll to the gh-pages branch fixed it: https://kousu.github.io/neuropoly-docs5/

2021-10-27-010956_1475x996_scrot

The only difference between the two branches is .nojekyll:

2021-10-27-011016_698x781_scrot

2021-10-27-011009_759x832_scrot

I see in the Action you used there's some code addressing this:

https://github.com/crazy-max/ghaction-github-pages/blob/5613bd50866e362215626e2a8f2703392c9e33b1/src/main.ts#L90-L93

but it doesn't look like you're using that? What happened? Did the Action change between now and the last time you ran it?

kousu commented

Oh I figured it out. It's https://www.sphinx-doc.org/en/master/usage/extensions/githubpages.html isn't it?

Yes that's exactly it:

'sphinx.ext.githubpages',