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:
parent
4ed01cd69c
commit
7ca59c8285
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue