Merge "Add exec to generate doc HTML templates"

This commit is contained in:
Jenkins 2017-06-06 23:18:40 +00:00 committed by Gerrit Code Review
commit 6c2e816318
1 changed files with 8 additions and 0 deletions

View File

@ -172,6 +172,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,