This template has the basic file structure for a lesson plan that builds a GitBook.
Here is a breakdown of the files in this repository:
- .github/workflows/BuildGitBook.yml: This file describes the GitHub action to build the GitBook from this repository. It places the code in a branch named
gh-pages
, which GitHub Pages can use to render the book online. - styles/website.css: This file adds custom styles to the GitBook.
- .gitignore: This file lists files that should be ignored by Git.
- book.json: This file contains configuration information for the GitBook.
- TemplateDescription.md: This is this file. It contains information about the lesson plan template.
- AdditionalPage.md: This is an example file that will become a page of the published GitBook.
- README.md: This file is the landing page for the repository. It should be the primary document for the lesson plan. It will not be published on the GitBook, and is designed for internal instructor reference only.
- BookHomePage.md: This file will be the landing page of the GitBook when it is published. It serves as the lesson homepage for students.
- SUMMARY.md: This file outlines the pages to be published on the GitBook.
To use this template, follow these instructions:
- Click the green "Use this template" button when viewing this repository on GitHub
- Fill out a Repository name and Description
- Click the green "Create repository" button
- In Settings, in the Code and automation section, under Actions -> General, under Workflow permissions, select the Read and write permissions option
- On the new repository, wait for the GitHub action to complete
- This action will create the
gh-pages
branch
- This action will create the
- When the action is done, click on "Settings"
- It may be necessary to push a change to the repository to re-trigger the action
- On the "Settings" page, on the left, click on "Pages"
- In the "Build and deployment" section, click the dropdown under "Branch"
- Select
gh-pages
as the branch - Click the "Save" button
- Wait for a little while, and then refresh the "Pages" page
- Click the link to the deployment - the GitBook should be published!
After the GitBook is up, all that's left is to actually create the lesson plan in the repository. This file can be removed.