]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12127 Update the Gatsby config for custom blocks
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Wed, 22 May 2019 07:23:33 +0000 (09:23 +0200)
committerSonarTech <sonartech@sonarsource.com>
Mon, 27 May 2019 18:21:09 +0000 (20:21 +0200)
server/sonar-docs/gatsby-config.js

index 833b83c342ac2c6be8f19f785a005f6da2e3523a..33d891cdb5c8cb658b35544f4eb2690e78ec44d9 100644 (file)
@@ -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' }
               }
             }
           }