diff --git a/coreapi/help/doc/sphinx/CMakeLists.txt b/coreapi/help/doc/sphinx/CMakeLists.txt index 15abb7480..0d569a438 100644 --- a/coreapi/help/doc/sphinx/CMakeLists.txt +++ b/coreapi/help/doc/sphinx/CMakeLists.txt @@ -42,6 +42,7 @@ if (ENABLE_SPHINX_DOC) ) configure_file(conf.py.in source/conf.py) configure_file(source/index.rst source/index.rst COPYONLY) + configure_file(logo.png source/logo.png COPYONLY) add_custom_command(OUTPUT ${GENERATED_SPHINX_SOURCES} COMMAND ${CMAKE_COMMAND} -E remove -f ${DOCUMENTATION_DIRS} COMMAND ${PYTHON_EXECUTABLE} '${CMAKE_CURRENT_SOURCE_DIR}/gendoc.py' '${LINPHONE_DOXYGEN_XML_DIR}' -o 'source' diff --git a/coreapi/help/doc/sphinx/conf.py.in b/coreapi/help/doc/sphinx/conf.py.in index ad43af725..f2cece998 100644 --- a/coreapi/help/doc/sphinx/conf.py.in +++ b/coreapi/help/doc/sphinx/conf.py.in @@ -90,13 +90,18 @@ html_theme = 'classic' # further. For a list of options available for each theme, see the # documentation. # -# html_theme_options = {} +html_theme_options = { + 'collapsiblesidebar': 'true' +} # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] +# Path to the picture to use as logo. +html_logo = 'logo.png' + # -- Options for HTMLHelp output ------------------------------------------ diff --git a/coreapi/help/doc/sphinx/logo.png b/coreapi/help/doc/sphinx/logo.png new file mode 100644 index 000000000..de261e94a Binary files /dev/null and b/coreapi/help/doc/sphinx/logo.png differ