Skip to content
This repository

Filename with dot in front aren't synced anymore #363

Closed
oliparcol opened this Issue · 12 comments

9 participants

Olivier Parent-Colombel Tom Preston-Werner Brian Zimmer Jordy Rose Alan W. Smith Sam Umbach Jonathan Robson Evsyukov Denis Brandon Arbini
Olivier Parent-Colombel

Filename with a dot in front (mainly important for .htaccess files) aren't synced anymore in jekyl 0.11.0.

Thanks,

Brian Zimmer

I have the issue. I'm using:

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

When I rolled back to 0.10.0 all is working again.

thanks, brian

Jordy Rose

I noticed this too; my personal branch has a fix at belkadan@f5c5b42.

Alan W. Smith

Same thing here.

My setup is as follows:


ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
jekyll 0.11.0

From _config.yml
source: .
destination: ../html
plugins: ./_plugins


I have a .htaccess sitting in the source directory. When jekyll 0.11 builds the site, the .htaccess file is not moved. Additionally, if an .htaccess file was moved manually to the destination (e.g. ../html) directory, it gets removed when jekyll is run.

Alan W. Smith

Incidentally, jekyll is my first ruby experience. If someone wouldn't mind telling me an easy way to roll back to version 0.10 I would greatly appreciate it (as it would save me some googleing or stackoverflowing and let me get back to messing with jekyll itself).

Thanks,
-a

Brian Zimmer

You can try (I use a mac):

sudo gem uninstall -v 0.11.0 jekyll
sudo gem install -v 0.10.0 jekyll

Alan W. Smith

Thank you, @bzimmer. That worked great.

Cheers,
-Alan

Sam Umbach

This looks like the culprit: 13cc44f#L2L213

Dir.entries includes dotfiles (e.g., .htaccess), Dir['*'] does not.

Jonathan Robson

@sumbach I apologize if this is a dumb question, but do you know if reverting line 213 of lib/jekyll/site.rb (the line to which you're referring in the commit to which you linked) would break anything else?

Sam Umbach

@jnrbsn Looking at the filter_entries code, I suspect that does not exclude any dotfiles if you revert line 213. I think you'd need to use File.basename(e) to get the desired exclusion of dotfiles and exclusions from your config file.

It would be awesome to put a test suite in place to characterize the current behavior and clarify what's wrong about it. If you don't get to it before then, I'll plan on building a test suite this Friday.

Evsyukov Denis
Juev commented

I went a little easier. Created the file htaccess, without a dot at the beginning of the file name with the following contents:

---
layout: none
permalink: .htaccess
---
Redirect 301 /linode http://www.linode.com

And now, the generation of the site is created the file.

Alan W. Smith

@Juev - That's a great idea. Even if when the issue is fixed I'm going to keep doing that just to make the file show up in the Mac Finder window without having to show all hidden files. Very nice.

Brandon Arbini

@Juev - Bingo. So simple...should have thought of it myself. :) Thanks!

Tom Preston-Werner mojombo closed this in 9d70088
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.