Giter Club home page Giter Club logo

Comments (3)

deven367 avatar deven367 commented on June 14, 2024

Hey @mattgra, if I understand your requirement correctly, this is already possible in nbdev.

To create tutorials, (do NOT add the #|default_exp flag to your nb). You can check the nbdev repo for this.
image

Then to update the sidebar, you can manually edit the _quarto.yml file to get your desired sidebar configuration.

from nbdev.

mattgra avatar mattgra commented on June 14, 2024

Not sure i fully understand this solution.
In the repo you are showing the settings.ini still points to the nbs folder only. (https://github.com/fastai/nbdev/blob/master/settings.ini)
nbdev then recursively goes through all the folders inside nbs and generates the docs (i.e., also for the explanations, tutorials, and API folders. (see here: https://nbdev.fast.ai/api)
image

from nbdev.

deven367 avatar deven367 commented on June 14, 2024

Yes, that's correct. nbdev recursively goes through the notebooks in the nbs folder. The part where the notebooks differ in the api folder vs the tutorials folder is over here.

When the #|default_exp flag is missing in a notebook, no python file is created for it, and it is rendered by nbdev as docs.

API notebook
image

Tutorials nb
image

from nbdev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.