1
+ /* eslint-disable @typescript-eslint/no-var-requires */
2
+ const pkg = require ( './package.json' )
3
+
1
4
module . exports = {
2
5
siteMetadata : {
3
6
title : `CoreUI for React.js` ,
4
7
titleTemplate : '%s · React UI Components · CoreUI ' ,
5
8
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 } / ` ,
7
10
image : '' , // Path to your image you placed in the 'static' folder
8
11
twitterUsername : '@coreui_io' ,
9
12
} ,
@@ -16,14 +19,18 @@ module.exports = {
16
19
} ,
17
20
gatsbyRemarkPlugins : [
18
21
{
19
- // resolve: `gatsby-remark-embed-markdown`,
20
22
resolve : require . resolve ( './src/docs/plugins/gatsby-remark-embed-markdown' ) ,
21
23
options : {
22
- directory : `${ __dirname } /api/` ,
24
+ directory : `${ __dirname } /docs/ ${ pkg . config . version_short } / api/` ,
23
25
} ,
24
26
} ,
25
27
{
26
28
resolve : `gatsby-remark-autolink-headers` ,
29
+ options : {
30
+ className : `anchor-link` ,
31
+ icon : `<span>#</span>` ,
32
+ isIconAfterHeader : true ,
33
+ } ,
27
34
} ,
28
35
] ,
29
36
} ,
@@ -32,7 +39,7 @@ module.exports = {
32
39
resolve : `gatsby-source-filesystem` ,
33
40
options : {
34
41
name : `docs` ,
35
- path : `${ __dirname } /content/ docs/` ,
42
+ path : `${ __dirname } /docs/` ,
36
43
} ,
37
44
} ,
38
45
'gatsby-plugin-sass' ,
@@ -52,11 +59,5 @@ module.exports = {
52
59
] ,
53
60
} ,
54
61
} ,
55
- // {
56
- // resolve: `gatsby-transformer-remark`,
57
- // options: {
58
- // plugins: [`gatsby-remark-autolink-headers`],
59
- // },
60
- // },
61
62
] ,
62
63
}
0 commit comments