Build talk slides during deploy

This commit is contained in:
Oliver Davies 2020-08-12 00:46:08 +01:00
parent 7fa7d762e0
commit 5ae79ffa6e
4 changed files with 8 additions and 1 deletions

0
slides/.gitkeep Normal file
View file

View file

@ -32,3 +32,4 @@
changed_when: "'There are no changes to import' not in config_import_result.stderr"
- include: ../includes/build-theme-assets.yml
- include: ../includes/build-talk-slides.yml

View file

@ -0,0 +1,6 @@
---
- name: Generate static slides for talks
shell: >
npm install; npx reveal-md slides.md --static --static-dirs=assets
chdir={{ ansistrano_release_path.stdout }}/slides/{{ item }}
with_items: '{{ slides_repo_names }}'

View file

@ -152,7 +152,7 @@ nginx_vhosts:
# Talks
{% for name in slides_repo_names %}
location /slides-{{ name }} {
alias /srv/slides-{{ name }}/_static/;
alias {{ project_root_path }}/{{ ansistrano_current_dir }}/slides/{{ name }}/_static/;
}
{% endfor %}