Skip to content

Commit 4b6fedc

Browse files
committed
Add fidimag_examples role to install fidimag examples (obviously)
1 parent ad6c4e0 commit 4b6fedc

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
dependencies:
3+
- { role: fidimag }
4+
- { role: rst_to_html, BUILD_DIR: "{{ EXAMPLES_DOC_FOLDER }}", SOURCE_PATH: "{{ EXAMPLES_RST_FILE }}", BUILD_NAME: "{{ EXAMPLES_OUTPUT_NAME }}" }
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
# This Ansible role prepares Fidimag examples and places some documentation on
3+
# the Desktop.
4+
5+
# This task is not very robust, but I can't think of a better way of doing
6+
# this.
7+
8+
- name: Copy fidimag examples to a more accessible location.
9+
command: cp -r /opt/fidimag/examples {{ FIDIMAG_EXAMPLES_FOLDER }}
10+
creates={{ FIDIMAG_EXAMPLES_FOLDER }}
11+
sudo: yes
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Examples location
2+
EXAMPLES_FOLDER: /etc/skel
3+
FIDIMAG_EXAMPLES_FOLDER: "{{ EXAMPLES_FOLDER }}/fidimag-examples"
4+
5+
# Path of the RST template to generate HTML examples from.
6+
EXAMPLES_RST_FILE: /vagrant/extra_resources/fidimag_examples.rst
7+
EXAMPLES_OUTPUT_NAME: Fidimag_examples.html
8+
9+
# Location to place the HTML documentation.
10+
EXAMPLES_DOC_FOLDER: "{{ EXAMPLES_FOLDER }}/Desktop"

0 commit comments

Comments
 (0)