3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +00:00

Add name/description for TimeAndDate plugin for the docs

This commit is contained in:
Dragory 2020-09-15 02:13:46 +03:00
parent 01b17fa67e
commit 33d75af1fc
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -13,6 +13,7 @@ import { getMemberTz } from "./functions/getMemberTz";
import { getDateFormat } from "./functions/getDateFormat";
import { inMemberTz } from "./functions/inMemberTz";
import { ResetTimezoneCmd } from "./commands/ResetTimezoneCmd";
import { trimPluginDescription } from "../../utils";
const defaultOptions: PluginOptions<TimeAndDatePluginType> = {
config: {
@ -33,6 +34,13 @@ const defaultOptions: PluginOptions<TimeAndDatePluginType> = {
export const TimeAndDatePlugin = zeppelinPlugin<TimeAndDatePluginType>()("time_and_date", {
showInDocs: true,
info: {
prettyName: "Time and date",
description: trimPluginDescription(`
Allows controlling the displayed time/date formats and timezones
`),
},
configSchema: ConfigSchema,
defaultOptions,