Questions tagged [github-pages]

GitHub pages are static web pages hosted on GitHub.

github-pages
Filter by
Sorted by
Tagged with
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 ...
wayofthefuture's user avatar
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): ...
Dave Dopson's user avatar
  • 42.2k
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-...
Jitendra Vyas's user avatar
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 ...
emmby's user avatar
  • 100k
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 ...
kashyap's user avatar
  • 5,278
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 ...
Jonathan de M.'s user avatar
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. ...
Christian Rondeau's user avatar
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 ...
Jatin Ganhotra's user avatar
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 ...
exexzian's user avatar
  • 7,812
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 ...
Akshat Jiwan Sharma's user avatar
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 ...
dyzdyz010's user avatar
  • 2,326
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 ...
Jonathan's user avatar
  • 3,439
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 ...
Pierre Prinetti's user avatar
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...
MYjx's user avatar
  • 4,337
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 ...
alpha9eek's user avatar
  • 1,449
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?
Ratan Senapathy's user avatar
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/...
anjanesh's user avatar
  • 4,025
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/...
Doug's user avatar
  • 2,531
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 ...
davidrpugh's user avatar
  • 4,453
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 ┆ ...
Oriol's user avatar
  • 12.1k
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://...
Atif Ali's user avatar
  • 2,506
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.
HP.'s user avatar
  • 19.5k
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. ...
Chris Pietschmann's user avatar
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 ...
user avatar
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. ...
A9S6's user avatar
  • 6,625
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 ...
Anmol Saraf's user avatar
  • 15.4k
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 ...
Florian Wolters's user avatar
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 ...
Samuel's user avatar
  • 6,077
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 ...
Brock Boland's user avatar
  • 16.3k
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 ...
Cory Gross's user avatar
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-...
Mailo Světel's user avatar
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 ...
Jon's user avatar
  • 1,069
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://...
Leon Gaban's user avatar
  • 38.2k
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/...
NiKo's user avatar
  • 11.3k
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-...
rubik's user avatar
  • 8,914
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 ...
Ben Everard's user avatar
  • 13.7k
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 ...
Dror's user avatar
  • 12.6k
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? ...
Ever's user avatar
  • 1,164
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 ...
trante's user avatar
  • 33.7k
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
ThomasReggi's user avatar
  • 57.2k
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-...
Davis Raimon's user avatar
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 ...
Max's user avatar
  • 9,577
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"> ...
Rokin's user avatar
  • 2,077
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 ...
false_azure's user avatar
  • 1,403
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....
Jason Hoffmann's user avatar
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 ...
Mike's user avatar
  • 1,569
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 ...
Jay's user avatar
  • 3,475
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?
hatmatrix's user avatar
  • 43.9k
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 ...
Benjamin Sommer's user avatar
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. ...
bremen_matt's user avatar
  • 7,142

1
2 3 4 5
100