fastai / nbdev_template

Template for nbdev projects
https://nbdev.fast.ai/
Apache License 2.0
294 stars 99 forks source link
documentation-generator documentation-tool jupyter jupyter-notebook literate-programming python

:warning: This template is for an old version of nbdev, nbdev v1. The template for v2 is here

nbdev template

Use this template to more easily create your nbdev project.

If you are using an older version of this template, and want to upgrade to the theme-based version, see this helper script (more explanation of what this means is contained in the link to the script).

Troubleshooting Tips

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. 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).