doxygen/testing/031_image.dox

60 lines
2.2 KiB
Plaintext
Raw Normal View History

2022-10-26 16:06:26 +08:00
// objective: test the \image command
// check: indexpage.xml
// config: IMAGE_PATH = $INPUTDIR
/** \mainpage
Some text.
\image html sample.png
\image latex sample.png "Doxygen logo" width=5cm
\image docbook sample.png
More text.
SVG image with caption:\n
\image html https://raster.shields.io/badge/license-MIT-brightgreen.svg "A caption"
PNG image with caption:\n
\image html https://raster.shields.io/badge/license-MIT-brightgreen.png "A caption"
SVG image without caption:\n
\image html https://raster.shields.io/badge/license-MIT-brightgreen.svg
PNG image without caption:\n
\image html https://raster.shields.io/badge/license-MIT-brightgreen.png
Inline SVG image with caption:\n
This image is inline \image{inline} html https://raster.shields.io/badge/license-MIT-brightgreen.svg "MIT license" within the text.
Inline PNG image with caption:\n
This image is inline
\image{inline} html https://raster.shields.io/badge/license-MIT-brightgreen.png "MIT license"
within the text.
Markdown style linked SVG image:\n
[![MIT license](https://raster.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
Markdown style linked PNG image:\n
[![MIT license](https://raster.shields.io/badge/license-MIT-brightgreen.png)](https://opensource.org/licenses/MIT)
HTML style linked SVG image:\n
<a href="https://opensource.org/licenses/MIT">
<img src="https://raster.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT license">
</a>
HTML style linked PNG image:\n
<a href="https://opensource.org/licenses/MIT">
<img src="https://raster.shields.io/badge/license-MIT-brightgreen.png" alt="MIT license">
</a>
HTML style unlinked SVG image:\n
<img src="https://raster.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT license"/>
HTML style unlinked PNG image:\n
<img src="https://raster.shields.io/badge/license-MIT-brightgreen.png" alt="MIT license"/>
Some markdown image tests\n
![Some SVG image](https://raster.shields.io/badge/docs-Doxygen-blue.svg?foo&bar)
[Some normal link](https://www.doxygen.nl/index.html?foo&bar)
![Some SVG image](https://raster.shields.io/badge/docs-Doxygen-blue.svg?foo&amp;bar)
[Some normal link](https://www.doxygen.nl/index.html?foo&amp;bar)
*/