Search code examples
angularjsgithubgithub-pages

gh-pages : some pages missing (404)


I am trying to setup a github site: https://github.com/derlin/semantic-modals/tree/gh-pages. I use the ng-include directive, for example:

<div ng-include src="'_main.html'">

at different places, but none of them works.

I tried to rename my files, move them from the html folder to the root, I always end up with a 404.

I can display any of my files in the browser, for example: http://derlin.github.io/semantic-modals/vendor/semantic/semantic.min.css, but http://derlin.github.io/semantic-modals/_main.html or http://derlin.github.io/semantic-modals/_editModalContent.html systematically fail (even after move/rename).

Why are those files "invisible" for github.io while existant in the gh-pages branch of my repo ?


Solution

  • GH pages is assuming your branch is the output of a jekyll build, from the docs

    By default, Jekyll does not build any files or directories that

    • contain site content (indicated by names that start with _); or are excluded in the site configuration.

    The workaround is to create a file called .nojekyll in the root path to turn off Jekyll