Getting Started

Overview

This page walks you through the process of creating a GitHub Pages documentation site for your repository.

Setting Up Your Documentation Site

To begin building out your documentation website, you will need to set up the initial structure in your own repository.

Building Your GitHub Pages Site From Our Template

Much of the work has been done for you in setting up the GitHub Pages site via a template that can be downloaded as a zip file at this link. Download this template and place the docs folder in your repository.

This template lays most of the groundwork necessary for the GitHub pages repository and in fact, can be committed and built by GitHub right out of the box. But first, you must enable GitHub to build GitHub Pages websites for you from within the repository.

Enabling GitHub Pages For Your Repository

Before GitHub will build your Pages site for you, you will need to enable it from the repository settings from on the GitHub website. To do this, follow these steps:

  1. Go to your repository’s “Settings” tab on the GitHub website. We have included a picture of where this is located in the repository’s navigation bar on GitHub below: The settings tab for your repository
  2. Scroll down to the “GitHub Pages” settings in the “Settings” tab. This will look like the following picture: The GitHub pages option
  3. Click the “Source” dropdown menu and click the “master branch /docs folder” option. The GitHub pages documentation location

    This will publish your GitHub Pages website to https://<YOU_GITHUB_USERNAME>.github.io/<REPO_NAME>/.

Building Your Documentation Site Further

Now that the groundwork has been laid for your GitHub Pages website, it’s time to build out your website. There are a few conventions and best practices that we use that you can read about at this page.


Written by the Campbell Muscle Lab