Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Names starting with underscore shows errors Page doesnot exists for gh-pages branch

Tags:

I have an issue with gh-pages of github. The html pages which start with _ ( underscore ) shows the error.

Page does not exist! Read the Full Documentation Instructions for setting up username.github.com and stuffs. 

For eg : Lets take an example

https://github.com/harikt/docs/blob/gh-pages/api/Aura.Di/_src.html

is the source

It should render at http://harikt.github.com/docs/api/_src.html

But currently its not. It only happens for the names starting with _ ( underscore ). Let me know if anyone have the same issue or can it be resolved without renaming it ?

like image 913
Hari K T Avatar asked Jun 18 '11 17:06

Hari K T


People also ask

How do I enable GH pages?

Go to your GitHub repository, click on the settings tab, and scroll down to the GitHub Pages section. The branch should be configured to gh-pages and the folder set to / (root) as illustrated below. Note the URL for the website, you will use it later in the guide.

How do I fix Error 404 on GitHub?

Solution: Verify the publishing source and published URL from your repository's settings tab. Double check that you are using the correct URL by visiting your repository's Settings, and scrolling down to the GitHub Pages section. You should see the URL where your site is published.

Why is GitHub showing 404 error?

If you saw 404 even everything looks right, try switching https/http. The original question has the url wrong, usually you can check repo settings and found the correct url for generated site.

What is Nojekyll?

When publishing an Antora site to GitHub Pages, it's necessary to an empty file to the root directory named . nojekyll . The existence of this file tells GitHub Pages not to run the published files through Jekyll.


1 Answers

As of December 27, 2009, you can completely opt-out of Jekyll processing by creating a file named .nojekyll in the root of your pages repo and pushing that to GitHub. This should only be necessary if your site uses directories that begin with an underscore, as Jekyll sees these as special dirs and does not copy them to the final destination.

https://github.com/blog/572-bypassing-jekyll-on-github-pages

like image 183
Tekkub Avatar answered Oct 11 '22 08:10

Tekkub