1+ /* eslint-disable @typescript-eslint/no-var-requires */
2+ const pkg = require ( './package.json' )
3+
14module . exports = {
25 siteMetadata : {
36 title : `CoreUI for React.js` ,
47 titleTemplate : '%s · React UI Components · CoreUI ' ,
58 description : `CoreUI for React.js is UI Component library written in TypeScript, and ready for your next React.js project.` ,
6- url : `https://coreui.io/react/docs/` ,
9+ url : `https://coreui.io/react/docs/${ pkg . config . version_short } / ` ,
710 image : '' , // Path to your image you placed in the 'static' folder
811 twitterUsername : '@coreui_io' ,
912 } ,
@@ -16,14 +19,18 @@ module.exports = {
1619 } ,
1720 gatsbyRemarkPlugins : [
1821 {
19- // resolve: `gatsby-remark-embed-markdown`,
2022 resolve : require . resolve ( './src/docs/plugins/gatsby-remark-embed-markdown' ) ,
2123 options : {
22- directory : `${ __dirname } /api/` ,
24+ directory : `${ __dirname } /docs/ ${ pkg . config . version_short } / api/` ,
2325 } ,
2426 } ,
2527 {
2628 resolve : `gatsby-remark-autolink-headers` ,
29+ options : {
30+ className : `anchor-link` ,
31+ icon : `<span>#</span>` ,
32+ isIconAfterHeader : true ,
33+ } ,
2734 } ,
2835 ] ,
2936 } ,
@@ -32,7 +39,7 @@ module.exports = {
3239 resolve : `gatsby-source-filesystem` ,
3340 options : {
3441 name : `docs` ,
35- path : `${ __dirname } /content/ docs/` ,
42+ path : `${ __dirname } /docs/` ,
3643 } ,
3744 } ,
3845 'gatsby-plugin-sass' ,
@@ -52,11 +59,5 @@ module.exports = {
5259 ] ,
5360 } ,
5461 } ,
55- // {
56- // resolve: `gatsby-transformer-remark`,
57- // options: {
58- // plugins: [`gatsby-remark-autolink-headers`],
59- // },
60- // },
6162 ] ,
6263}
0 commit comments