Skip to content

Commit c569a58

Browse files
committed
Add parameter to rst_to_html to pass machine-specific welcome documentation.
1 parent bc769dd commit c569a58

7 files changed

+11
-8
lines changed

jobs/provision_virtualmicromagnetics_fidimag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
roles:
1212
- fidimag
1313
- xserver
14-
- rst_to_html
14+
- { role: rst_to_html, SOURCE_PATH: /vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst }
1515
- add_super_user
1616
- { role: set_hostname, HOSTNAME: {{ vm_name }} }

jobs/provision_virtualmicromagnetics_full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
- nmag_examples
2020
- fidimag
2121
- xserver
22-
- rst_to_html
22+
- { role: rst_to_html, SOURCE_PATH: /vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst }
2323
- add_super_user
2424
- { role: set_hostname, HOSTNAME: {{ vm_name }} }

jobs/provision_virtualmicromagnetics_lite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
- nmag_examples
1818
- fidimag
1919
- xserver
20-
- rst_to_html
20+
- { role: rst_to_html, SOURCE_PATH: /vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst }
2121
- add_super_user
2222
- { role: set_hostname, HOSTNAME: {{ vm_name }} }

jobs/provision_virtualmicromagnetics_magpar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
- magpar
1313
- magpar_examples
1414
- xserver
15-
- rst_to_html
15+
- { role: rst_to_html, SOURCE_PATH: /vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst }
1616
- add_super_user
1717
- { role: set_hostname, HOSTNAME: {{ vm_name }} }

jobs/provision_virtualmicromagnetics_nmag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
- nmag
1313
- nmag_examples
1414
- xserver
15-
- rst_to_html
15+
- { role: rst_to_html, SOURCE_PATH: /vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst }
1616
- add_super_user
1717
- { role: set_hostname, HOSTNAME: {{ vm_name }} }

jobs/provision_virtualmicromagnetics_oommf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
- oommf
1313
- oommf_examples
1414
- xserver
15-
- rst_to_html
15+
- { role: rst_to_html, SOURCE_PATH: /vagrant/extra_resources/welcome/welcome_{{ vm_name }}.rst }
1616
- add_super_user
1717
- { role: set_hostname, HOSTNAME: {{ vm_name }} }

roles/rst_to_html/vars/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# By default, these vars will build the welcoming documentation for the user's
22
# desktop. They should be overwritten when specific files are to be built.
33

4+
# User must define SOURCE_PATH, which is the path to the RST file on the
5+
# virtual machine.
6+
47
BUILD_DIR: /etc/skel/Desktop
5-
SOURCE_PATH: /vagrant/extra_resources/welcome.rst
6-
BUILD_NAME: Welcome.html
8+
BUILD_NAME: Welcome.html
9+

0 commit comments

Comments
 (0)