Commit Graph

5331 Commits

Author SHA1 Message Date
Sidharth Vinod 7721ee0f28
Merge pull request #3404 from aloisklink/build/fix-yarn-prepare-script
build: run `build:prod` on `yarn prepare`
2022-09-04 12:55:22 +05:30
Alois Klink 106672bc75
refactor: remove `console.log` in c4Diagram.jison
These aren't caught by eslint, since they're in a .jison file.
2022-09-03 23:58:21 +01:00
Alois Klink cb4935258c
style: forbid using `console` in mermaid src code
Adds an eslint rule forbidding using `console` in the mermaid source
code. Instead, the `src/logger` should be used instead, so that
websites can disable logging.

This is allowed in the `cypress/` and `demos/` folder.

I've also removed the two instances on `console.log`/`console.error`
that currently exist in the mermaid source code.
2022-09-03 23:40:10 +01:00
Alois Klink 1d84cfe2e2
build: run `build:prod` on `yarn prepare`
Adds `yarn build:prod` to the `yarn prepare` script.

For most package managers (e.g. yarn v1 and NPM),
the `prepare` script is called automatically when installing
from a local location/git url. It's not called when installing
from NPM.

This is required because the source code doesn't contain
the `dist/mermaid.min.js` file, it has to be built first.

Fixes installing mermaid via `git`, e.g.:
`yarn add git+https://github.com/mermaid-js/mermaid.git`

Fixes: 1549eb20df
2022-09-03 23:01:53 +01:00
Daniel Bartholomae 27baa24c82
Build documentation 2022-09-03 22:54:43 +02:00
Daniel Bartholomae 1a6305c079
Add tests for other boundary properties 2022-09-03 20:38:10 +02:00
Daniel Bartholomae b86476331f
Add first test for Boundary 2022-09-03 20:38:10 +02:00
Daniel Bartholomae 092c15a37c
Test all different types of systems 2022-09-03 20:38:10 +02:00
Daniel Bartholomae 65c73f2eec
Introduce shape list in test 2022-09-03 20:38:09 +02:00
Daniel Bartholomae 2414435641
Add tests for C4 System 2022-09-03 20:38:09 +02:00
Daniel Bartholomae 2afcd54184
Make test grouping more explicit 2022-09-03 20:38:09 +02:00
Daniel Bartholomae 700e25382b
Copy tests from Person to PersonExt 2022-09-03 20:38:09 +02:00
Daniel Bartholomae db0d6075ca
Add test for link to Person_Ext 2022-09-03 20:38:09 +02:00
Daniel Bartholomae a196aeb29b
Add question on Person_Ext 2022-09-03 20:38:09 +02:00
Daniel Bartholomae 92f0c8f8b1
Add test for structure of Person_Ext 2022-09-03 20:38:09 +02:00
Daniel Bartholomae 3bc5cfa554
Add test for alias 2022-09-03 20:38:09 +02:00
Daniel Bartholomae 6f7ae17fc6
Add test for label 2022-09-03 20:38:09 +02:00
Daniel Bartholomae be5b8012bd
Add test for description 2022-09-03 20:38:09 +02:00
Daniel Bartholomae 90d472042b
Add test for $tags 2022-09-03 20:38:08 +02:00
Daniel Bartholomae 5378316cc3
Add test for $link 2022-09-03 20:38:08 +02:00
Daniel Bartholomae 8ee534f7fb
Add test for $sprite 2022-09-03 20:38:08 +02:00
Daniel Bartholomae aee1a87347
Move test for basic Person to separate file 2022-09-03 20:38:08 +02:00
Daniel Bartholomae e9fb2c8a54
Fix test and variable names that were copied from flowchart 2022-09-03 20:38:08 +02:00
Daniel Bartholomae b79eaae002
Fix typo 2022-09-03 20:36:14 +02:00
Daniel Bartholomae 3b571fc9b3
Fix typo in documentation 2022-09-03 20:33:50 +02:00
Sidharth Vinod e718c5bf6c
Fix doc 2022-09-03 15:00:12 +05:30
Sidharth Vinod 636017fdd7
Add files only when running from lint-staged 2022-09-03 15:00:02 +05:30
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