From 962adb6c2290516b6cc22a1a154e0342b629deb1 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 8 Aug 2017 14:02:40 +0200 Subject: [PATCH 1/2] Use icinga/icinga2 support/2.7 branch for docs hot-fixes --- config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.yml b/config.yml index ce2bbf7..b1f074c 100644 --- a/config.yml +++ b/config.yml @@ -3,7 +3,7 @@ projects_dir: 'projects' projects: Icinga 2: git: 'https://github.com/Icinga/icinga2.git' - ref: 'tags/v2.7.0' + ref: 'support/2.7' latest: true target: 'icinga2' docs_dir: 'doc' From 63c979f37b6c5ad88392e7759c58575136272908 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 8 Aug 2017 15:03:29 +0200 Subject: [PATCH 2/2] Ensure to pull the reference (branch) after fetching it --- build-docs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-docs.rb b/build-docs.rb index 074afe2..ee165db 100755 --- a/build-docs.rb +++ b/build-docs.rb @@ -34,7 +34,7 @@ config['projects'].each do |project_name, project_config| puts "Checkout ref '#{project_config['ref']}'" repo.branch(project_config['ref']).checkout - + repo.pull() puts "Building page index from #{project_docs_dir}" Dir.glob("#{project_docs_dir}/*.md", File::FNM_CASEFOLD).sort.each do |file|