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

Files are not getting copied / processed #742

Closed
pzduniak opened this issue Dec 18, 2013 · 5 comments
Closed

Files are not getting copied / processed #742

pzduniak opened this issue Dec 18, 2013 · 5 comments
Assignees

Comments

@pzduniak
Copy link

I have decided to rewrite a Jekyll website to Docpad, because of easier installation on Windows. Here is the code:

http://git.cloudrack.io/pzduniak/gim29/tree/master

Unfortunately, docpad run and docpad generate won't copy most of the .md and .html files from src/documents/* directories. It doesn't work on both Linux and Windows. For example, in "oszkole" only statut.html gets copied.

Is it a bug or am I doing something wrong?

@balupton
Copy link
Member

Can everyone try again with v6.59.0. I think I've found the issue. Will re-open if still not resolved.

balupton added a commit that referenced this issue Dec 19, 2013
- v6.59.0 December 19, 2013
	- Removed the previously deprecated `ensureFile`, `ensureDocument`, `ensureModel`/`ensureFileOrDocument` methods, use `addFile`, `addDocument`, and `addModel` instead
	- Improved watching, should hopefully fix [#738](#738), [#742](#742), [#739](#739)
	- Updated dependencies
@pzduniak
Copy link
Author

The issue has not been fixed. In 6.59.2 the result is the same.

@balupton balupton reopened this Dec 19, 2013
@ghost ghost assigned balupton Dec 19, 2013
@balupton
Copy link
Member

Will look into this in 12 hours :)

@balupton
Copy link
Member

Looked into it. The problem is that the meta data headers have:

id: "about"

Inside them. This means that when DocPad (or rather Backbone.js) goes to inject the document into the database, it finds that there is already a document with that ID inside the database, so it doesn't inject it.

You will need to rename that id attribute to something else.

I will add a warning about this to future versions of DocPad.

@balupton
Copy link
Member

I've published v6.59.4 with the warning. It will also ignore setting the id attribute, to ensure the files to generate in the meantime.

balupton added a commit that referenced this issue Dec 20, 2013
- v6.59.4 December 20, 2013
	- Added a warning when trying to set the `id` attribute manually
		- Thanks to [Piotr Zduniak](https://github.com/pzduniak) for [issue
#742](#742)
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