Skip to content

Commit 46a36eb

Browse files
author
Hamel Husain
authored
Merge pull request #77 from fastai/Gemfile
2 parents 0fd5e21 + 09ab203 commit 46a36eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ _If you are using an older version of this template, and want to upgrade to the
1212
- If you change the name of your repo, you have to make the appropriate changes in `settings.ini`
1313
- 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.
1414

15+
16+
## Previewing Documents Locally
17+
18+
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.
19+
20+
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 commit comments

Comments
 (0)