19 Commits

Author SHA1 Message Date
Pixelastic
e70b4fe3bd fix(path): Correctly get relative path for relative sources 2018-02-27 15:27:24 +01:00
Pixelastic
89f8b48766 feat(exclude): Exclude ignore files from rendering 2018-02-27 15:04:38 +01:00
Pixelastic
6ab7a50a2e fix(absolute_path): Handle relative source
absolute_path will always return an absolute path, even if the source
is defined as relative
2018-02-26 14:28:47 +01:00
Pixelastic
ab46596ba5 fix(jekyll-asciidoc): Exclude document key added by jekyll-asciidoc 2018-02-14 16:46:56 +01:00
Pixelastic
2beae1f330 fix(paths): Handles both relative and absolute paths 2018-02-13 17:28:09 +01:00
Ale Muñoz
fa1ddd9248 Update file_browser.rb
The current code will check if `/project/path/file/path.extension` is included on an array of paths in this form: `file/path.extension`. That'll always return false, so the files will never be excluded.

In my case, I have a project in `/Users/ale/Code/Website-frontend`, and in my `_config.yml` I have a `files_to_exclude: [_pages/**/*]` setting.

If I run `jekyll algolia` without this fix, one of my files is checked against the excluded files array using its full path (`/Users/ale/Code/Website-frontend/_pages/community/organizer-guide.md`), while the array contains its relative path (`_pages/community/organizer-guide.md`) so it doesn't match and it's included on the index.

I haven't had time to update the spec for this change, but since the tests still pass I assume there's something wrong with the existing tests.
2018-02-13 17:27:22 +01:00
Pixelastic
61bb7314e4 fix(excerpt): Don't fail on malformed excerpt 2018-02-12 13:53:34 +01:00
Pixelastic
7fa64b43ed fix(pagination): Exclude pagination pages defined by paginate_path 2017-12-22 12:59:44 +01:00
Pixelastic
16a0102d60 fix(date): Make sure collections have a nil date if none defined 2017-12-22 12:04:57 +01:00
Pixelastic
bd826c5ee0 fix(hooks): Apply unique objectID after all hooks 2017-12-19 18:49:00 +01:00
Pixelastic
04713474e8 chore(rubocop): Auto-fix Rubocop errors for Ruby 2.3
Original idea coming from https://github.com/algolia/jekyll-algolia/pull/18
2017-11-28 14:44:36 +01:00
Pixelastic
1bd2fc49fd Allow glob patterns in files_to_exclude 2017-11-17 19:17:47 +01:00
Pixelastic
7812be9cb4 Adding verbose tests 2017-11-15 12:11:57 +01:00
Pixelastic
680e09f135 Add tests for logging custom errors 2017-11-13 17:14:51 +01:00
Pixelastic
6a137fa850 Make tests running in all versions 2017-11-13 11:12:54 +01:00
Pixelastic
fcf67a08a6 Add string/regex matcher for all versions 2017-11-11 01:22:59 +01:00
Pixelastic
45200fe8d1 Add missing tests to FileBrowser
Can now extract all data from all files
2017-11-10 16:15:29 +01:00
Pixelastic
7b9982b788 Adding FileBrowser export of file metadata 2017-11-10 14:43:40 +01:00
Pixelastic
b05916f6b1 Adding Configurator and FileBrowser + tests 2017-11-09 17:29:01 +01:00