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

Adding ignore: true requires restart #392

Open
balupton opened this issue Jan 6, 2013 · 3 comments
Open

Adding ignore: true requires restart #392

balupton opened this issue Jan 6, 2013 · 3 comments

Comments

@balupton
Copy link
Member

balupton commented Jan 6, 2013

7:56 AM is there a way to hide draft documents via renaming the file or meta-data, i'd rather not remove the file
8:04 AM answered that myself: http://docpad.org/docs/meta-data
8:13 AM hmm…. ignore: true doesn't seem to be working for me
8:24 AM ah, it seems that docpad run need to be restarted in order for the ignored: true to take effect… interestingly, a restart isn't required to unhide the document. is this intended?

Not sure if this is the case, but if it were it would be because ignore is for the parsing stage, rather than the writing etc stage. We could add a listener for ignore: true which then removes the file from the database.

Value unknown.


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

@balupton
Copy link
Member Author

Now that the database is persistant, we could add a on ignore change listener to the database and if it is true, remove it from the database. However, we will also need to remove the outPath file.

@balupton
Copy link
Member Author

May be fixed in v6.46.3

@nezoomie
Copy link

nezoomie commented Oct 1, 2013

almost... :D

I just run into this issue when using the paginated plugin. The document itself is ignored, great, but other documents referencing it are not (despite referenceOthers: true).

For example after un-publishing a blog post its url will return 404 (correct) but pages referencing it (post index page for example) will not be regenerated, resulting in dead links.

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

No branches or pull requests

2 participants