Bitzu

GH-900 ยท Collaboration tools

What does GitHub Pages do?

What GitHub Pages hosts (static sites from a repository), publishing sources, and typical use cases like docs and portfolios.

Key points

  • GitHub Pages hosts static websites straight from a repository, such as documentation, project pages and portfolios. You choose a publishing source: deploy from a branch (the root or a /docs folder) or a GitHub Actions workflow.

Source: https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site

Practice questions

Single choice

What does GitHub Pages host?

  1. Static websites from a repository
  2. Server-side PHP applications
  3. Relational databases
  4. Container images
Show answer

Answer: A. Static websites from a repository

Pages serves static content. Server-side runtimes, databases and images need other services.

Select all that apply

Which are valid GitHub Pages publishing setups?

  1. Deploy from a branch, root folder
  2. Deploy from a branch, /docs folder
  3. Deploy from a branch, /src folder
  4. A GitHub Actions workflow
  5. Deploy from a gist
Show answer

Answer: A. Deploy from a branch, root folder, B. Deploy from a branch, /docs folder, D. A GitHub Actions workflow

Branch publishing allows the root or /docs; Actions is the other source. /src and gists are not options.

True or false

GitHub Pages can run server-side code, such as a backend API, for your site.

Show answer

Answer: False

False. Pages hosts static files only; dynamic backends need another service.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More GH-900 topics in this module