From: Stas Vilchik Date: Wed, 18 Jul 2018 12:13:25 +0000 (+0200) Subject: SONAR-11014 support icons in documentation (#521) X-Git-Tag: 7.5~733 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1e1472ca428aba286c40d86cb7ee409ab10a98c3;p=sonarqube.git SONAR-11014 support icons in documentation (#521) --- diff --git a/server/sonar-docs/src/images/check.svg b/server/sonar-docs/src/images/check.svg new file mode 100644 index 00000000000..51435de4153 --- /dev/null +++ b/server/sonar-docs/src/images/check.svg @@ -0,0 +1 @@ + diff --git a/server/sonar-docs/src/images/cross.svg b/server/sonar-docs/src/images/cross.svg new file mode 100644 index 00000000000..57c6853ce4d --- /dev/null +++ b/server/sonar-docs/src/images/cross.svg @@ -0,0 +1 @@ + diff --git a/server/sonar-docs/src/images/exclamation.svg b/server/sonar-docs/src/images/exclamation.svg new file mode 100644 index 00000000000..7b1e8da8192 --- /dev/null +++ b/server/sonar-docs/src/images/exclamation.svg @@ -0,0 +1 @@ + diff --git a/server/sonar-docs/src/images/info.svg b/server/sonar-docs/src/images/info.svg new file mode 100644 index 00000000000..c794429034a --- /dev/null +++ b/server/sonar-docs/src/images/info.svg @@ -0,0 +1 @@ + diff --git a/server/sonar-docs/src/templates/page.js b/server/sonar-docs/src/templates/page.js index 37edc9dbc77..2b673ee2181 100644 --- a/server/sonar-docs/src/templates/page.js +++ b/server/sonar-docs/src/templates/page.js @@ -42,7 +42,16 @@ export default ({ data }) => {

{page.frontmatter.title}

-
+
); }; diff --git a/server/sonar-web/src/main/js/apps/documentation/styles.css b/server/sonar-web/src/main/js/apps/documentation/styles.css index 65a00533990..9bc318b209b 100644 --- a/server/sonar-web/src/main/js/apps/documentation/styles.css +++ b/server/sonar-web/src/main/js/apps/documentation/styles.css @@ -72,3 +72,7 @@ .documentation-content.markdown li > p + ol { margin: 0; } + +.documentation-content.markdown img[src$='.svg'] { + vertical-align: text-bottom; +}