Build talk slides during deploy
This commit is contained in:
parent
7fa7d762e0
commit
5ae79ffa6e
0
slides/.gitkeep
Normal file
0
slides/.gitkeep
Normal 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
|
||||
|
|
6
tools/ansible/includes/build-talk-slides.yml
Normal file
6
tools/ansible/includes/build-talk-slides.yml
Normal 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 }}'
|
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue