kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #36164
[PATCH] Add logo to documentation
Hi,
This patch adds a small KiCad logo to the three doxygen documentation
targets (C++, dev docs and Python docs) for a little bit more flair.
The image itself is put in the /Documentation dir, but it's not really
important to the process where it goes.
Cheers,
John
From 3579685855ce1f022ce50fbed5294b67d730510f Mon Sep 17 00:00:00 2001
From: John Beard <john.j.beard@xxxxxxxxx>
Date: Wed, 13 Jun 2018 12:51:49 +0100
Subject: [PATCH] Documentation: add logo to Doxygen pages
This adds a small KiCad logo in the top left of the Doxygen pages.
For the main docs and the dev docs, this is easily done in the Doxyfile,
for the Python docs, as that is run from the binary dir, the source dir
is passed as an Environment variable.
---
Documentation/development/Doxyfile | 2 +-
Documentation/kicad_doxygen_logo.png | Bin 0 -> 2793 bytes
Doxyfile | 2 +-
pcbnew/CMakeLists.txt | 5 ++++-
pcbnew/Doxyfile_python | 2 +-
5 files changed, 7 insertions(+), 4 deletions(-)
create mode 100644 Documentation/kicad_doxygen_logo.png
diff --git a/Documentation/development/Doxyfile b/Documentation/development/Doxyfile
index f005d917d..02d6b3e83 100644
--- a/Documentation/development/Doxyfile
+++ b/Documentation/development/Doxyfile
@@ -46,7 +46,7 @@ PROJECT_BRIEF =
# exceed 55 pixels and the maximum width should not exceed 200 pixels.
# Doxygen will copy the logo to the output directory.
-PROJECT_LOGO =
+PROJECT_LOGO = ../kicad_doxygen_logo.png
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
diff --git a/Documentation/kicad_doxygen_logo.png b/Documentation/kicad_doxygen_logo.png
new file mode 100644
index 0000000000000000000000000000000000000000..c7a1b0f85136811ebc095ee5dee7f684f394b834
GIT binary patch
literal 2793
zcmV<F3KsQ=P)<h;3K|Lk000e1NJLTq004&o001`#1^@s6CM{Wi00004b3#c}2nYxW
zd<bNS00009a7bBm000H>000H>0l&BdOaK4?8FWQhbW?9;ba!ELWdL_~cP?peYja~^
zaAhuUa%Y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nD<?fieMmA`gUgX4w8Us12#Vjtzv
z>HC!PMrG|r-kN&iIh%H#)(uBsy#;j00?HAOJ^ca*6{p+cC;eRQn!YU&;*<W(*s9f9
zR$hJ#C({7Zd8CxMR$?no5PywpMKmIjTBWoQM_&D09Vnjjd8%n8RwP(Bn(Z7DWV^CM
z&LPeAD{KKL$Q~S#;4O<Stpv?tTo<RDjJH4HbrhUD!xi!PvrufpRzh!w<Wk_}rRVU!
z0Kk+tT&uoASG$qnFq;X7*^I)`z0WhKdtXlsNv;V;7~ohFEq{z3lq5`9Yico6EyZ&)
vbnx%GI;RYZHHmXhzAx7QMAmF(i<$O6mIau}(J_i^00000NkvXXu0mjftFlbR
literal 0
HcmV?d00001
diff --git a/Doxyfile b/Doxyfile
index 326c6848b..473aea1d0 100644
--- a/Doxyfile
+++ b/Doxyfile
@@ -45,7 +45,7 @@ PROJECT_BRIEF =
# exceed 55 pixels and the maximum width should not exceed 200 pixels.
# Doxygen will copy the logo to the output directory.
-PROJECT_LOGO =
+PROJECT_LOGO = Documentation/kicad_doxygen_logo.png
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt
index 1463e73a7..ed2364e0e 100644
--- a/pcbnew/CMakeLists.txt
+++ b/pcbnew/CMakeLists.txt
@@ -533,7 +533,10 @@ if( DOXYGEN_FOUND )
# Create doxygen-python html
add_custom_target( doxygen-python
${CMAKE_COMMAND} -E remove_directory doxygen-python
- COMMAND ${CMAKE_COMMAND} -E env PYTHON_SOURCES_TO_DOC=${DOXYGEN_PYTHON_SOURCES_STR} ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile_python
+ COMMAND ${CMAKE_COMMAND} -E env
+ PYTHON_SOURCES_TO_DOC=${DOXYGEN_PYTHON_SOURCES_STR}
+ CMAKE_SOURCE_DIR=${CMAKE_SOURCE_DIR}
+ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile_python
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS Doxyfile_python
# DEPENDS xml-to-docstrings
diff --git a/pcbnew/Doxyfile_python b/pcbnew/Doxyfile_python
index c06292721..a2ce2f7b6 100644
--- a/pcbnew/Doxyfile_python
+++ b/pcbnew/Doxyfile_python
@@ -51,7 +51,7 @@ PROJECT_BRIEF =
# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo
# to the output directory.
-PROJECT_LOGO =
+PROJECT_LOGO = $(CMAKE_SOURCE_DIR)/Documentation/kicad_doxygen_logo.png
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
--
2.17.0
Follow ups