0

I wrote a documentation for our software using sphinx using the classic look.

Following the instructions on https://page.github.com i created the project jodyxha.github.io.

I then copied the contents of my build/html subdirectory of the sphinx directory to my local github.io directory (including the subdirectory "_static", which seems to contain the css and js files needed for the classic look). I added all, committed and pushed.

When i point my browser to https://jodyxha.github.io i can see the contents, but it looks like the css files are not found (no sidebars, no layout, etc).

What do i have to do to get my pages displayed with the correct style?

barryhunter
  • 20,886
  • 3
  • 30
  • 43
user1479670
  • 1,145
  • 3
  • 10
  • 22
  • seems to me that folder starting with an `_` cannot be used in github pages – schmelto Oct 19 '22 at 08:40
  • This could be right - trhe directory containing images is called "_images", and the image arent' displayed, either. – user1479670 Oct 19 '22 at 11:03
  • The problem is that sphinx assigns those names, and there are hundreds of references to images and style sheets. I would have to do these replacements every time i push new or modified pages. Is it perhaps possible to tell sphinx to use the directories "static" and "images" instead of "_static" and "_images""_images"? – user1479670 Oct 19 '22 at 11:20
  • 1
    Maybe it works if you add a `.nojekyll` file? https://stackoverflow.com/a/39691475/407651 – mzjn Oct 21 '22 at 15:14
  • Adding the ``.nojekyll`` file rresolved the issue. Thanks! – user1479670 Oct 30 '22 at 09:15

0 Answers0