Skip to content

Commit 23f9b7d

Browse files
authored
Merge pull request codac-team#331 from SimonRohou/codac2_dev
Doc + contractors
2 parents c96466f + 6b645f6 commit 23f9b7d

21 files changed

Lines changed: 268 additions & 62 deletions

doc/CMakeLists.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
endif()
3434

3535
message(STATUS "Building API Documentation (mandatory for Python binding or for building the manual)")
36+
37+
set(SPHINX_EXTRA_API ${CMAKE_CURRENT_BINARY_DIR}/manual/extra_html/api)
38+
file(MAKE_DIRECTORY ${SPHINX_EXTRA_API})
39+
3640
execute_process(COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_INPUT} OUTPUT_QUIET)
3741
add_custom_target(api COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_INPUT} OUTPUT_QUIET)
3842

39-
install(DIRECTORY ${CMAKE_BINARY_DIR}/doc/api/html
40-
DESTINATION share/doc/${CMAKE_PROJECT_NAME}/api
41-
OPTIONAL)
42-
4343
endif()
4444

4545
endif()
@@ -87,6 +87,14 @@
8787
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
8888
COMMENT "Generating the manual website using Sphinx")
8989

90+
add_custom_command(
91+
TARGET manual POST_BUILD
92+
COMMAND ${CMAKE_COMMAND} -E copy_directory
93+
${CMAKE_BINARY_DIR}/doc/api/html
94+
${SPHINX_EXTRA_API}
95+
COMMENT "Copying generated Doxygen HTML to Sphinx extra_html/api"
96+
)
97+
9098
install(DIRECTORY ${SPHINX_BUILD}/
9199
DESTINATION share/codac_website
92100
OPTIONAL)

doc/manual/_static/css/custom.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ article .align-default {
139139
text-align: left;
140140
}
141141

142+
article .align-centered {
143+
text-align: center;
144+
}
145+
142146
dl.cpp:not(dl.cpp dl.cpp) { /* for displaying a border on doxygen blocks */
143147
border-left: 5px solid var(--color-background-border);
144148
padding-left: 5px;
@@ -159,4 +163,17 @@ a .download:before {
159163
.toggle-hidden .sphinx-tabs-panel, .toggle-hidden [aria-selected="true"] {
160164
background-color: #AAFFBF;
161165
border-bottom: 1px solid #AAFFBF;
166+
}
167+
168+
.reveal-bg { /* displays a checkerboard background to reveal transparency effects */
169+
--size: 12px;
170+
171+
background-color: #eee;
172+
background-image:
173+
linear-gradient(45deg, #ddd 25%, transparent 25%),
174+
linear-gradient(-45deg, #ddd 25%, transparent 25%),
175+
linear-gradient(45deg, transparent 75%, #ddd 75%),
176+
linear-gradient(-45deg, transparent 75%, #ddd 75%);
177+
background-size: var(--size) var(--size);
178+
background-position: 0 0, 0 calc(var(--size)/2), calc(var(--size)/2) calc(var(--size)/-2), calc(var(--size)/-2) 0;
162179
}
64.9 KB
Binary file not shown.
103 KB
Loading
20.6 KB
Loading
58.3 KB
Loading

doc/manual/_static/logos/logo_codac_transparent.svg

Lines changed: 118 additions & 0 deletions
Loading
115 KB
Loading
130 KB
Loading

doc/manual/conf.py.in

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ exclude_patterns = []
3232

3333
html_static_path = ['_static']
3434
html_theme = "furo"
35-
html_logo = "_static/logos/logo_codac.svg"
35+
#html_logo = "_static/logos/logo_codac.svg"
36+
html_logo = "_static/logos/logo_codac_christmas.png"
3637
html_favicon = "_static/logos/logo_codac.ico"
3738

3839
# These paths are either relative to html_static_path
@@ -105,4 +106,6 @@ breathe_projects = {
105106

106107
#togglebutton_hint = "<strong style=\"color: #009945;\">Reveal the solution.</strong>"
107108
togglebutton_hint = "Reveal the solution."
108-
togglebutton_hint_hide = "Hide the solution."
109+
togglebutton_hint_hide = "Hide the solution."
110+
111+
html_extra_path = ['extra_html']

0 commit comments

Comments
 (0)