jjb: fix doc build to support multiple depth of dirs 43/3643/1
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Thu, 26 Nov 2015 11:24:56 +0000 (20:24 +0900)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Thu, 26 Nov 2015 11:26:05 +0000 (20:26 +0900)
JIRA: RELENG-16

Change-Id: I86293f9b79c083f286f9036a3137465513e92d17
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
docs/etc/conf.py
jjb/releng-macros.yaml

index 6245cc0..f42b110 100644 (file)
@@ -2,7 +2,11 @@
 Base configuration file for sphinx-build.
 
 You can override this configuration by putting 'conf.py' in the document
-directory (e.g. how-to-use-docs/conf.py).
+directory (e.g. how-to-use-docs/conf.py). If there is no 'conf.py' in the
+document directory, this file will be copied to that directory before the
+document builder jobs in 'opnfv-docs-verify' and 'opnfv-docs-merge'.
+The logo image (opnfv-logo.png) will be also copied from
+docs/etc/opnfv-logo.png during the build jobs.
 '''
 
 import datetime
@@ -13,10 +17,10 @@ pygments_style = 'sphinx'
 
 html_use_index = False
 numfig = True
-html_logo = '../etc/opnfv-logo.png'
+html_logo = 'opnfv-logo.png'
 
 latex_elements = {'printindex': ''}
-latex_logo = '../etc/opnfv-logo.png'
+latex_logo = 'opnfv-logo.png'
 
 copyright = u'%s, OPNFV' % datetime.date.today().year
 version = u'1.0.0'
index a36f134..5ef8a17 100644 (file)
                     _title=$(cd $dir; python -c "$_get_title_script")
                     echo "latex_documents = [('index', '$_name.tex', '$_title', 'OPNFV', 'manual'),]" >> "$dir/conf.py"
                 fi
+                cp -f "docs/etc/opnfv-logo.png" "$dir/opnfv-logo.png"
 
                 mkdir -p "$_output"