Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to exclude files #7

Open
mmhlego opened this issue May 30, 2024 · 1 comment
Open

Option to exclude files #7

mmhlego opened this issue May 30, 2024 · 1 comment

Comments

@mmhlego
Copy link

mmhlego commented May 30, 2024

HI,
I wanted to suggest a change to the notebook-generator to be able to exclude files. The way that it can be done is by adding an _ symbol to the file name. For example:

  • Sample.cpp: This file is included
  • _Sample.cpp: This file should be excluded

It can be sone simply by adding the following line to notebookgen.js line 32:

if (path.basename(f).startsWith("_")) return;
@pin3da
Copy link
Owner

pin3da commented Jun 1, 2024

Hi!

The notebook generator currently skips all the hidden files (i.e. starting with a dot .). So, .Sample.cpp will be excluded.

Would this work?

Also, feel free to send PRs to https://github.com/pin3da/notebook-generator. I'm not actively working on it, but would be happy to review contributions :)

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants