How to export *and* show a cell in docs?

Hi, I’m pretty new to nbdev, so I’m sorry if I missed this somewhere in the docs.

In my project, I have some cells which I want to export, but I also want to show the code itself in the documentation. I have tried

#| export
#| echo: true

where echo: true is the Quarto directive that should make the source code visible. But it doesn’t seem to work, maybe because export is overriding it.

On a related note, how can I include a link to the source code of a function next that function’s show_doc?

I think, in this case you should be using #| exports : nbdev - Directives

2 Likes