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

4 participants

Vladimir Kapustin Benjamin Lupton Melchior Brislinger Khalid Jebbari
Vladimir Kapustin

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.

Benjamin Lupton
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?

Vladimir Kapustin
Melchior Brislinger

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

Benjamin Lupton
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 :)

Vladimir Kapustin
Vladimir Kapustin

Yep, “everything is in a database” rules!

Khalid Jebbari

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.

Benjamin Lupton balupton was assigned
Benjamin Lupton
Owner

Extensions problem fixed in the just released 5.2.2.

Benjamin Lupton balupton closed this
Benjamin Lupton balupton referenced this issue from a commit
Benjamin Lupton 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
Vladimir Kapustin

Works fine, thank you :)

Shih-Yung Lee Ferrari referenced this issue from a commit in Ferrari/docpad
Benjamin Lupton balupton Fixed #208 - file extensions being trimmed 7189e0d
Benjamin Lupton balupton referenced this issue from a commit
Benjamin Lupton 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.