mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 02:17:16 +02:00
docs: SVG files are now copied and searched correctly
This commit is contained in:
@ -275,3 +275,7 @@ add_documentation(documentation ALL
|
||||
CODE_DEPENDS ${unitsPublicHeaders}
|
||||
DOCS_DEPENDS ${unitsSphinxDocs}
|
||||
)
|
||||
|
||||
add_custom_command(TARGET documentation POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/_static/img/*.svg ${CMAKE_CURRENT_BINARY_DIR}/sphinx/_images
|
||||
)
|
||||
|
@ -9,7 +9,7 @@ The most important concepts in the library are `Unit`, `Dimension`,
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<object data="/_static/img/concepts.svg" type="image/svg+xml" class="align-center" style="max-width: 100%;"></object>
|
||||
<object data="../_images/concepts.svg" type="image/svg+xml" class="align-center" style="max-width: 100%;"></object>
|
||||
|
||||
..
|
||||
https://www.planttext.com
|
||||
|
@ -10,7 +10,7 @@ dimensions.
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<object data="/_static/img/dimensions.svg" type="image/svg+xml" class="align-center" style="max-width: 100%;"></object>
|
||||
<object data="../_images/dimensions.svg" type="image/svg+xml" class="align-center" style="max-width: 100%;"></object>
|
||||
|
||||
..
|
||||
https://www.planttext.com
|
||||
|
@ -23,7 +23,7 @@ of a `scaled_unit` class template:
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<object data="/_static/img/units.svg" type="image/svg+xml" class="align-center" style="max-width: 100%;"></object>
|
||||
<object data="../_images/units.svg" type="image/svg+xml" class="align-center" style="max-width: 100%;"></object>
|
||||
|
||||
..
|
||||
https://www.planttext.com
|
||||
|
Reference in New Issue
Block a user