Once you’ve generated the markdown for your notebooks, your site is ready to be pushed and served by GitHub. To do this, take the following steps:
- Confirm that your site files are built. You should see a
collection of markdown files/folders in the
_buildfolder. - Commit and push your changes to your fork of the repository.
-
Confirm that
gh-pagessite-building is enabled for your repository.From your GitHub repository, click
Settingsthen scroll down to theGitHub Pagessection. You should see the messageYour site is published at <YOUR-URL>. - Go to the URL listed at
<YOUR-URL>and you should see your live site.
To preview your built site locally
You can also preview your built site using Jekyll on your computer. To do this, take the following steps:
- Ensure that Jekyll and Ruby are installed.
- Ensure that your notebooks have been converted to markdown, there should be a
collection of them in
_build/ -
Run the Jekyll site preview command:
make serve
This should open up a port on your computer with a live version of the textbook.