Github pages organization blog doesn't run jekyll build - jekyll

so, I have this github organization with its blog powered by Jekyll.
https://github.com/AvoGenie/avogenie.github.io
I would like github to run jekyll build on every commit, however currently it isn't doing it.
How can I fix this?
Any help is appreciated.
Kind Regards,
Adrian
PS: I checked google and stackoverflow but I couldn't find anything that helps me, because all guides and tutorials and docs just say, 'push to github'.

Your site seems fine to me, looking at the commits you currently have on the Github repository (latest commit on master right now = 14ca1e5).
What is different from what you expect?

So, turns out when I updated the repo I accidentally deleted the CNAME file that githubs needs in order to work with custom domains.
Two learnings from this:
Check whether you have a CNAME file when getting a 404 error on a custom domain with github pages
Also test the default username.github.io when deploying to github pages

Related

Pages on my GitHub using custom domain instead username.github.io

I try using GitHub pages to deploy my website
GitHub pages
I don't know what is causing this and I have already tried searching all setting related to GitHub pages on my account but still can't fix it.
I thought this problem is related to my GitHub student pack, because my account is connected to Namecheap and I bought a domain there and I am using InfinityFree as hosting (and parked my domain in InfinityFree). But I can't find setting about this.

Issues getting to the right file when using a google domain pointing to github pages

Apologies in advance for the painfully newbie question but I am really stuck here.
I have a Google hosted domain: techpalewi.international
That I need to link to file, which is hosted on my github user page: porcoespinho.github.io/techpalehui_international_website/scripts/index.html
So far, I have:
Created a CNAME file on my Github project, pointing to the google domain (techpalewi.international)
I have created the Custom resource records as advised in github pages (i.e. A pointing to 192.30.252.153 and 192.30.252.154. And a CNAME record pointing to my github pages project repo: porcoespinho.github.io.)
So far I can get to the right page if I type:
http://techpalewi.international/scripts/index.html
but not if I only type the domain name:
http://techpalewi.international/
Can you please advise how I can get to the right file only pointing the domain name?
Thank you,
Luis
Kudos to Ryan Burgess # Netflix who kindly answered this question offline:
It turns out that when one uses a custom domain on GitHub pages, it defaults to landing the project's root page. Thus, the most efficient solution was to move the HTML and CSS files out of the scripts directory and into the root directory. This did the trick masterfully !!!!

Google Maps API V3 Infobox.js removed

One of our production pages stopped working properly.
Tracked it down to the fact that one of the dependencies does not exist anymore:
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js
This URL is used in most of the example codes that were the basis of the webpage.
This is probably easily solved but a quick google showed no one has noticed this, I think it has happened in the last hour and just wanted to put the information out there in case people are panicking.
It seems that the library is being moved to Github (it seems the infobox.js wasn't moved yet), see the announcement on main page: https://code.google.com/p/google-maps-utility-library-v3/
But still, the problem with your code is that it's not a good practise to reference code from code.google.com svn repository. It's like referencing a code from Github, it can be changed/moved/removed any time. You should either download the code and include it in your project as .js file or host it yourself on some CDN server.
UPDATE
The google utility library (including infobox) is hosted here on github now. As said before, it's not mean to be referenced from there in projects.
As Google moved the source over to GitHub a while back, the new GitHub version can be accessed from RawGit by using the following script urls (standard and packed versions):
https://cdn.rawgit.com/googlemaps/v3-utility-library/master/infobox/src/infobox.js
https://cdn.rawgit.com/googlemaps/v3-utility-library/master/infobox/src/infobox_packed.js
Whilst the above urls (with the cdn prefixes) have no traffic limits or throttling and the files are served via a super fast global CDN, please bear in mind that RawGit is a free hosting service and offers no uptime or support guarantees.
Accessing files maintained via GitHub is covered in more detail in the following SO answer:
Link and execute external JavaScript file hosted on GitHub
This post also covers that, if you're linking to files on GitHub, in production you should consider targeting a specific release tag to ensure you're getting a specific release version of the script.
For example, you could target the 1.1.13 release of the InfoBox library with the following script urls (standard and packed versions):
https://cdn.rawgit.com/googlemaps/v3-utility-library/infobox/1.1.13/src/infobox.js
https://cdn.rawgit.com/googlemaps/v3-utility-library/infobox/1.1.13/src/infobox_packed.js
Alternatively, you could download and include the library directly in your project for production purposes.
As an emergency fix I copied the code from here:
https://code.google.com/p/google-maps-utility-library-v3/source/browse/trunk/infobox/src/infobox.js?r=466
and linked locally. This appears to work fine for a quick fix but I will need to look for an alternative that see active updates.
Google code is apparently shut down per the announcement
Bidding farewell to Google Code
Thursday, March 12, 2015
January 25, 2016 - The project hosting service is closed. You will be able to download a tarball of project source, issues, and wikis. These tarballs will be available throughout the rest of 2016.
Certainly wasn't clear from the post that they were going to stop making the hosted code available for use externally.
Managed to get back the Infobox (v.1.1.13) script from the browser cache.
Can be downloaded from http://pastebin.com/PGciVVur, hope this helps someone
I linked to this github repo that seems to be a similar one and my site works again:
https://raw.githubusercontent.com/oytunyuksel/Google-Maps-Infobox.js/master/src/infobox.js

Github pages: Why do I need a gh-pages

I have deployed a personal blog using Github pages and I see that some tutorials tell you to create a gh-pages branch. I did that, however, my changes to the website are visible only if I make changes to my master. So, I'm confused as to why I need gh-pages? Can someone please explain this. Thanks
You no longer need a gh-pages branch. GitHub now allows pages to be published from the master branch, or from a docs folder in master.
You host one website per github person or organization on the master branch. This is used for a personal website or organization website.
Such a personal or organization site is hosted on username.github.io in a dedicated repo in the master branch.
My personal blog for example is on takacsmark.github.io, it is hosted in a repo called https://github.com/takacsmark/takacsmark.github.io, the code is in the master branch of the repo and takacsmark.com is pointed to this site via the CNAME file in the repo.
In case you want to create a dedicated site for a project on github, you can create a project level github page. This means that it is not a separate repo, like the personal website example above. Instead, it should be under the gh-pages branch of the project repo.
Check out the bootstrap repo for a project gh-pages example.
There can be two types of pages on GitHub. The first type has the files in the master branch and the repo has to be named the same way as the <username|organization>.github.{io|com}. There can be only one repository of this type.
The url of the pages is: http://<username|organization>.github.io or .com
The second type of pages doesn't put any restriction to the repository name, but the pages need to be in the gh-pages branch.
The url of the pages is: http://<username|organization>.github.io/<repo_name> or .com
More details here.

Using Github login with a Django project

I'm working on making a site that allows login with Github and I'm using Django for this. I've gotten as far as redirecting the user to the github authorization page, and then redirecting the user to another part of my project after successful authorization. My question is then: How do i extract such things as the users username and other values? I imagine that a JSON object is sent to me, but how do I use it and where do I get it? I have never done anything like this before, so it might be obvious but if anyone could help me it would be appreciated. Bear in mind that I'm a newbie in Django.
Github login is just OAuth. There is full documentation on Github's dev site on how to do it manually, but you probably want to use one of the many Python libraries which make the process easier such as python-social-auth or django-allauth.
Check out:
https://developer.github.com/guides/basics-of-authentication/
But there is package with this functionality:
python-social-auth