diff --git a/features/collections.feature b/features/collections.feature index 402e7dab..821ae64f 100644 --- a/features/collections.feature +++ b/features/collections.feature @@ -82,3 +82,15 @@ Feature: Collections When I run jekyll build Then the _site directory should exist And I should see "All documents: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html" + + Scenario: Documents have an output attribute, which is the converted HTML + Given I have an "index.html" page that contains "First document's output: {{ site.documents.first.output }}" + And I have fixture collections + And I have a "_config.yml" file with content: + """ + collections: + - methods + """ + When I run jekyll build + Then the _site directory should exist + And I should see "First document's output:
Use Jekyll.configuration
to build a full configuration for use w/Jekyll.
Whatever: foo.bar
" in "_site/index.html" diff --git a/lib/jekyll/document.rb b/lib/jekyll/document.rb index 3b2b6eeb..be4ead20 100644 --- a/lib/jekyll/document.rb +++ b/lib/jekyll/document.rb @@ -194,6 +194,7 @@ module Jekyll def to_liquid if data.is_a?(Hash) Utils.deep_merge_hashes data, { + "output" => output, "content" => content, "path" => path, "relative_path" => relative_path, diff --git a/site/docs/assets.md b/site/docs/assets.md index a93581ed..bdfcfddc 100644 --- a/site/docs/assets.md +++ b/site/docs/assets.md @@ -6,14 +6,6 @@ next_section: migrations permalink: /docs/assets/ --- -- In order to use this feature, - install the latest development version of Jekyll. -
-- In order to use this feature, - install the latest development version of Jekyll. -
-diff --git a/site/docs/configuration.md b/site/docs/configuration.md index c273ca6a..e4351847 100644 --- a/site/docs/configuration.md +++ b/site/docs/configuration.md @@ -278,14 +278,6 @@ before your site is served. ## Frontmatter defaults -
- In order to use this feature, - install the latest development version of Jekyll. -
-- In the latest development releases, we've deprecated Maruku and will default to - Kramdown instead of Maruku. All versions below this will use Maruku as the - default. -
-path
, modified_time
and extname
.
- Note: this is only available in the latest development
- version.
@@ -130,9 +127,6 @@ following is a reference of the available data.
A list of all the documents in every collection. - Note: this is only available in the latest development - version.