Lei Nelissen
7e39c13836
chore: narrow down tstype
2023-07-15 15:38:21 +02:00
Lei Nelissen
85515bcf8d
chore: leave the newLine out of the jison spec
2023-07-15 15:28:48 +02:00
Lei Nelissen
eff9f7e5db
chore: re-generate config
2023-07-15 00:24:02 +02:00
Lei Nelissen
803cd826ed
chore: replace switch-case with map
2023-07-15 00:17:10 +02:00
Lei Nelissen
90c68f5069
chore: add tsType for weekday config
2023-07-15 00:17:09 +02:00
Lei Nelissen
103321bf72
chore: return after scanning weekday in jison
2023-07-15 00:17:09 +02:00
Lei Nelissen
d0afc3bffe
feat: validate individual values of weekdays
2023-07-14 14:13:18 +02:00
Lei Nelissen
11f2e31ff1
fix: also set weekday value to sunday in clear
2023-07-14 14:13:18 +02:00
Lei Nelissen
d9c15b1e7a
chore: move spec test to it.each
2023-07-14 14:13:18 +02:00
Lei Nelissen
4e8eeda30e
chore: also apply weekday to topXAxis
2023-07-14 14:13:18 +02:00
Lei Nelissen
ebf639377b
chore: generate typescript config type
2023-07-14 14:13:18 +02:00
Lei Nelissen
37adc23ae2
chore: also default to sundat in ganttDb
2023-07-14 14:13:18 +02:00
Lei Nelissen
5f7212c769
chore: move default value to config.schema.yaml
2023-07-14 14:13:18 +02:00
Lei Nelissen
cd92c46f31
chore: format example more correctly
2023-07-14 14:13:18 +02:00
Lei Nelissen
df10ab501a
chore: add tests for all days
2023-07-14 14:13:18 +02:00
Lei Nelissen
e360e90f88
chore: move documentation to source file
2023-07-14 14:13:18 +02:00
Lei Nelissen
03ce2810b5
feat: allow specifying on which weekday a tickInterval should start
2023-07-14 14:13:18 +02:00
Lei Nelissen
5631a218d1
fix: make gantt chart interval weeks start on monday instead of sunday
2023-07-14 14:13:18 +02:00
renovate[bot]
d46ef4cc91
chore(deps): update all patch dependencies
2023-07-11 17:19:31 +00:00
Nikolay Rozhkov
3664ff4463
Removed unused code in state diagrams
2023-07-11 18:12:27 +03:00
Ibrahim Wassouf
e127b146e9
Add more test cases
2023-07-08 17:46:28 -03:00
Ibrahim Wassouf
c59fee8de2
Split tests to have one parse statement in each test
2023-07-08 17:20:56 -03:00
Ibrahim Wassouf
00bb2a1f68
Revert back to single quotes for generic grammar
2023-07-08 14:45:06 -03:00
Ibrahim Wassouf
007724a7c7
Merge branch 'develop' into bug/4590_allow_notes_identical_to_keywords
2023-07-08 13:34:28 -04:00
Ibrahim Wassouf
f82407a2f0
Make unit test regex unit test more accurate
2023-07-08 14:33:57 -03:00
Ibrahim Wassouf
4bec3188de
Reformat code
2023-07-08 14:12:45 -03:00
Ibrahim Wassouf
fbb6eb849e
Give call higher precedence than STR
2023-07-08 14:07:46 -03:00
Ibrahim Wassouf
6a40f4b955
Decouple HREF token from STR and correct grammar
2023-07-08 13:34:51 -03:00
Ibrahim Wassouf
58b2b0993a
Give STR token higher precedence
2023-07-08 13:29:48 -03:00
Ibrahim Wassouf
d05d249080
Undo state changes
2023-07-08 13:28:45 -03:00
Ibrahim Wassouf
1e781c0c90
Refactor unit tests
2023-07-08 13:23:46 -03:00
Ibrahim Wassouf
23f27d151a
Remove redundancy in unit tests
2023-07-07 22:44:34 -03:00
Alois Klink
8167f8c1df
Revert "test(config): add temp test for defaultConfig"
...
This reverts commit 063cb124cd
.
This file was originally added to test whether the new implementation
of the default config in
`packages/mermaid/src/schemas/config.schema.yaml` matched the old
existing default config in `packages/mermaid/src/oldDefaultConfig.ts`,
and this test is no longer needed.
2023-07-07 02:05:43 +01:00
Alois Klink
2b53e02153
test: fix 'new default config' test
...
This test was accidentally removed by a bad merge commit, see
29291c89
(Merge branch 'develop' into pr/aloisklink/4112, 2023-07-06).
This test checks whether the default config defined in the
`config.schema.yaml` file matches the old default config defined in
`oldDefaultConfig.ts`.
Fixes: 29291c8901
2023-07-07 02:01:03 +01:00
Sidharth Vinod
bcffff3b7b
Terminate build in CI if download fails
2023-07-06 21:36:10 +05:30
Sidharth Vinod
d4281d365d
Add Yokozuna59 & nirname
2023-07-06 21:29:40 +05:30
Sidharth Vinod
48050333a0
Merge branch 'develop' into sidv/optimiseDocs
2023-07-06 15:57:01 +05:30
Sidharth Vinod
c17dc15c57
chore: Rename to teamMembers
2023-07-06 15:54:27 +05:30
Sidharth Vinod
2b5da79cdf
Merge pull request #4112 from aloisklink/add-jsonschema-schema-for-config
...
Use JSON Schema to define and document `MermaidConfig`
2023-07-06 10:03:55 +00:00
Sidharth Vinod
aaec16ed6c
chore: Remove lint warnings in example-diagram
2023-07-06 11:58:55 +05:30
Sidharth Vinod
d2e62022f1
Avoid downloading avtars everytime on docs:dev
2023-07-06 11:09:09 +05:30
Sidharth Vinod
29291c8901
Merge branch 'develop' into pr/aloisklink/4112
...
* develop:
test: test partial QuadrantChartConfig options
test: fix types in `config.spec.ts`
style: fix lint issues in src/config.spec.ts
test: rename src/config.spec.js to config.spec.ts
fix lint
update homepage community link
docs(flowchart): add documentation on multiple nodes style
Add docker-specific command, leave commonly used command intact
Support docs:dev in docker
Fix lint.
Update docs
add ChatGPT plugin blog post
Fix flowchart tooltip typing
2023-07-06 10:42:13 +05:30
Sidharth Vinod
1a4e5d9c5a
Merge pull request #4562 from lishid/patch-3
...
Fix flowchart tooltip typing bug
2023-07-06 04:19:08 +00:00
Sidharth Vinod
e80e281a66
Merge pull request #4600 from tomperr/docs/4558-multiple-vertices-with-style
...
docs(flowchart): add documentation on multiple nodes style
2023-07-06 04:10:43 +00:00
Nikolay Rozhkov
04597d29c0
Merge pull request #4599 from nirname/fix/support-docs-dev-in-docker
...
Support docs:dev in docker
2023-07-06 04:04:18 +00:00
Sidharth Vinod
43df84a4d5
Merge branch 'master' into develop
...
* master:
fix lint
update homepage community link
Update docs
add ChatGPT plugin blog post
2023-07-06 09:34:26 +05:30
Sidharth Vinod
a753b1f18b
Merge branch 'develop' into fix/support-docs-dev-in-docker
2023-07-06 09:29:51 +05:30
Alois Klink
c29088af01
build(docs): fix links to config.schema.json
...
Fix the link in some Mermaid Config markdown documentation,
which previously pointed to `src/schemas/config.schema.yaml`,
which went nowhere.
Now, these links point to:
- config.schema.json (i.e. the generated JSON file, not YAML)
- links are relative to the markdown documentation
We also needed to store the `schema.json` file in the Vitepress
`public/` folder, as Vitepress otherwise doesn't bundle `.json` files
properly, when running `vitepress build src/vitepress`.
2023-07-06 03:53:40 +01:00
Alois Klink
70a5a13273
docs: add link to mermaid config docs in sidebar
2023-07-06 03:53:40 +01:00
Alois Klink
063cb124cd
test(config): add temp test for defaultConfig
...
Adds a temporary test to ensure that the new defaultConfig,
generated by Vite automatically from the `MermaidConfig` JSON Schema,
has the same values as the old defaultConfig
(taken from
38013de711/packages/mermaid/src/defaultConfig.ts
)
The only minor difference seems to be that:
- `gitGraph` now has a default `useMaxWidth: false` option
(previously used to be `undefined`),
- `class` now has a `htmlLabels` value of `false` instead of `undefined`.
2023-07-06 03:53:40 +01:00