Repository: brooklyn-docs Updated Branches: refs/heads/master bf43bd004 -> ae8b0abb3
Fixed YAML in content bug Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/f000a31a Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/f000a31a Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/f000a31a Branch: refs/heads/master Commit: f000a31a50abd4b8ac1c8a373ba6411df36b59bc Parents: b5b2161 Author: Duncan Godwin <duncan.god...@cloudsoftcorp.com> Authored: Mon Mar 7 15:48:49 2016 +0000 Committer: Duncan Godwin <duncan.god...@cloudsoftcorp.com> Committed: Mon Mar 7 16:54:43 2016 +0000 ---------------------------------------------------------------------- _plugins/page_structure.rb | 4 ++-- contributing/inline-children.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/f000a31a/_plugins/page_structure.rb ---------------------------------------------------------------------- diff --git a/_plugins/page_structure.rb b/_plugins/page_structure.rb index 07caf17..6b3a2a1 100644 --- a/_plugins/page_structure.rb +++ b/_plugins/page_structure.rb @@ -115,7 +115,7 @@ module PageStructureUtils yamlContent['section_position'] = Integer::MAX end # if there's YAML, check it has the section_position tag and put it into child pages - ($allPages ||= []) << ChildPage.new(yamlContent, $partitionedFileContent[2]) + ($allPages ||= []) << ChildPage.new(yamlContent, $partitionedFileContent[2..-1].join('---')) end end end @@ -154,7 +154,7 @@ module PageStructureUtils yamlContent = YAML.load($partitionedFileContent[1]) # if we can, use it if yamlContent != nil && yamlContent != false - $textContent = $partitionedFileContent[2] + $textContent = $partitionedFileContent[2..-1].join('---') end end http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/f000a31a/contributing/inline-children.md ---------------------------------------------------------------------- diff --git a/contributing/inline-children.md b/contributing/inline-children.md index d6270bb..08eaa38 100644 --- a/contributing/inline-children.md +++ b/contributing/inline-children.md @@ -29,11 +29,11 @@ The content from these inline sections can then be included in the page content in an example from [/guide/ops/locations/index.md](https://github.com/apache/brooklyn-docs/blob/master/guide/ops/locations/index.md){:target="_blank"}: <pre> ---- +--- title: Locations layout: website-normal check_directory_for_children: true ---- +--- Locations are the environments to which Brooklyn deploys applications, including: