Closed Luttik closed 4 years ago
Note that you can do this already by modifying .git/info/attributes
(or .gitattributes
if you choose to use that) and adding the following line:
docs/** filter= diff=
This will disable nbstripout
for any file in the docs
directory.
To check which attributes a given file has with the current config, run
git check-attr -a -- path/to/file
Is that sufficient for your use case?
I'm not sure it's worth add an extra flag for this use case, but documenting it would be useful.
@Luttik Does my suggestion work for you?
I've also documented this in the README.
@kynan I'm sorry I never responded. I think this solved my issue back then. I suppose you can close the issue.
Hé,
I love this plugin and I use it with all my repositories. However, I would love to be able to use it in conjunction with
nbsphinx
. I currently copy my notebooks to the./docs
folder to let sphinx compile it for documentation. Id love to exclude the docs folder fromnbstripout
in my.gitattributes
such that it can use the notebook output in my docs without having to run them again (and taking a lot of time for data-science jobs).