Skip to main content
Skip table of contents

Examples ☁️

Include a GitHub markdown file from a public repository

Example of including the README.md available at https://github.com/githubtraining/exercise-enable-github-pages/blob/main/README.md.

Welcome to the exercise on enabling GitHub Pages!

This exercise is an exercise to check your knowledge on enabling GitHub Pages. It is automatically graded via a workflow once you have completed the instructions.

Quick links:

About this exercise

:warning: A grading script and a setup utility exist inside of the .github/ directory. You do not need to use these workflows for any purpose and altering their contents will affect the repository's ability to assess your exercise and give feedback.

:warning: This exercise utilizes GitHub Actions, which is free for public repositories and self-hosted runners, but may incur charges on private repositories. See About billing for GitHub Actions to learn more.

:information_source: The use of GitHub Actions also means that it may take the grading workflow a few seconds and sometimes minutes to run.

Instructions

  1. Create your own copy of this repository by using the Use this template button. Make sure you set your repository visibility to Public when asked.
  2. In your newly created repository, enable GitHub Pages with the main branch and the docs/ directory as the source for the GitHub Pages site.

Seeing your result

Your exercise is graded automatically once you have completed the instructions. To see the result of your exercise, click the Actions tab, select the Grading workflow, and select the most recent workflow run. The status of the workflow indicates if you have passed or failed the exercise.

If the workflow failed, scroll down to the Annotations section to check what went wrong.

See Viewing workflow run history if you need assistance.

Troubleshooting

If the grading workflow does not automatically run after you complete the instructions, run the troubleshooter: in the Actions tab select the Grading workflow, click Run workflow, select the appropriate branch (usually main), and click the Run workflow button.

See Running a workflow on GitHub if you need assistance.

Useful resources

Use these to help you!

Resources specific to this exercise:

Resources for working with exercise and GitHub Actions in general:


Include GitHub pull requests from a public repository

Example of including the list of pull requests from the githubtraining/exercise-enable-github-pages public repository.


Include GitHub issues from a public repository

Example of including the list of issues from the githubtraining/exercise-enable-github-pages public repository.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.