5317 Commits

Author SHA1 Message Date
Sidharth Vinod
85dc16df0a
Add files only when running from lint-staged 2022-09-03 14:51:28 +05:30
Sidharth Vinod
0caf372685
Fix configuration doc 2022-09-03 14:43:35 +05:30
Sidharth Vinod
5674f8e675
Prettier Pass 2022-09-03 13:41:25 +05:30
Sidharth Vinod
c49c15ab7c
Add dotfiles 2022-09-03 13:35:23 +05:30
Sidharth Vinod
b84511b314
Prettier 2022-09-03 13:31:13 +05:30
Sidharth Vinod
f6d69b33b3
Prettier 2022-09-03 13:30:16 +05:30
Sidharth Vinod
661f283dab
Strict prettierrc 2022-09-03 13:19:46 +05:30
Sidharth Vinod
787cf9395e
Prettier options 2022-09-03 13:15:55 +05:30
Sidharth Vinod
fe1be11c21
Fix lint staged 2022-09-03 13:13:23 +05:30
Sidharth Vinod
1f7d8c0f49
Fix lint staged 2022-09-03 13:11:19 +05:30
Sidharth Vinod
6167eda6b6
Prettier 2022-09-03 13:05:47 +05:30
Sidharth Vinod
ec7dd9ef01
Merge pull request #3399 from KarnerTh/feature/2859_add_tool_to_documentation
Added mermerd to integrations documentation
2022-09-03 12:36:30 +05:30
Sidharth Vinod
c702e12a42
Fix edit page url 2022-09-03 12:25:18 +05:30
Sidharth Vinod
42a2cabc7b
Remove "Edit this page" 2022-09-03 12:21:42 +05:30
Sidharth Vinod
0a3042322f
Fix Doc 2022-09-03 11:19:25 +05:30
Sidharth Vinod
bdeefb212e
Test 2022-09-03 11:14:54 +05:30
Sidharth Vinod
074f30ed1f
Fix double rendering in docsify 2022-09-03 11:14:13 +05:30
Sidharth Vinod
c2f72402f2
Test 2022-09-03 11:02:14 +05:30
Sidharth Vinod
13e7da10ca
Add doc verification to CI 2022-09-03 10:53:41 +05:30
Sidharth Vinod
4225f5e2f5
Turn off jsdoc warnings that were polluting logs 2022-09-03 10:53:25 +05:30
Sidharth Vinod
3833dcd0d8
Add verification for doc change 2022-09-03 10:06:21 +05:30
Sidharth Vinod
829e1c2390
Fix typo 2022-09-03 09:56:47 +05:30
Sidharth Vinod
c3da6c10fb
Add generated file to git 2022-09-03 09:55:52 +05:30
Sidharth Vinod
017fdfa552
Fail commit if docs changed 2022-09-03 09:53:46 +05:30
Sidharth Vinod
cc38667df3
Add generated file to git 2022-09-03 09:53:42 +05:30
Sidharth Vinod
b6d0d7fe15
Fail commit if docs changed 2022-09-03 09:52:29 +05:30
Sidharth Vinod
f45c0e3617
Fail commit if docs changed 2022-09-03 09:45:59 +05:30
Sidharth Vinod
0aabae40ad
Update doc test 2022-09-03 09:18:00 +05:30
Sidharth Vinod
9d5c50a36f
Update doc test 2022-09-03 09:16:54 +05:30
Sidharth Vinod
e34e208786
Add auto generated docs 2022-09-03 09:13:37 +05:30
Sidharth Vinod
d01de850eb
Update doc test 2022-09-03 09:11:46 +05:30
Sidharth Vinod
bd14dc508f
Build docs in lintstaged 2022-09-03 09:09:41 +05:30
Sidharth Vinod
3b88150e11
Move docs to src 2022-09-03 09:06:42 +05:30
Thomas Karner
87f6d34b4f added mermerd to integrations documentation 2022-09-02 23:09:19 +02:00
Sidharth Vinod
cfae2b6a40
Doc transformer 2022-09-03 02:13:21 +05:30
Knut Sveidqvist
ccb16e5f5a Adding cloud and bang shapes 2022-09-02 11:08:26 +02:00
Sidharth Vinod
d73cafa7c8
Merge pull request #3396 from aloisklink/fix/fix-passing-single-node-to-mermaid.init
fix: fix passing a single Node to mermaid.init()
2022-09-02 14:28:43 +05:30
Sidharth Vinod
99923fcd0f
Test - esbuild 2022-09-02 11:08:14 +05:30
Alois Klink
b3c0c57c6d
fix: fix passing a single Node to mermaid.init()
Passing a single Node to mermaid.init() results in an error, as it
calls `new NodeList()`, which causes `TypeError: Illegal constructor`.

See 5597cf45bf/src/mermaid.ts (L73)

If we instead use the `ArrayLike` interface, we can just use a simple
array, instead of a NodeList.

I've also added a basic test case, by mocking the `mermaidAPI.render()`
function so it isn't called, as the d3 functions don't work in Node.JS.
The mocks are a bit messy, since
 a) Jest doesn't fully support ESM yet, and
 b) mermaidAPI is frozen with `Object.freeze()`,
but the mermaidAPI mocks work as long as we keep them simple.

Fixes: c68ec54fdd980a6b4d1c1b58aec991badba16676
2022-09-02 04:39:58 +01:00
Sidharth Vinod
04f18630f3
use same esbuild in webpack 2022-09-02 00:48:34 +05:30
Sidharth Vinod
f1fa91a51c
fix flowchart jison 2022-09-02 00:46:02 +05:30
Sidharth Vinod
53fe35e37e
Add webpack build 2022-09-02 00:36:01 +05:30
Sidharth Vinod
6be05e9948
Esbuild with types 2022-09-02 00:34:03 +05:30
Sidharth Vinod
84bf79f72b
Fix export 2022-09-01 23:39:30 +05:30
Sidharth Vinod
01562528b7
Typescript 2022-09-01 22:45:10 +05:30
Alois Klink
0dca4d3393
fix(git): support numeric branch names
gitGraph does not support branch names that start with a number,
because the gitGraph.jison file parses these as NUM (number) instead.

To fix this, I've changed the NUM parser to only accept strings that
end with whitespace (e.g 1234 is a NUM, but 1234abc is not a NUM).
To do this, I had to move the "skip all whitespace" step to the
end of the parser, but this doesn't seem to have caused any issues,
so it's probably fine.
2022-09-01 17:24:00 +01:00
Sidharth Vinod
fe3bb0b6c0
Typescript 2022-09-01 20:41:31 +05:30
Sidharth Vinod
7aeb60f42a
Merge branch 'develop' into sidv/esbuild
* develop: (50 commits)
  Typo fix
  Fix repo URL
  Revert flowchart change
  Revert flowchart change
  Fix TODO Qs
  chore(deps-dev): bump @commitlint/cli from 17.1.1 to 17.1.2
  chore(deps-dev): bump terser-webpack-plugin from 5.3.5 to 5.3.6
  chore(deps-dev): bump webpack-dev-server from 4.10.0 to 4.10.1
  Fix gitGraph findLane function error
  Update dependabot.yml
  Replacing replaceAll with replace
  Rework 'parseDuration' as a pure duration parsing
  Supports duration in decimal
  Create a more consistent 'parseDuration'
  Remove `@ts-ignore`s.
  Fix svgDraw return types
  ...
2022-09-01 20:38:21 +05:30
Knut Sveidqvist
5597cf45bf
Merge pull request #3336 from mermaid-js/sidv/typescript
Introducing TypeScript
2022-09-01 16:59:51 +02:00
Sidharth Vinod
1ced01c7f6
Typo fix 2022-09-01 20:21:13 +05:30