Commit 5d3d7567217d3748f9f648ecce42eb5ab5a4ff64

Authored by Antonio Terceiro
1 parent ca899415

doc: always publish docs for the right environment

cookbooks/reverse_proxy/recipes/documentation.rb
1 -docs = File.expand_path('../../../docs/_build/html', File.dirname(__FILE__)) 1 +docs = File.expand_path("../../../docs/_build/#{node['environment']}/html", File.dirname(__FILE__))
2 2
3 execute 'rsync::docs' do 3 execute 'rsync::docs' do
4 command "rsync -avp --delete #{docs}/ /srv/doc/" 4 command "rsync -avp --delete #{docs}/ /srv/doc/"
@@ -25,7 +25,7 @@ _build/%: %.in build.rb @@ -25,7 +25,7 @@ _build/%: %.in build.rb
25 CLEAN_FILES += $(BUILT) 25 CLEAN_FILES += $(BUILT)
26 26
27 html latexpdf: $(BUILT) 27 html latexpdf: $(BUILT)
28 - $(MAKE) -C _build $@ 28 + $(MAKE) -C _build $@ BUILDDIR=$(SPB_ENV)
29 29
30 clean: 30 clean:
31 $(RM) $(BUILT) 31 $(RM) $(BUILT)