Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Build talk slides during deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
opdavies committed Aug 12, 2020
1 parent 7fa7d76 commit 5ae79ff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Empty file added slides/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions tools/ansible/deploy/after-update-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 6 additions & 0 deletions tools/ansible/includes/build-talk-slides.yml
Original file line number Diff line number Diff line change
@@ -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 }}'
2 changes: 1 addition & 1 deletion tools/ansible/vars/provision_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 5ae79ff

Please sign in to comment.