From: Wouter Admiraal Date: Wed, 22 May 2019 07:23:33 +0000 (+0200) Subject: SONAR-12127 Update the Gatsby config for custom blocks X-Git-Tag: 7.8~147 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9d47e5eb6277a1d4eb7233c154fd398395d19791;p=sonarqube.git SONAR-12127 Update the Gatsby config for custom blocks --- diff --git a/server/sonar-docs/gatsby-config.js b/server/sonar-docs/gatsby-config.js index 833b83c342a..33d891cdb5c 100644 --- a/server/sonar-docs/gatsby-config.js +++ b/server/sonar-docs/gatsby-config.js @@ -37,18 +37,18 @@ module.exports = { options: { pathToConfigModule: `src/utils/typography` } }, { - resolve: 'gatsby-transformer-remark', + resolve: `gatsby-transformer-remark`, options: { plugins: [ { - resolve: 'gatsby-remark-custom-blocks', + resolve: `gatsby-remark-custom-blocks`, options: { blocks: { - danger: 'alert alert-danger', - warning: 'alert alert-warning', - info: 'alert alert-info', - success: 'alert alert-success', - collapse: 'collapse' + danger: { classes: 'alert alert-danger' }, + warning: { classes: 'alert alert-warning' }, + info: { classes: 'alert alert-info' }, + success: { classes: 'alert alert-success' }, + collapse: { classes: 'collapse' } } } }