Commit 5d3d7567217d3748f9f648ecce42eb5ab5a4ff64
1 parent
ca899415
Exists in
master
and in
34 other branches
doc: always publish docs for the right environment
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
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/" |
docs/Makefile
@@ -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) |