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

Clean HTML output when zettels are deleted #141

Closed
felko opened this issue Apr 26, 2020 · 3 comments
Closed

Clean HTML output when zettels are deleted #141

felko opened this issue Apr 26, 2020 · 3 comments
Labels
good first issue Good for newcomers

Comments

@felko
Copy link
Contributor

felko commented Apr 26, 2020

Currently neuron rib adds .html files from new zettels, but never deletes files from the .neuron/output directory. Could neuron rib take care of deleting previously generated HTML files that no longer have an associated zettel? Unused HTML files might clutter disk space. Maybe something like neuron rib --clean?
(Maybe this should be a rib issue?)

@srid
Copy link
Owner

srid commented Apr 26, 2020

Maybe this should be a rib issue?

Yes. See srid/rib#155. PR welcome. :-) (neuron no longer uses rib)

@srid
Copy link
Owner

srid commented May 3, 2020

Workaround in the interim:

rm -rf .neuron/{.shake,output}
neuron rib 

@srid srid added the good first issue Good for newcomers label Jun 12, 2020
@srid srid removed the good first issue Good for newcomers label Oct 4, 2020
@srid
Copy link
Owner

srid commented Feb 2, 2021

This can now be simply done here (by comparing the old routes list with the new one)

nRoutes <- case modifiedRoutesOnly oldRoutes newRoutes of
Just rs -> run $ RB.writeRoutes rs
Nothing -> pure 0

@srid srid added the good first issue Good for newcomers label Feb 2, 2021
@srid srid pinned this issue Feb 23, 2021
@srid srid closed this as completed Feb 23, 2021
@srid srid unpinned this issue Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants