11/* eslint-disable @typescript-eslint/no-var-requires */
2- const pkg = require ( ' ./package.json' )
2+ const pkg = require ( ` ./package.json` )
33
44module . exports = {
5+ pathPrefix : `react/docs/${ pkg . config . version_short } /` ,
56 siteMetadata : {
67 title : `CoreUI for React.js` ,
7- titleTemplate : ' %s · React UI Components · CoreUI ' ,
8+ titleTemplate : ` %s · React UI Components · CoreUI ` ,
89 description : `CoreUI for React.js is UI Component library written in TypeScript, and ready for your next React.js project.` ,
910 url : `https://coreui.io/react/docs/${ pkg . config . version_short } /` ,
10- image : '' , // Path to your image you placed in the 'static' folder
11- twitterUsername : '@coreui_io' ,
11+ siteUrl : `https://coreui.io/react/docs/${ pkg . config . version_short } /` ,
12+ image : `` , // Path to your image you placed in the `static` folder
13+ twitterUsername : `@coreui_io` ,
1214 } ,
1315 plugins : [
16+ {
17+ resolve : `gatsby-plugin-manifest` ,
18+ options : {
19+ icon : `${ __dirname } /src/docs/assets/images/brand/icon.png` ,
20+ name : `CoreUI for React.js` ,
21+ short_name : `CoreUI for React.js` ,
22+ start_url : `https://coreui.io/react/` ,
23+ background_color : `#fff` ,
24+ theme_color : `#321fdb` ,
25+ display : `standalone` ,
26+ } ,
27+ } ,
1428 {
1529 resolve : `gatsby-plugin-mdx` ,
1630 options : {
1731 defaultLayouts : {
18- docs : require . resolve ( ' ./src/docs/templates/Docs.tsx' ) ,
32+ docs : require . resolve ( ` ./src/docs/templates/Docs.tsx` ) ,
1933 } ,
2034 gatsbyRemarkPlugins : [
2135 {
22- resolve : require . resolve ( ' ./src/docs/plugins/gatsby-remark-embed-markdown' ) ,
36+ resolve : require . resolve ( ` ./src/docs/plugins/gatsby-remark-embed-markdown` ) ,
2337 options : {
2438 directory : `${ __dirname } /docs/${ pkg . config . version_short } /api/` ,
2539 } ,
@@ -39,11 +53,11 @@ module.exports = {
3953 resolve : `gatsby-source-filesystem` ,
4054 options : {
4155 name : `docs` ,
42- path : `${ __dirname } /docs/` ,
56+ path : `${ __dirname } /docs/${ pkg . config . version_short } / ` ,
4357 } ,
4458 } ,
45- ' gatsby-plugin-sass' ,
46- ' gatsby-plugin-typescript' ,
59+ ` gatsby-plugin-sass` ,
60+ ` gatsby-plugin-typescript` ,
4761 {
4862 resolve : `gatsby-plugin-sitemap` ,
4963 options : {
@@ -55,7 +69,7 @@ module.exports = {
5569 options : {
5670 // You can add multiple tracking ids and a pageview event will be fired for all of them.
5771 trackingIds : [
58- ' UA-118965717-1' , // Google Analytics / GA
72+ ` UA-118965717-1` , // Google Analytics / GA
5973 ] ,
6074 } ,
6175 } ,
0 commit comments