pin3da / Programming-contest

My solutions of some problems from different online judges
Mozilla Public License 2.0
178 stars 101 forks source link

Option to exclude files #7

Open mmhlego opened 4 months ago

mmhlego commented 4 months ago

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:

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

if (path.basename(f).startsWith("_")) return;
pin3da commented 4 months ago

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,