Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Multiple file extensions being trimmed #208

Closed
kapooostin opened this Issue · 9 comments
@kapooostin

This is what I have in vendor folder.
And this I get after updating a site with images in documents folder.

On 5.1.2 everything was fine.

@balupton
Owner

Hrmm... Do they work if you put them inside the src/files directory (also called src/public) instead of src/documents?

Generally, as a rule, unless you want to do extension rendering on them (render one extension to another) then they should go in src/files...

Does that help?

@kapooostin
@melchiorb

I'm having the dots-in-filenames issue since 5.2.1.

src/public/vendor:

jquery-1.7.1.js
jquery.pjax.js
modernizr-2.0.6.js

out/vendor:

jquery-1.js
jquery.js
modernizr-2.js

@balupton
Owner

Will look into the extension thing.

As of DocPad 5.2, everything is now added to the database (not just documents). So you can access the files via @database.findAll(...) as you would. More docs on this is coming.

Thanks guys :)

@kapooostin
@kapooostin

Yep, “everything is in a database” rules!

@DjebbZ

I confirm there's a problem with 'dots-in-filenames'. I have similar results, and some files are even not copied at all in the out directory, so I had to copy them manually.

@balupton balupton was assigned
@balupton
Owner

Extensions problem fixed in the just released 5.2.2.

@balupton balupton closed this
@balupton balupton referenced this issue from a commit
@balupton balupton v5.2.2. Bug fixes.
- v5.2.2 May 17, 2012
	- Fixed [#208](#208) - Multiple
file extensions being trimmed
	- Fixed [#205](#205) - Name
collisions are causing not all files to be copied
	- Changed file `id` to default to the `relativePath` instead of the
`relativeBase`
	- Finding layouts now uses `id: $startsWith: layoutId` instead of `id:
layoutId`
588e40a
@kapooostin

Works fine, thank you :)

@Ferrari Ferrari referenced this issue from a commit in Ferrari/docpad
@balupton balupton Fixed #208 - file extensions being trimmed 7189e0d
@balupton balupton referenced this issue from a commit
@balupton balupton v5.2.2. Bug fixes.
- v5.2.2 May 17, 2012
	- Fixed [#208](#208) - Multiple
file extensions being trimmed
	- Fixed [#205](#205) - Name
collisions are causing not all files to be copied
	- Changed file `id` to default to the `relativePath` instead of the
`relativeBase`
	- Finding layouts now uses `id: $startsWith: layoutId` instead of `id:
layoutId`
565c1f5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.