Commit graph

2136 commits

Author SHA1 Message Date
Artem Baguinski cf1f6a0957 test nested partials_dir 2013-04-09 08:46:18 +02:00
Artem Baguinski fe20d92b28 feature for partials_dir setting 2013-04-09 08:46:18 +02:00
Artem Baguinski 91e7033d54 a first stab at partials_dir setting
re #252
2013-04-09 08:46:18 +02:00
Ben Hollis 023ea9f34e Process resources for asset_hash extension in a specific order. This makes sure static assets (images, fonts) get their paths modified before assets that include them (css, js). 2013-04-08 00:50:58 -07:00
Ben Hollis 1617875934 Activate Sprockets before user config 2013-04-07 23:33:40 -07:00
Ben Hollis b159946a6e Upgrade fivemat 2013-04-06 23:53:51 -07:00
Ben Hollis de1bfc440c Support fonts with asset_path 2013-04-06 23:39:45 -07:00
Ben Hollis c602df30dd Fix some 1.8.7 issues 2013-04-06 22:55:49 -07:00
Ben Hollis d6fa92d70e Add i18n changes to CHANGELOG 2013-04-06 18:30:10 -07:00
Ben Hollis 3e75a10056 Switch default markdown engine to Kramdown 2013-04-06 18:26:41 -07:00
Thomas Reynolds 53bddf8304 Merge pull request #853 from bhollis/i18n
Include I18n::Fallbacks and set the default I18n locale to our default locale.
2013-04-06 18:25:23 -07:00
Ben Hollis 17b3e3e628 Include I18n::Fallbacks and set the default I18n locale to our default locale.
Thus, when a translation is missing in the current locale, fall back to the default locale. See https://github.com/svenfuchs/i18n/wiki/Fallbacks for more info and configuration settings available to users.

Also, this change adds a "t" helper that proxies to I18n.t, just like Rails, for more concise translating.
2013-04-06 18:07:09 -07:00
Ben Hollis ee10d207a1 Update changelog with changes on master since 3.0.13 2013-04-06 16:58:47 -07:00
Ben Hollis 37ef6a31da Merge remote-tracking branch 'origin/3.0-stable' 2013-04-06 16:09:41 -07:00
Ben Hollis 7a4aa109a6 Overhaul content-type handling, making it configurable via page/proxy commands as well as frontmatter with the 'content_type' parameter.
Now, users can set content type explicitly for their files in a number of ways, or rely on automatic file-extension content types. Proxied files default to automatic file-extension content types, but then fall back to the content type of the resource they proxy to. There is also a bug fixed around correctly setting content type inside send_file. Fixes #821.
2013-04-06 15:11:25 -07:00
Ben Hollis 397ccd2c1e Fix a bunch of Ruby warnings, including a bug in the not_found method 2013-04-06 14:56:08 -07:00
Ben Hollis 1d869b0c08 Simplify frontmatter by removing its resource_list_manipulator 2013-04-06 14:56:08 -07:00
Ben Hollis 14a39e5e87 Minor performance fix to not double-compute metadata in directory_indexes. 2013-04-06 14:56:04 -07:00
Ben Hollis 044b49d83b Fixes for alpha Sass versions 2013-04-04 23:28:28 -07:00
Ben Hollis c2ffa538ad Undo my previous change, apparently it is no good 2013-04-04 23:28:28 -07:00
Ben Hollis f7d1471edb Handle empty frontmatter without logging an exception 2013-04-04 22:59:05 -07:00
Ben Hollis f89c815868 More agressively set the context for our custom Markdown renderer, and fall back if we still don't manage to get it right. Fixes #662. 2013-04-04 22:48:09 -07:00
Ben Hollis fca4c0330e Merge pull request #849 from stevenosloan/markdown_filter_in_haml
Markdown filter support for Haml 4
2013-04-04 22:43:16 -07:00
Steven Sloan 6043392e1a add feature tests for markdown support in haml 2013-04-04 15:16:01 -04:00
Ben Hollis 70643dcc32 Merge pull request #846 from argent-smith/master
Added .idea to .gitignore
2013-04-03 22:06:14 -07:00
Thomas Reynolds 087872d286 Merge pull request #845 from bhollis/i18n
Fix several issues around i18n and resource metadata.
2013-04-03 11:25:18 -07:00
Pavel Argentov 6f76ae31a9 Added .idea dir to .gitignore
… just in case if somebody uses RubyMine to dev it.
2013-04-03 12:35:33 +04:00
Ben Hollis 4d5c509688 Fix several issues around i18n and resource metadata.
There are a few things changing here. One is that we always dup metadata before using it - this prevents a class of nasty bugs where after the first resource list build, blocks had been deleted from metadata hashes, meaning they would no longer be applied. Now they will always stick around. Then, I made sure that whenever we render a file, we save the previous I18n.locale and restore it afterwards, in case people change locale from blocks. This should help in some weird cases where files are rendered recursively. Finally, I've added a :lang option that can be used from "page" or "proxy" to allow people to specify the language for one or more files without having to pass a block that sets I18n.locale directly, which should make that pattern much cleaner. This fixes #809 and may also fix middleman/middleman-blog#106.
2013-04-03 00:07:31 -07:00
Ben Hollis cc418c7a2d Ruby 2.0 switches to using #inspect instead of #to_s when printing out objects, which brings back the infinite-hang-on-NoMethodError bug from http://bugs.ruby-lang.org/issues/4521. Aliasing #inspect to #to_s for Middleman::Application fixes it again. This fixes #833. 2013-04-02 22:20:37 -07:00
Ben Hollis 7c1c93562a Merge pull request #842 from tricknotes/fix-method-comments
Fix method comments
2013-03-29 08:51:10 -07:00
Ryunosuke SATO 3de491981a Fix method comments
`rake doc` shows some warnings.
I fixed method comments to suppress it.
2013-03-29 03:15:33 +09:00
Capi Etheriel c1c752aa32 Suggest adding middleman-livereload to bundle 2013-03-26 15:07:22 -03:00
Capi Etheriel 00ac776fc4 Document livereload usage in config file 2013-03-26 11:21:17 -03:00
Thomas Reynolds 92954a7c95 Merge pull request #839 from tricknotes/modify-year-in-smacss
Modify copyright year in smacss template
2013-03-25 12:44:57 -07:00
Ryunosuke SATO afd8f0e775 Modify copyright year in smacss template
2012 -> 2013
2013-03-26 03:19:01 +09:00
Thomas Reynolds 8aa652713a Merge pull request #836 from tricknotes/directory-as-a-data-key
Support directory name as a data key
2013-03-25 09:53:58 -07:00
Thomas Reynolds 420b4c6087 simplest thing that could work implementation of Middleman::Extension 2013-03-23 15:35:38 -07:00
Ryunosuke SATO 1e64e8022e Support directory name as a data key 2013-03-23 17:17:34 +09:00
Thomas Reynolds cd539f4e91 Merge pull request #835 from artm/need_reload_fix
fix 'needs_to_reload?' regexps
2013-03-22 11:13:07 -07:00
Artem Baguinski e07bd036d1 just call needs_to_reload? once 2013-03-22 18:28:38 +01:00
Thomas Reynolds a9a15caeae Merge pull request #834 from tricknotes/fix-code-comment
Fix code comment
2013-03-22 10:23:12 -07:00
Artem Baguinski e169f88a5a fix 'needs_to_reload?' regexps
- remove stray ^ that would cause regexp to never match
- remove '_helper' suffix as it isn't required for helpers
2013-03-22 18:22:16 +01:00
Ryunosuke SATO f7f281de39 Fix code comment 2013-03-22 18:14:10 +09:00
Thomas Reynolds bef30685e0 Merge pull request #831 from tricknotes/modify-filetype
Modify filetype
2013-03-21 13:17:42 -07:00
Ryunosuke SATO de7b58e210 Modify filetype
These files shouldn't have execute authority.
- .gitignore
- LICENSE
2013-03-22 00:57:28 +09:00
Thomas Reynolds 63a13e1e66 coffee test 2013-03-20 09:52:31 -07:00
Thomas Reynolds 0a1751fff0 change i18n dep again 2013-03-20 08:57:32 -07:00
Thomas Reynolds f83bcad312 loosen dep 2013-03-20 08:54:28 -07:00
Thomas Reynolds c4cf672640 Remove Rainpress pure ruby CSS compressor and simply use SCSS :) 2013-03-19 16:23:10 -07:00
Thomas Reynolds 1c7308fcea Remove Rainpress pure ruby CSS compressor and simply use SCSS :) 2013-03-19 16:21:49 -07:00