brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [28/44] incubator-brooklyn git commit: fix so that excluded files get their url rewritten when referenced from menus
Date Fri, 09 Jan 2015 15:34:57 GMT
fix so that excluded files get their url rewritten when referenced from menus


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/eb185036
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/eb185036
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/eb185036

Branch: refs/heads/master
Commit: eb185036ba7a58fc9675a280553839371a54434f
Parents: f2494d7
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Thu Jan 8 15:32:07 2015 +0000
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Thu Jan 8 15:32:07 2015 +0000

----------------------------------------------------------------------
 docs/_plugins/site_structure.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/eb185036/docs/_plugins/site_structure.rb
----------------------------------------------------------------------
diff --git a/docs/_plugins/site_structure.rb b/docs/_plugins/site_structure.rb
index 9990d59..70a07b6 100644
--- a/docs/_plugins/site_structure.rb
+++ b/docs/_plugins/site_structure.rb
@@ -122,8 +122,10 @@ module SiteStructure
         # could not load it from pages, look on disk
 
         if file.exist?                 
-          puts "INFO: reading excluded file #{file} for site structure generation" unless
SiteStructure::DEBUG
+          puts "INFO: reading excluded file #{file} for site structure generation" if SiteStructure::DEBUG
           page = Jekyll::Page.new(site, site.source, File.dirname(file), File.basename(file))
+          # make sure right url is set
+          RewritePaths.rewrite_paths(site, page)
         end
  
         unless page


Mime
View raw message