Skip to content

Commit

Permalink
Merge pull request #77 from fastai/Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamel Husain committed Sep 21, 2021
2 parents 0fd5e21 + 09ab203 commit 46a36eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ _If you are using an older version of this template, and want to upgrade to the
- If you change the name of your repo, you have to make the appropriate changes in `settings.ini`
- After you make changes to `settings.ini`, run `nbdev_build_lib && nbdev_clean_nbs && nbdev_build_docs` to make sure all changes are propagated appropriately.


## Previewing Documents Locally

It is often desirable to preview nbdev generated documentation locally before having it built and rendered by GitHub Pages. This requires you to run Jekyll locally, which requires installing Ruby and Jekyll. Instructions on how to install Jekyll are provided [on Jekyll's site](https://jekyllrb.com/). You can run the command `make docs_serve` from the root of your repo to serve the documentation locally after calling `nbdev_build_docs` to generate the docs.

In order to allow you to run Jekyll locally this project contains manifest files, called Gem files, that specify all Ruby dependencies for Jekyll & nbdev. **If you do not plan to preview documentation locally**, you can choose to delete `docs/Gemfile` and `docs/Gemfile.lock` from your nbdev project (for example, after creating a new repo from this template).

0 comments on commit 46a36eb

Please sign in to comment.