-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-node.js
29 lines (28 loc) · 923 Bytes
/
gatsby-node.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
// @ts-check
/**
* @param {{Joi: import("gatsby-plugin-utils").PluginOptionsSchemaJoi}} args
* @returns {import("gatsby-plugin-utils").ObjectSchema<any>}
*/
exports.pluginOptionsSchema = ({ Joi }) => {
return Joi.object({
codeBlockLang: Joi.string()
.default("plantuml")
.description("Name of the codeblock languange."),
imageType: Joi.string()
.default("svg")
.description("Type of PlantUML image returned from Web Server."),
server: Joi.string()
.default("https://www.plantuml.com/plantuml")
.description("PlantUML server to generate UML diagrams on-the-fly."),
title: Joi.string()
.default(null)
.description(
"Specifies the title property of the generated PlantUML image.",
),
alt: Joi.string()
.default("plantuml")
.description(
"Specifies the alt property of the generated PlantUML image.",
),
});
};