From 2d5a23927504a96c80407f15a29cd486d95998b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Thu, 8 Mar 2018 13:46:42 +0100 Subject: [PATCH] Adds a logo in the side panel --- coreapi/help/doc/sphinx/CMakeLists.txt | 1 + coreapi/help/doc/sphinx/conf.py.in | 7 ++++++- coreapi/help/doc/sphinx/logo.png | Bin 0 -> 1174 bytes 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 coreapi/help/doc/sphinx/logo.png 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 0000000000000000000000000000000000000000..de261e94ab30c74508743b5dc03e42b7026261af GIT binary patch literal 1174 zcmV;H1Zn$;P)C0000pP)t-sY;SY_ zTma;3BL8R*-)}1abtC_RIRA@A|CCq%p=tlIga5*v|JcC)V!c+(|@1RCwC$o7;MK+^ZrhP% z$cdkspP$*r@!tzJjz5cy!)rFay#7KkylO8y;NyZ0&;dF?2j~DDpaXP(4$uKQKnM6+ z08scQfG~d2uK|E^(=>VZ5&)lH{$uz`41luJYU*zQn2<_ot&|ij`SKt0@H7CE2Hn2E z#~fl2Cq1%RJ}&!N$C1rky!V{FDfX1EW)*Jv4dAjLqnRZ{K@z}|hH7#c_*wvn zut6#b_clRR0uIm*|+PDA?sSqHj5rDZS9!MXpnr(g(K^qFYrm9hMccV63Cl zP5yLR(g`sn07F8srwtJ8LghCMyxirNGJ<8t!=bq&)h@^EeGgf|3*Nx-T!i<;>V+T> z${=@jvg?W4`{y+_f?Ut+sQ@M}kHYexXzP>i3s&jx@T8AM?L!$`1;vRWRb!-G*(|T) z_32^2g!~wXgkJj8wcYwgUK2**V0nVZNxrsQZ_Q#)Ulq?FODsX)px+zrRVZo$@#py;f`RD)t0j&JSJshT*K>z>%07*qoM6N<$f`u0tn*aa+ literal 0 HcmV?d00001