Skip to content

Commit 7928c16

Browse files
committed
Merge pull request #32 from fangohr/BUG-029
BUG-029: Some examples documentation is missing on the desktop of the Full environment
2 parents a80c6b1 + 3100503 commit 7928c16

File tree

10 files changed

+66
-13
lines changed

10 files changed

+66
-13
lines changed

jobs/provision_virtualmicromagnetics_fidimag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
vm_name: virtualmicromagnetics-fidimag
1010

1111
roles:
12+
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1213
- fidimag
1314
- fidimag_examples
1415
- xserver
15-
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1616
- add_super_user
17-
- { role: set_hostname, HOSTNAME: "{{ vm_name}}" }
17+
- { role: set_hostname, HOSTNAME: "{{ vm_name }}" }

jobs/provision_virtualmicromagnetics_full.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
roles:
1313
- other_dependencies
14+
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1415
- oommf
1516
- oommf_examples
1617
- magpar
@@ -20,6 +21,6 @@
2021
- fidimag
2122
- fidimag_examples
2223
- xserver
23-
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
2424
- add_super_user
25-
- { role: set_hostname, HOSTNAME: "{{ vm_name}}" }
25+
- { role: set_hostname, HOSTNAME: "{{ vm_name }}" }
26+

jobs/provision_virtualmicromagnetics_lite.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
vm_name: virtualmicromagnetics-lite
1010

1111
roles:
12+
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1213
- oommf
1314
- oommf_examples
1415
- magpar
@@ -18,6 +19,5 @@
1819
- fidimag
1920
- fidimag_examples
2021
- xserver
21-
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
2222
- add_super_user
23-
- { role: set_hostname, HOSTNAME: "{{ vm_name}}" }
23+
- { role: set_hostname, HOSTNAME: "{{ vm_name }}" }

jobs/provision_virtualmicromagnetics_magpar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
vm_name: virtualmicromagnetics-magpar
1010

1111
roles:
12+
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1213
- magpar
1314
- magpar_examples
1415
- xserver
15-
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1616
- add_super_user
17-
- { role: set_hostname, HOSTNAME: "{{ vm_name}}" }
17+
- { role: set_hostname, HOSTNAME: "{{ vm_name }}" }

jobs/provision_virtualmicromagnetics_nmag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
vm_name: virtualmicromagnetics-nmag
1010

1111
roles:
12+
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1213
- nmag
1314
- nmag_examples
1415
- xserver
15-
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1616
- add_super_user
17-
- { role: set_hostname, HOSTNAME: "{{ vm_name}}" }
17+
- { role: set_hostname, HOSTNAME: "{{ vm_name }}" }

jobs/provision_virtualmicromagnetics_oommf.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
vm_name: virtualmicromagnetics-oommf
1010

1111
roles:
12+
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1213
- oommf
1314
- oommf_examples
1415
- xserver
15-
- { role: rst_to_html, SOURCE_PATH: "/vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst" }
1616
- add_super_user
17-
- { role: set_hostname, HOSTNAME: "{{ vm_name}}" }
17+
- { role: set_hostname, HOSTNAME: "{{ vm_name }}" }

roles/fidimag_examples/tasks/main.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,21 @@
22
# This Ansible role prepares Fidimag examples and places some documentation on
33
# the Desktop.
44

5+
# Create examples documentation.
6+
- name: Create documentation build directory.
7+
file:
8+
name={{ EXAMPLES_DOC_FOLDER }}
9+
state=directory
10+
sudo: yes
11+
12+
- name: Convert to HTML and place in the build directory.
13+
shell: rst2html.py {{ EXAMPLES_RST_FILE }} {{ EXAMPLES_OUTPUT_NAME }}
14+
chdir={{ EXAMPLES_DOC_FOLDER }}
15+
creates={{ EXAMPLES_DOC_FOLDER }}/{{ EXAMPLES_OUTPUT_NAME }}
16+
sudo: yes
17+
518
# This task is not very robust, but I can't think of a better way of doing
619
# this.
7-
820
- name: Copy fidimag examples to a more accessible location.
921
command: cp -r /opt/fidimag/examples {{ FIDIMAG_EXAMPLES_FOLDER }}
1022
creates={{ FIDIMAG_EXAMPLES_FOLDER }}

roles/magpar_examples/tasks/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
# This Ansible role prepares Magpar examples and places some documentation on
33
# the Desktop.
44

5+
# Create examples documentation.
6+
- name: Create documentation build directory.
7+
file:
8+
name={{ EXAMPLES_DOC_FOLDER }}
9+
state=directory
10+
sudo: yes
11+
12+
- name: Convert to HTML and place in the build directory.
13+
shell: rst2html.py {{ EXAMPLES_RST_FILE }} {{ EXAMPLES_OUTPUT_NAME }}
14+
chdir={{ EXAMPLES_DOC_FOLDER }}
15+
creates={{ EXAMPLES_DOC_FOLDER }}/{{ EXAMPLES_OUTPUT_NAME }}
16+
sudo: yes
17+
18+
# Install examples
519
- name: Download magpar examples tarball.
620
get_url:
721
url={{ MAGPAR_EXAMPLES_URL }}

roles/nmag_examples/tasks/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
# This Ansible role prepares Nmag examples and places some documentation on the
33
# Desktop.
44

5+
# Create examples documentation.
6+
- name: Create documentation build directory.
7+
file:
8+
name={{ EXAMPLES_DOC_FOLDER }}
9+
state=directory
10+
sudo: yes
11+
12+
- name: Convert to HTML and place in the build directory.
13+
shell: rst2html.py {{ EXAMPLES_RST_FILE }} {{ EXAMPLES_OUTPUT_NAME }}
14+
chdir={{ EXAMPLES_DOC_FOLDER }}
15+
creates={{ EXAMPLES_DOC_FOLDER }}/{{ EXAMPLES_OUTPUT_NAME }}
16+
sudo: yes
17+
518
# This following task is not very robust, but I can't think of a better way of
619
# doing this.
720
- name: Copy nmag examples to a more accessible location.

roles/oommf_examples/tasks/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
# This Ansible role prepares OOMMF examples and places some documentation on
33
# the Desktop.
44

5+
# Create examples documentation.
6+
- name: Create documentation build directory.
7+
file:
8+
name={{ EXAMPLES_DOC_FOLDER }}
9+
state=directory
10+
sudo: yes
11+
12+
- name: Convert to HTML and place in the build directory.
13+
shell: rst2html.py {{ EXAMPLES_RST_FILE }} {{ EXAMPLES_OUTPUT_NAME }}
14+
chdir={{ EXAMPLES_DOC_FOLDER }}
15+
creates={{ EXAMPLES_DOC_FOLDER }}/{{ EXAMPLES_OUTPUT_NAME }}
16+
sudo: yes
17+
518
# This task is not very robust, but I can't think of a better way of doing
619
# this.
720
- name: Copy oommf examples to a more accessible location.

0 commit comments

Comments
 (0)