Closed jckantor closed 4 years ago
There a few ways this could work. For example, suppose there are data_src_dir and data-dst_dir in nbpages.cfg.
Option 1. If data_dst_dir is specified and different from data_src_dir, then make new copy, overwriting after permission. The user could maintain a second data-private directory if there is data that shouldn't be copied.
Option 2. Add a data-ignore file. Adds complexity, and another file to edit.
Have now figured out that figures and data should be subdirectories of notebooks folder to enable relative reference of figures and data from notebooks. This has a number of good effects ...
So --publish now needs to publish html, figures, and data files.
I like putting /data and /figures in the /notebook directory. This means a user could use /notebook-sandbox (also containing /figures and /data) to develop notebooks (without them being published).
This is now implemented. data and figures are now subdirectories of notebooks. Upon publish, only figures which actually appear in the notebooks after stripping tags, etc., are copied to the destination directory. This will be implemented for data, too. So closing this issue.
Should there be a destination directory for /data and /figures which, if specified, causes --publish to copy those, too?