ducin
ducin

Reputation: 26437

gh-pages subdirectory files aren't shown up

I have following github page displaying some HTML already: http://json-schema-faker.github.io/json-schema-faker/

this is the source repo (gh-pages branch): https://github.com/json-schema-faker/json-schema-faker/tree/gh-pages

Although top-level directory files work perfectly fine:

the lower-level directories files don't work at all, e.g.

The files are there, uploaded in the repo in gh-pages branch. What is wrong?

Upvotes: 13

Views: 2879

Answers (1)

David Jacquel
David Jacquel

Reputation: 52799

Github pages is using Jekyll as default site generator.

Default behavior for jekyll is to ignore folders and files with a name that begins with an underscore (except if you configure jekyll not to ignore them. See include key in documentation).

Fastest resolution : instruct gh-pages not to use jekyll to process and publish your pages, but just copy all your files on the web server.

To do so, just create an empty .nojekyll file at the root of your gh-pages branch. Push. And everything is OK.

Upvotes: 21

Related Questions