-
Notifications
You must be signed in to change notification settings - Fork 7
/
gatsby-config.js
143 lines (140 loc) · 3.57 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
const {defaultLocale} = require('./src/i18n');
const {readLatestVersion} = require('./src/jkube-utils');
const latestJKubeVersion = readLatestVersion();
const siteUrl = 'https://eclipse.dev/jkube';
const config = {
siteMetadata: {
title: 'Eclipse JKube',
author: 'Eclipse JKube Development Team',
siteUrl
},
pathPrefix: '/jkube',
plugins: [
'gatsby-plugin-sass',
'gatsby-plugin-sharp',
'gatsby-plugin-image',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'markdown-pages',
path: `${__dirname}/src/content`,
},
},
{
// For gatsby-transformer-asciidoc (get docs for latest published version)
resolve: 'gatsby-source-git',
options: {
name: 'jkube',
remote: 'https://github.com/eclipse-jkube/jkube.git',
branch: `v${latestJKubeVersion}`,
patterns: [
'kubernetes-maven-plugin/doc/**/index.adoc',
'gradle-plugin/doc/**/index.adoc'
]
}
},
{
// For jkube-quickstart-source (retrieve latest quickstarts)
resolve: 'gatsby-source-git',
options: {
name: 'jkube-master',
remote: 'https://github.com/eclipse-jkube/jkube.git',
branch: `master`,
patterns: [
'!*'
]
}
},
'jkube-quickstart-source',
{
resolve: 'gatsby-transformer-asciidoc',
options: {
safe: 'unsafe',
attributes: {
version: latestJKubeVersion
}
}
},
{
resolve: 'gatsby-transformer-asciidoc',
options: {
safe: 'unsafe',
attributes: {
plugin: 'kubernetes-maven-plugin',
version: latestJKubeVersion,
'goal-prefix': 'k8s'
}
}
},
{
resolve: 'gatsby-transformer-asciidoc',
options: {
safe: 'unsafe',
attributes: {
plugin: 'openshift-maven-plugin',
version: latestJKubeVersion,
'goal-prefix': 'oc'
}
}
},
{
resolve: 'gatsby-transformer-asciidoc',
options: {
safe: 'unsafe',
attributes: {
plugin: 'kubernetes-gradle-plugin',
version: latestJKubeVersion,
'task-prefix': 'k8s',
'cluster': 'Kubernetes',
'pluginExtension': 'kubernetes'
}
}
},
{
resolve: 'gatsby-transformer-asciidoc',
options: {
safe: 'unsafe',
attributes: {
plugin: 'openshift-gradle-plugin',
version: latestJKubeVersion,
'task-prefix': 'oc',
'cluster': 'OpenShift',
'pluginExtension': 'openshift'
}
}
},
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.md', '.mdx'],
gatsbyRemarkPlugins: [
'gatsby-remark-autolink-headers',
{
resolve: 'gatsby-remark-copy-linked-files',
options: {
// ignoreFileExtensions: [`png`, `jpg`, `jpeg`, `bmp`, `tiff`, `svg`],
ignoreFileExtensions: []
},
},
{
resolve: 'gatsby-plugin-i18n-l10n',
options: {
siteUrl, defaultLocale,
locales: [
{locale: 'en-US', prefix: 'en', slugs: {}, messages: {}},
{locale: 'es-ES', prefix: 'es', slugs: {}, messages: {}},
]
},
},
{
resolve: 'gatsby-remark-external-links',
options: {
target: '_blank',
},
}
],
}
},
]
};
module.exports = config;