Mastering GitHub Pages: A Beginner's Guide

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Why should you read Mastering GitHub Pages: A Beginner’s Guide?

Because this book offers you a concise guide so that you can quickly navigate the terrains of GitHub Pages sites in a fairly smooth manner.

But why use GitHub Pages if it can only make static websites?

Why should you go for static websites when you could get a dynamic one made for your organization?

Again, why not?!

Having a static website is a sure-shot strategy to save a lot of money, keep the website secure, and ensure built-in backups. In addition, you can serve it over HTTPS and make sure that it is fast and SEO-ready.

Mastering GitHub Pages delves into static (and dynamic) websites as well as their advantages and disadvantages. Static websites tend to be incredibly fast since they have no processing time for databases and other stuff. Additionally, because you are committing a code base of static assets to a Git repository, the rolling back of changes is simply an issue involving reversion to a commit that was made previously. So backups are a mere git push away, and you are basically serving your entire website from a cache. This means that your server will never need to process a request again. This book helps you master the art of static site generation in no time.

Furthermore, Mastering GitHub Pages also discusses in great length Jekyll, a popular static site generator. When working with Jekyll, all you do is give it liquid templates as well as Markdown content, and it is adept at combining them both into a static website. It requires no-on-the-fly processing, and your blog will display at a significantly faster speed. This workflow proves useful for GitHub Pages because they tend to support the Jekyll builds. As such, your blog posts can be contributed using pull requests, and all your content gets stored within version control. Non-developers could also contribute posts in Markdown.

Mastering GitHub Pages is an immensely useful book that all developers can use for the creation of websites on the free GitHub Pages platform. So, go ahead, grab a copy of the book for a proper GitHub Pages primer!

Learn more about our other Mastering titles at:

https://www.routledge.com/Mastering-Computer-Science/book-series/MCS

Author(s): Sumanna Kaul, Shahryar Raz
Series: Mastering Computer Science
Publisher: CRC Press
Year: 2022

Language: English
Pages: 164
City: Boca Raton

Cover
Half Title
Series Page
Title Page
Copyright Page
Contents
About the Editor
CHAPTER 1: Introduction to Git and GitHub
WHAT IS GIT
Why Should We Use Git?
Installation
GitHub Desktop
Git on Windows
Install Git on Mac
Installing Git Using an Installer
Installing Git Using Homebrew
Installing Git on Linux
Debian/Ubuntu
Fedora
Some Elementary Functions
Creating Branches
Making Changes and Making Commits
Pushing Your Changes to the Remote
Opening a Pull Request
Collaborating
Merging into Master
The Commands
WHAT IS VERSION CONTROL
WHAT IS GITHUB?
SSH Access
Your Avatar
Email Addresses
Two-Factor Authentication
History of GitHub
Acquired by Microsoft
Mascot
How to Use GitHub
How to Create a Repository on GitHub?
Creating Branches
Making Commits
Pull Command
Merge Command
Cloning as well as Forking GitHub Repository
Different Types of Accounts
Personal User Accounts
Organization Accounts
Enterprise Accounts
CHAPTER 2: What Are GitHub Pages?
WHAT ARE GITHUB PAGES?
BASICS OF GITHUB PAGES
Static and Dynamic Websites
Static Website
Dynamic Website
Types of GitHub Pages Sites
Publication of Sources for GitHub Pages Sites
Generation of Static Sites
Usage Limits
Prohibition on Usage
MIME Types on GitHub Pages
CHAPTER 3: Getting Started with GitHub Pages
CREATING GITHUB PAGES SITE
CONFIGURING A PUBLISHING SOURCE FOR YOUR GITHUB PAGES SITE
Managing the Publication of GitHub Pages Site for Your Organization
Unpublishing a GitHub Pages Sites
Unpublishing a Project Site
CHANGING THE VISIBILITY OF YOUR GITHUB PAGES SITES
Securing Your GitHub Pages Site with HTTPS
Regarding HTTPS
COOKIES
Cookie Tossing in a Subdomain
Protection from Cookie Tossing
Cookie Path Workaround
Cookie Escape
Cookie Overflow
ADDING THEMES
Theme Chooser
CHAPTER 4: Jekyll and GitHub Pages
INTRODUCTION TO JEKYLL
Prerequisites
Installation
TESTING YOUR GITHUB PAGES SITE LOCALLY USING JEKYLL
TROUBLESHOOTING
Installation Troubles
Unable to Find a JavaScript Runtime
Problems while Running Jekyll
macOSPermalink
Debian/Ubuntu
Base-URL Problems
Updating the Gems for Your GitHub Pages
Configuration Problems
Markup Problems
CHAPTER 5: Configuring a Custom Domain
WHAT IS A CUSTOM DOMAIN?
Features of a Domain
Supported Custom Domains
Use of a Subdomain for Your GitHub Pages Site
www Subdomains
Custom Subdomains
Using Apex Domains for Your GitHub Pages Site
Updating Custom Domains When Your GitHub Pages Site Gets Disabled
MANAGING A CUSTOM DOMAIN FOR GITHUB PAGES SITE
Configuring a Subdomain
Configuring an Apex Domain
Configuring an Apex Domain as well as the www Subdomain Variant
Eliminating a Custom Domain
TROUBLESHOOTING CUSTOM DOMAINS AS WELL AS GITHUB PAGES
CNAME Errors
DNS Misconfiguration
HTTPS Errors
URL Formatting on Linux
Browser Cache
APPENDIX
INDEX