Set default paths for OpenStack

Several previous openstackdocstheme deployments
used get_pdf_theme_path() and get_openstack_logo_path()
without arguments. This patch adds default arguments as 'openstack'
to correctly work on such deployments.

Change-Id: I23a5ae26b3367514a8e531925f93ddc97d56f6be
This commit is contained in:
Ian Y. Choi 2018-10-20 16:23:16 +09:00
parent 4ed01cd69c
commit 7ca59c8285
1 changed files with 2 additions and 2 deletions

View File

@ -24,13 +24,13 @@ def get_html_theme_path():
return os.path.join(get_pkg_path(), 'theme')
def get_pdf_theme_path(theme):
def get_pdf_theme_path(theme='openstack'):
"""Return the directory containing PDF theme for local builds."""
args = ['theme', theme + '_pdf', 'pdftheme']
return os.path.join(get_pkg_path(), *args)
def get_theme_logo_path(theme):
def get_theme_logo_path(theme='openstack'):
"""Return the directory containing theme logo for local builds."""
args = ['theme', theme + '_pdf', 'logo-full.png']
return os.path.join(get_pkg_path(), *args)