chore: move default value to config.schema.yaml
This commit is contained in:
parent
cd92c46f31
commit
5f7212c769
|
@ -50,7 +50,6 @@ const config: Partial<MermaidConfig> = {
|
|||
...defaultConfigJson.gantt,
|
||||
tickInterval: undefined,
|
||||
useWidth: undefined, // can probably be removed since `configKeys` already includes this
|
||||
weekday: 'sunday', // the sane default is a monday, but it's set to sunday for legacy reasons
|
||||
},
|
||||
c4: {
|
||||
...defaultConfigJson.c4,
|
||||
|
|
|
@ -1455,6 +1455,7 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
|
|||
- axisFormat
|
||||
- useMaxWidth
|
||||
- topAxis
|
||||
- weekday
|
||||
properties:
|
||||
titleTopMargin:
|
||||
$ref: '#/$defs/GitGraphDiagramConfig/properties/titleTopMargin'
|
||||
|
@ -1544,6 +1545,20 @@ $defs: # JSON Schema definition (maybe we should move these to a seperate file)
|
|||
default: ''
|
||||
# Allow any string for typescript backwards compatibility (fix in Mermaid v10)
|
||||
tsType: 'string | "compact"'
|
||||
weekday:
|
||||
description: |
|
||||
On which day a week-based interval should start
|
||||
type: string
|
||||
enum:
|
||||
- monday
|
||||
- tuesday
|
||||
- wednesday
|
||||
- thursday
|
||||
- friday
|
||||
- saturday
|
||||
- sunday
|
||||
# the sane default is a monday, but it's set to sunday for legacy reasons
|
||||
default: sunday
|
||||
|
||||
SequenceDiagramConfig:
|
||||
title: Sequence Diagram Config
|
||||
|
|
Loading…
Reference in New Issue