diff --git a/openstackdocstheme/paths.py b/openstackdocstheme/paths.py index 10ee68c..114bc37 100644 --- a/openstackdocstheme/paths.py +++ b/openstackdocstheme/paths.py @@ -34,3 +34,9 @@ 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) + + +# This function is for compatibility with previous releases. +def get_openstack_logo_path(): + """Return the directory containing openstack logo for local builds.""" + return get_theme_logo_path('openstack') diff --git a/releasenotes/notes/get_openstack_logo_path-6cdb6538bc5893c3.yaml b/releasenotes/notes/get_openstack_logo_path-6cdb6538bc5893c3.yaml new file mode 100644 index 0000000..2ad3b3c --- /dev/null +++ b/releasenotes/notes/get_openstack_logo_path-6cdb6538bc5893c3.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fix API breakages in 1.26.0: Readd ``get_openstack_logo_path``, + add default parameter to ``get_pdf_theme_path``.