From ea2dfa56558f08dde1a9353bd996e62822a3e013 Mon Sep 17 00:00:00 2001 From: Paul Van Eck Date: Thu, 27 Apr 2017 13:49:36 -0700 Subject: [PATCH] Add exec to generate doc HTML templates RefStack will soon have a script[1] to generate HTML templates from the RST docs. The 'about' page for the RefStack website will depend on this script being run. This patch will have puppet run the script everytime a new version of RefStack is installed. [1] https://review.openstack.org/#/c/458310 Change-Id: Ib5bdf3ab0b9944d54be79330e38bc9acfbf25c65 --- manifests/app.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manifests/app.pp b/manifests/app.pp index 47acd82..51e49ab 100644 --- a/manifests/app.pp +++ b/manifests/app.pp @@ -165,6 +165,14 @@ class refstack::app () { ] } + # Generate HTML templates from docs + exec { 'generate-doc-html': + command => "python ${src_root}/tools/convert-docs.py -o ${src_root}/refstack-ui/app/components/about/templates ${src_root}/doc/source/*.rst", + path => '/usr/local/bin:/usr/bin:/bin', + refreshonly => true, + subscribe => Exec['install-refstack'] + } + # Create config.json file. file { "${src_root}/refstack-ui/app/config.json": ensure => file,