Questions tagged [github-pages]
GitHub pages are static web pages hosted on GitHub.
github-pages
4,987
questions
598
votes
31
answers
1.5m
views
Authenticate with GitHub using a token
I am trying to authenticate with GitHub using a personal access token. In the help files at GitHub, it states to use the cURL method to authenticate (Creating a personal access token). I have tried ...
531
votes
23
answers
468k
views
How to add color to GitHub's README.md file
I have a README.md file for my project underscore-cli, and I want to document the --color flag.
Currently, the only way to do this is with a screenshot (which can be stored in the project repository):
...
528
votes
11
answers
425k
views
How to see an HTML page on Github as a normal rendered HTML page to see preview in browser, without downloading?
On http://github.com developer keep the HTML, CSS, JavaScript and images files of the project. How can I see the HTML output in browser?
For example this: https://github.com/necolas/css3-social-...
337
votes
9
answers
135k
views
Hosting a Maven repository on github
I have a fork of a small open sourced library that I'm working on github. I'd like to make it available to other developers via maven, but I don't want to run my own Nexus server, and because it's a ...
271
votes
13
answers
128k
views
Private pages for a private Github repo
Couldn't find anything in the github documentation and also here on SO. But I was wondering if there could be a http://foo.github.com for a private repository named foo which is accessible only one ...
259
votes
46
answers
354k
views
How to fix HTTP 404 on Github Pages?
Here is my GitHub repository on the gh-pages branch.
Everything looks good, I have my index.html, my CSS, JS and pictures folders.
But when I access http://roine.github.com/p1 I get HTTP 404 not ...
237
votes
23
answers
137k
views
Is there a link to GitHub for downloading a file in the latest release of a repository?
Using GitHub's Release feature, it is possible to provide a link to download a specific version of the published software. However, every time a release is made, the gh-page also needs to be updated.
...
235
votes
7
answers
258k
views
Why call git branch --unset-upstream to fixup?
I'm more of a novice when it comes to advanced operations in git. I maintain my blog using the blogging framework Octopress. Though Octopress is not under any development since 2011, it serves my ...
231
votes
12
answers
106k
views
How to add Google Analytics Tracking ID to GitHub Pages
Could be a simple question but I am full of doubts right now about adding Google Analytics Tracking ID to GitHub page.
I am using GitHub automatic page generator to create my GitHub page but it asks ...
176
votes
9
answers
146k
views
Can I create more than one repository for GitHub Pages?
I created a repository for hosting a blog on GitHub.
Is there any way that I can create additional repositories to host multiple blogs, or am I limited to just one since username.github.io can only ...
162
votes
9
answers
186k
views
How to publish a website made by Node.js to Github Pages?
I made a website using Node.js as the server. As I know, the node.js file should start working by typing commands in terminal, so I'm not sure if Github Pages supports node.js-hosting. So what should ...
150
votes
48
answers
153k
views
GitHub pages are not updating
I'm running into a weird issue with GitHub pages. I pushed a new commit to my personal pages page maltzj.github.io, but the new article isn't showing up there. When I execute the server locally, a ...
144
votes
12
answers
75k
views
How to force GitHub Pages build?
Every GitHub repository can have (or be) a GitHub Pages website, that can be built with Jekyll. GitHub builds the site every time you push a new commit.
Is there a way to force the refresh of the ...
142
votes
4
answers
127k
views
How long does it take for GitHub page to show changes after changing index.html
I am just wondering how long does it take for GitHub page to show the new items that I have added to the repository.
I changed index.html but after 10 minutes it still showed up the previous page...
124
votes
1
answer
322k
views
Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g [duplicate]
Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes.
I was trying to push local octopress blog to remote branch.
But its ...
118
votes
15
answers
82k
views
Github Pages site not detecting index.html [closed]
I created a GitHub pages repository. For some reason when I name it
https://[username].github.io, it doesn't work, but it works when I name it https://[username].github.io/index.html.
Why?
111
votes
13
answers
158k
views
How to link files directly from Github (raw.github.com)
Are we allowed to link files directly from Github ?
<link rel="stylesheet" href="https://raw.github.com/username/project/master/style.css"/>
<script src="https://raw.github.com/username/...
111
votes
2
answers
49k
views
Can you see who is watching a repo on GitHub?
It looks like there is an API call to view the users that watch a repo from [GithubDeveloper]:(https://developer.github.com/v3/activity/watching/#list-watchers)
List watchers
GET /repos/:owner/:repo/...
108
votes
1
answer
93k
views
How do I generate the GitHub OAuth token for organization accounts?
I have created an organization on GitHub. My organization has some repos. These repos have API documentation that I would like to re-build and publish to gh-pages branch via Travis-CI. In order to ...
105
votes
10
answers
69k
views
Set subdirectory as website root on Github Pages
I'm using Github Pages to host & serve a static website.
The static website has the typical directory structure for an app:
.
├ source/
├ build/
│ └ index.html
├ .gitignore
├ config.rb
├ Gemfile
┆ ...
104
votes
3
answers
79k
views
How to fix: Domain does not resolve to the GitHub Pages server. Error in Github Pages for custom domain setup with Enforce HTTPS Enabled?
So I am trying to get a custom domain to work with my github pages user site. I have followed pretty much the standard procedure for doing this as follows: (recommended by github here too: https://...
100
votes
6
answers
12k
views
Escape pound or number sign in Github issue tracker
If I type #1 when creating an Issue in Github, it will reference to Issue ID 1. Is there a way to avoid this by escaping the # sign? I just need it to be regular text.
98
votes
1
answer
92k
views
GitHub Pages for Private Repository [closed]
Anyone know if there's a way to create GitHub Pages for a Private Repo?
I was just thinking about the possibility to use GitHub Pages to host a small website, but keep the source repository private. ...
92
votes
33
answers
151k
views
Why does my GitHub page not update its content?
I've been following the official guide @ pages.github.com
So far I've created the local repo and pushed it to GitHub, but, whatever change I do, I can see it in my repo at GitHub but not in my GitHub ...
90
votes
11
answers
64k
views
Send email from static page hosted on GitHub Pages
I have hosted a single static HTML page using GitHub Pages. I need to add a "Send Feedback" feature to my static page where a user can type in his name, email, comments and click the SUBMIT button. ...
85
votes
2
answers
55k
views
How to publish .php page instead of .html at github to demo some php content?
I am looking at the following demo - http://blueimp.github.com/jQuery-File-Upload/
To my understanding in the demo, php files are being served from github which means php content can be served / run ...
85
votes
3
answers
23k
views
Multiple GitHub Pages and custom domains via DNS
I want to have one user page and multiple project pages hosted by GitHub Pages but available under ONE custom domain (with subdomains for each GitHub Pages repository, of course). So my goals are as ...
84
votes
8
answers
40k
views
How to support latex in GitHub-pages?
I use jekyll to write post and show it in GitHub-pages. My source file is written with markdown.
How can I insert formula into the markdown file?
I don't want to save the formula into an image and ...
82
votes
4
answers
15k
views
Jekyll on Github Pages: any way to add footnotes in Markdown?
I've recently switched over to using Jekyll on Github Pages for my various blogs, and love that I can just push Markdown to Github and they handle the processing. I'd like to continue using it this ...
81
votes
10
answers
11k
views
How can I sync documentation with Github Pages?
I have a project together with several people and we have a README.md file with a bunch of GitHub Flavored Markdown that is rendered on our GitHub page. We also set up a GitHub Pages branch which is ...
79
votes
8
answers
19k
views
What is the best approach for redirection of old pages in Jekyll and GitHub Pages?
I have blog on github pages - jekyll
What is the best way to solve url strategy migration?
I found the best practice in common is create htaccess like so
Redirect 301 /programovani/2010/04/git-co-...
77
votes
6
answers
19k
views
How do I use disqus comments in github pages blog (Markdown)?
Is it possible to integrate disqus html comments in a blog using github-pages? I like the idea of using github, jekyll and markdown to manage my site and blog for simplicity. However, I'd like to ...
71
votes
32
answers
192k
views
My new Github page isn't showing up
So I'm following this guide here to create a Github page
I created a repository, cloned it to my project directory and pushed, finally got to this last step:
Fire up a browser and go to http://...
70
votes
9
answers
23k
views
301 redirect for site hosted at github?
Here's a Github repository of mine: https://github.com/n1k0/casperjs
There's a gh-pages branch to hold the project documentation, which is basically the project website: https://github.com/n1k0/...
70
votes
9
answers
58k
views
git branch: gh-pages
I have a repo on GitHub. Recently I have discovered GitHub's pages and I want to use them.
I would like to create this new branch and then, when I need to, either commit on master branch or on gh-...
68
votes
8
answers
17k
views
Github: Mirroring gh-pages to master
I'm developing a jQuery plugin that's being hosting on GitHub. It has a demo included of which I'm manually copying and pushing to the branch gh-pages, what I'd like to do is have it so when I push a ...
68
votes
10
answers
36k
views
Unable to set favicon using Jekyll and github pages
I am trying to set a favicon.ico for my github page, but it doesn't work. When I serve it locally I see the standard "empty" favicon and when I push it I see the facebook icon. Why is it so? I have ...
67
votes
10
answers
27k
views
How to change the default order pages in Jekyll?
My blog is built with Jekyll on Github. In the navigation bar, the default order is Pages, Messages, About, Archives. I want to change the list to Pages, Archives, About, Messages. What should I do?
...
67
votes
5
answers
22k
views
Github pages, HTTP headers
I serve some of my files from my Github pages account. But when I check my "js" files' headers, I saw following:
Last-Modified:Sun, 10 Feb 2013 14:00:46 GMT
Expires:Sun, 10 Feb 2013 14:13:23 GMT
...
65
votes
7
answers
35k
views
Can github pages CNAME file contain more than one domain?
Can github pages CNAME file contain more than one domain?
Example file:
reggi.com
www.reggi.com
blog.reggi.com
64
votes
16
answers
67k
views
Treating warnings as errors because process.env.CI = true. Failed to compile
I am working on a react-weather application for self learning purpose.
Deployed the same in gh-pages.
URL
https://davisraimon.github.io/react-weather/
Repo
https://github.com/davisraimon/react-...
58
votes
5
answers
42k
views
Cross-Origin Resource Sharing on GitHub Pages
Is there a way to enable Cross-Origin Resource Sharing (CORS) for a static page hosted on GitHub Pages to allow cross-origin requests in Javascript?
For example, can we instruct GH Pages somehow to ...
57
votes
6
answers
36k
views
Favicon with GitHub Pages
I'm hosting a few sites with GitHub Pages (User and Project Pages), but they are not displaying their favicons (in the browser).
<link rel="shortcut icon" type="image/png" href="/favicon.png">
...
56
votes
8
answers
44k
views
Can I have my GitHub Pages index.html in a subfolder of the repository?
I'm trying to use GitHub pages to host a Doxygen site. Ideally, I'd like to be able to push the generated files and directories to GitHub without having to tweak them at all.
This, however, means ...
55
votes
8
answers
27k
views
Remove html extension from GitHub Pages
I'm using GitHub pages to host my latest site:
http://mysite.github.io/
I was wondering if there was a way to remove the .html extension from the end of sub-pages:
http://mysite.github.io/contact....
55
votes
4
answers
24k
views
Generating a list of pages (not posts) in a given category
I am using Jekyll as a static generator for a website (not a blog), and I want to have an automatically generated list of all pages on my index page. Specifically, I want to have different categories ...
54
votes
1
answer
16k
views
How do I set up GitHub Pages to redirect DNS requests from a subdomain (e.g. www) to the top-level domain (TLD, Apex record)?
How do I configure a DNS service provider in such a way that requests to both www.example.com and example.com would show a website hosted on GitHub Pages? My browser's address bar should contain ...
54
votes
5
answers
35k
views
Is there an alternative to .htaccess for GitHub Pages?
I understand that .htaccess is not supported by GitHub Pages. Is there an alternative for password-protecting particular directories for websites hosted by GitHub Pages?
53
votes
4
answers
46k
views
Get Github Pages Site found in Google Search Results [closed]
I have a site built with Jekyll Now on GitHub and I want it to appear in a google search. If I just google my GitHub username followed by 'GitHub' and 'io', it does not find my site. How do I get ...
51
votes
1
answer
20k
views
Subdomain of website for Github pages project
I have a Github project, github.com/jeti/matrix, and I set up a "Github pages" site for the project so that it is accessible here jeti.github.io/matrix/.
That is all configurable through Github.
...