Simpler GitHub Pages publishing
github.com
github.com
http://scrollscore.com/ "the more you scroll, the more you win!"
https://github.com/amberrayh/scrollscore/tree/gh-pages
Thanks, Github, for making pages even better!
What year is this? How is this still a thing?
Also, if you look at the source, you'll see that the form doesn't actually post anywhere. It's a joke demo.
1. concerns about HTTPS are legit.
2. I'd really rather see the $$$ you're making as my score, than this arbitrary number on the side.
3. let's get more/different ads up there!
1. The overwhelming majority of users use one of those three design patterns. For example, I can tell you that more than 98% of GitHub Pages sites use either `master` or `gh-pages` as their primary branch (with only about one tenth of one percent of sites using the `stable` branch).
2. Our experience tells us that every option we add to GitHub Pages increases the learning curve for newer developers. With only those three options, if you're just learning HTML, you don't need to understand Git's branching model before you can create your first website.
We chose these options to start because we thought they struck a good balance between supporting collaborative documentation workflows for open source projects and encouraging "hello world" experimentation among new developers, but as with most features at GitHub, this is just the start.
You have two choices to make: which branch and which path within that branch. The defaults are "master" and "docs," but allowing maintainers to make different choices there doesn't need to impact the onboarding experience for new developers. The newbies use the defaults - people who need customization can customize. Software development is a broad field and projects work within various constraints and architectures. Asserting a convention here feels a bit misguided.
You already allow the default branch to be customized. It's a bit weird that I can specify a default branch (like "develop") and delete the master branch, but then won't be able to publish docs without recreating master or maintaining a gh-pages branch.
Expecting GitHub to spend real money to cater to a tiny minority of users of their web service is misguided. The business models behind public internet services are simply not structured to cater to anything but the lowest/simplest common denominator users.
It's great to see new features shipping on GitHub.com (especially since it felt stagnant for so long). I have no idea what their codebase looks like, but prepopulating a text field with the contents of a template.md file and allowing the name of the publishing branch to be specified feel like they should have been fairly minor changes. Especially now that they clearly have the architecture to choose repo-specific publishing locations, allowing those to be user-specified should be a very low-effort way to make the tools useful for more projects.
You must be new here...
$ git subtree push --prefix=public origin gh-pages
The `public` directory is where the HTML/CSS/JS generated by my static site generator and I push that subtree to the gh-pages branch.It works by setting up a (free) pipeline which can run arbitrary code (docker-ized) that you set up in a .gitlab-ci.yml file that outputs build artifacts (static assets). These assets are then copied to gitlab's pages system.
Keeps your git repo clear of compiled stuff.
Works the same for public/private repos, too. Also has option for a custom domain SSL cert and 404 pages.
https://blog.cloudflare.com/secure-and-fast-github-pages-wit...
And I think it works only if you're using CloudFlare. I've always heard that you can't use custom domains and SSL but this works perfectly for me. But can anyone say why? Since my website is now hosted by github, I'm not so paranoid about my website going down or DoS attacks, and would like to not depend on CF anymore.
Well, I think I'm better off asking objective questions, so: 1. Can I change by DNS provider to something else and have SSL work? 2. Can I keep using CF and use my own cert, say from LetsEncrypt? 3. Do GitHub and CF have something in common/mutual agreement so this works?
host user.github.io
user.github.io is an alias for github.map.fastly.net.
github.map.fastly.net is an alias for prod.github.map.fastlylb.net.
prod.github.map.fastlylb.net has address 151.101.12.133
Cloudflare doesn't act as a CDN in this case. What Cloudflare does is proxy the request for you, and by virtue of them terminating the request they can serve an SSL certificate for your domain (either handed out by them or custom if you pay them).Because CloudFlare is basically a MITM Attack.... that is authorized by the website owner.
http://blog.ricardomacas.com/index.php?controller=post&actio...
@daenney - should've googled, and is that some online dig tool? or just you typing it that way?
@syshum - Huh, I remember read up on it about how piratebay was inaccessible in India because of CF
@angry-hacker - CF does offer free certs. I was actually wondering why only CF's certs worked with github pages, but not anyone else.
But I now understand that any one who thinks they're visiting the page on github pages are actually visiting CF's server because CF cached my stuff on github. And because it is on CF's server, they are able to show a HTTPS cert. I hope I got it right this time
It supports many generators https://gitlab.com/groups/pages and custom domains work even on free accounts.
Doesn't sound very straightforward to me.
I did it in multiple ways, lately I had master with the code, and was pulling gh-pages into the build/ directory, but I always wondered how other workflows look like. And this changes/hopefully simplifies a ton.
https://help.github.com/articles/creating-a-custom-404-page-...
You can even use Travis to automatically generate and deploy your docs/website, which I find much cleaner and convenient than manually publishing or committing generated code.
https://github.com/L33T-KR3W/push-dir makes it easy to publish a directory to gh-pages (even .gitignored directories i.e. build/).
$ git subtree push --prefix=public origin gh-pagesLike this, but without the duplicated file: https://github.com/1wheel/talks/tree/master/graphical-web
I think that at the very minimum automatic page generation should convert the README file to HTML by default.
I would love to see an option to sync the README file with the site without playing with Git hooks.
You pick a branch then (optionally) specify a sub-directory of your repository to deploy.
(full disclosure: I'm at Atlassian)
On another note, I wonder how I could change my Nanoc deploy to support this new kind of Github Pages setup (currently, it follows this process: http://nanoc.ws/doc/deploying/#with-github-pages-or-bitbucke...).
PS: Anyone interested in static (web)site builder news (e.g. GitHub Pages, Jekyll, Middleman, Gatsby, Metalsmith, and friends)? Follow along @statictimes on twitter -> https://twitter.com/statictimes PPS: Anyone interested in Jekyll - I've put together an Awesome Jekyll page -> https://github.com/planetjekyll/awesome-jekyll (incl. a history on GitHub Pages updates/news).