-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GHA that will check links + Fix broken links #3765
Add GHA that will check links + Fix broken links #3765
Conversation
@aloisklink I created this based on our conversation as a Draft PR, so that we can work out how to best get this ready for merging. I will leave some more comments inline to explain why i did what. I already fixed various links, so the new link checker only reports a few broken links now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far, progress looks good. Great work!
From a quick look, it seems like lychee has already caught quite a few broken links :)
I am suggesting to run this link check once per week only, rather than for every PR. The link check can be a bit brittle, so running them for each PR can create too many false positives (I made this experience on another project).
My gut feeling is to leave it running on each push/PR, and if does start causing false positives, we could then disable it and just keep it running on a schedule.
But let's see what other reviewers say once this is ready to review.
Various documentation files link to /packages/mermaid/src/docs/config/setup/README, which does not exist any more. Where was that content moved?
https://github.com/mermaid-js/mermaid/blob/develop/packages/mermaid/src/docs/intro/index.md
is probably the new closest thing to it.
(a processed version appears in https://github.com/mermaid-js/mermaid/blob/develop/docs/intro/index.md)
The file https://github.com/mermaid-js/mermaid/edit/develop/src/docs/_sidebar.md does not exist any more. Should we link to packages/mermaid/src/docs/.vitepress/config.ts instead?
Sounds good!
The section about "Contributing to Documentation" has various issues, as it is still pointing to the wrong docs folder. As that is unrelated to checking broken links, I have mostly ignored these for now.
Before we merge this, it's important that the CI passes (otherwise the link checking CI failing might hide other more important issues). It should be fine if you don't have time to update the "Contributing to Documentation" section, but in that case, we may want to either:
a) ignore that file in CI
b) leave this PR open until a maintainer has time to fix that bit
…'docs:dev' is defined in packages/mermaid/package.json
Figured out why the link checker could not find
When running that it outputs:
The folder That means that the link checker cannot check these links locally, as they don't exist as static files in the file system but rather are generated during the build. So an interim solution for the link checker would be to ignore links below However there is still another mystery: Even after generating these extra documentation files using |
…eviously failing 'lint' GHA
…y the previously failing 'lint' GHA" This reverts commit 66c543c.
Hi @aloisklink, I cannot figure this out, so maybe you can help me: I understood that I am not supposed to change files in the
I tried that command but it didn't resolve the issue. I went back and forth and tried various thinks but now I am officially out of ideas :) |
Sounds good! We could also do a
The old content was auto-generated from code comments by The new auto-generation code should be better in the long-term, since it supports TypeScript types, but unfortunately, a bunch of the old comments aren't compatible with the new generator, so those docs are currently pretty empty until we update those comments.
I just pulled down your branch and ran Maybe the As a temporary measure, you could try manually replacing all the |
@aloisklink thanks for the quick response. I think I took this as fast as I could, as some of the remaining internals of how this all works are still unclear to me.
Yes, it would be great if you could do that. Thank you! I have marked this PR as "ready for review" 🥳 |
Sync generated markdown docs by running `pnpm --filter mermaid run docs:build`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this PR! Lots of broken links have been fixed, so you've done a great job, and it definitely feels like Lychee is a valuable addition!
I think I took this as fast as I could, as some of the remaining internals of how this all works are still unclear to me.
e.g. I don't understand how the full documentation gets published to https://mermaid-js.github.io/mermaid as it looks different from the documentation that I can generate for the project locally.
I believe that only the docs on the master
branch are pushed to https://mermaid-js.github.io/mermaid
The docs were recently reworked in #3678, so I'm guessing they'll only be published with Mermaid v9.3.0
I'd be happy to just manually push to your branch once you think the PR is ready to go.
Yes, it would be great if you could do that. Thank you!
I have marked this PR as "ready for review" 🥳
Done! I think the Mermaid team may need to investigate whether we can make pnpm run docs:verify
point links to mermaid-js/mermaid
even from a GitHub fork.
Lock down the GITHUB_TOKEN permissions. lychee only needs `GITHUB_TOKEN` to read public data without hitting rate-limits, so having read-only access to contents should be fine.
It should work now. I've fixed the typedoc config. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you @spier :)
Just a small query.
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [mermaid](https://togithub.com/mermaid-js/mermaid) | [`9.2.2` -> `9.3.0`](https://renovatebot.com/diffs/npm/mermaid/9.2.2/9.3.0) | [![age](https://badges.renovateapi.com/packages/npm/mermaid/9.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/mermaid/9.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/mermaid/9.3.0/compatibility-slim/9.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/mermaid/9.3.0/confidence-slim/9.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>mermaid-js/mermaid</summary> ### [`v9.3.0`](https://togithub.com/mermaid-js/mermaid/releases/tag/v9.3.0) [Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v9.2.2...v9.3.0) ### Significant Changes - 25% Smaller - New docs - Replaces the deprecated and vulnerable `dagre-d3` with `dagre-es` ### Release Notes - [#​3778](https://togithub.com/mermaid-js/mermaid/issues/3778) Adding a hexgon shape ([#​3834](https://togithub.com/mermaid-js/mermaid/issues/3834)) [@​knsv](https://togithub.com/knsv) - [#​3831](https://togithub.com/mermaid-js/mermaid/issues/3831) Re-enabling themes for er diagrams ([#​3837](https://togithub.com/mermaid-js/mermaid/issues/3837)) [@​knsv](https://togithub.com/knsv) - [#​3882](https://togithub.com/mermaid-js/mermaid/issues/3882) fix for issues with mindmaps with only a single node ([#​3833](https://togithub.com/mermaid-js/mermaid/issues/3833)) [@​knsv](https://togithub.com/knsv) - (chore) remove console stmt in pieDetector ([#​3840](https://togithub.com/mermaid-js/mermaid/issues/3840)) [@​weedySeaDragon](https://togithub.com/weedySeaDragon) - (feat) state classDef documentation ([#​3841](https://togithub.com/mermaid-js/mermaid/issues/3841)) [@​weedySeaDragon](https://togithub.com/weedySeaDragon) - 3882 edge labels ([#​3883](https://togithub.com/mermaid-js/mermaid/issues/3883)) [@​knsv](https://togithub.com/knsv) - Add GHA that will check links + Fix broken links ([#​3765](https://togithub.com/mermaid-js/mermaid/issues/3765)) [@​spier](https://togithub.com/spier) - Add official vim plugin to list in integrations ([#​3847](https://togithub.com/mermaid-js/mermaid/issues/3847)) [@​craigmac](https://togithub.com/craigmac) - Add package visualizations ([#​3823](https://togithub.com/mermaid-js/mermaid/issues/3823)) [@​sidharthv96](https://togithub.com/sidharthv96) - Add support for [@​include](https://togithub.com/include) in docs ([#​3863](https://togithub.com/mermaid-js/mermaid/issues/3863)) [@​sidharthv96](https://togithub.com/sidharthv96) - CI: disable pinning dependencies ([#​3735](https://togithub.com/mermaid-js/mermaid/issues/3735)) [@​aloisklink](https://togithub.com/aloisklink) - Defects/issue 3878 ([#​3880](https://togithub.com/mermaid-js/mermaid/issues/3880)) [@​MrCoder](https://togithub.com/MrCoder) - Feat: Add aria-describedby, aria-roledescription ([#​3808](https://togithub.com/mermaid-js/mermaid/issues/3808)) [@​weedySeaDragon](https://togithub.com/weedySeaDragon) - Fix [#​3799](https://togithub.com/mermaid-js/mermaid/issues/3799): Remove `type` from package.json ([#​3802](https://togithub.com/mermaid-js/mermaid/issues/3802)) [@​sidharthv96](https://togithub.com/sidharthv96) - Fix for [#​3835](https://togithub.com/mermaid-js/mermaid/issues/3835), makes it possible to style path elements ([#​3836](https://togithub.com/mermaid-js/mermaid/issues/3836)) [@​knsv](https://togithub.com/knsv) - Fix typos ([#​3820](https://togithub.com/mermaid-js/mermaid/issues/3820)) [@​endolith](https://togithub.com/endolith) - Housekeeping with eslint-unicorn ([#​3845](https://togithub.com/mermaid-js/mermaid/issues/3845)) [@​sidharthv96](https://togithub.com/sidharthv96) - Integrations added - Visual Studio Code \[Polyglot Interactive Notebooks] ([#​3821](https://togithub.com/mermaid-js/mermaid/issues/3821)) [@​dfinke](https://togithub.com/dfinke) - Mindmap integration docs ([#​3810](https://togithub.com/mermaid-js/mermaid/issues/3810)) [@​sidharthv96](https://togithub.com/sidharthv96) - Reduce mermaid size by 31% ([#​3825](https://togithub.com/mermaid-js/mermaid/issues/3825)) [@​sidharthv96](https://togithub.com/sidharthv96) - Remove extra arrow and adjust cross position ([#​3641](https://togithub.com/mermaid-js/mermaid/issues/3641)) [@​ishuen](https://togithub.com/ishuen) - Replace `dagre`/`dagre-d3` with `dagre-d3-es` ([#​3809](https://togithub.com/mermaid-js/mermaid/issues/3809)) [@​aloisklink](https://togithub.com/aloisklink) - Revert "Added pie" ([#​3842](https://togithub.com/mermaid-js/mermaid/issues/3842)) [@​pbrolin47](https://togithub.com/pbrolin47) - Switch CDN to unpkg.com ([#​3777](https://togithub.com/mermaid-js/mermaid/issues/3777)) [@​sidharthv96](https://togithub.com/sidharthv96) - Switch back to jsdelivr ([#​3873](https://togithub.com/mermaid-js/mermaid/issues/3873)) [@​sidharthv96](https://togithub.com/sidharthv96) - Use `github-dark` to highlight fence blocks in vitepress docs ([#​3807](https://togithub.com/mermaid-js/mermaid/issues/3807)) [@​aloisklink](https://togithub.com/aloisklink) - Use current mermaid version in docs. ([#​3846](https://togithub.com/mermaid-js/mermaid/issues/3846)) [@​sidharthv96](https://togithub.com/sidharthv96) - Use stylis to prepend idSelector ([#​3829](https://togithub.com/mermaid-js/mermaid/issues/3829)) [@​DanInProgress](https://togithub.com/DanInProgress) - bug: State diagram fix classes type ([#​3798](https://togithub.com/mermaid-js/mermaid/issues/3798)) [@​weedySeaDragon](https://togithub.com/weedySeaDragon) - bug: change shiki getHighlighter import ([#​3804](https://togithub.com/mermaid-js/mermaid/issues/3804)) [@​weedySeaDragon](https://togithub.com/weedySeaDragon) - chore(deps): remove dependency on `graphlib` ([#​3861](https://togithub.com/mermaid-js/mermaid/issues/3861)) [@​aloisklink](https://togithub.com/aloisklink) - chore(deps): update all non-major dependencies (minor) ([#​3905](https://togithub.com/mermaid-js/mermaid/issues/3905)) [@​renovate](https://togithub.com/renovate) - chore(deps): update all non-major dependencies (minor) ([#​3791](https://togithub.com/mermaid-js/mermaid/issues/3791)) [@​renovate](https://togithub.com/renovate) - chore(deps): update lycheeverse/lychee-action action to v1.5.4 ([#​3827](https://togithub.com/mermaid-js/mermaid/issues/3827)) [@​renovate](https://togithub.com/renovate) - chore(deps): update pnpm to v7.17.0 ([#​3828](https://togithub.com/mermaid-js/mermaid/issues/3828)) [@​renovate](https://togithub.com/renovate) - chore(deps): update pnpm to v7.17.1 ([#​3862](https://togithub.com/mermaid-js/mermaid/issues/3862)) [@​renovate](https://togithub.com/renovate) - chore(docs): Auto build docs ([#​3547](https://togithub.com/mermaid-js/mermaid/issues/3547)) [@​sidharthv96](https://togithub.com/sidharthv96) - chore: Housekeeping ([#​3783](https://togithub.com/mermaid-js/mermaid/issues/3783)) [@​sidharthv96](https://togithub.com/sidharthv96) - chore: Merge master to develop ([#​3780](https://togithub.com/mermaid-js/mermaid/issues/3780)) [@​sidharthv96](https://togithub.com/sidharthv96) - chore: clean up code in mermaidAPI render() and write specs/tests ([#​3684](https://togithub.com/mermaid-js/mermaid/issues/3684)) [@​weedySeaDragon](https://togithub.com/weedySeaDragon) - chore: delete functions not used in diagrams/c4 code (dead code) ([#​3871](https://togithub.com/mermaid-js/mermaid/issues/3871)) [@​weedySeaDragon](https://togithub.com/weedySeaDragon) - comments in states are skipped now ([#​3762](https://togithub.com/mermaid-js/mermaid/issues/3762)) [@​avijit1258](https://togithub.com/avijit1258) - doc: remove links from atom.io; add note Atom has been archived ([#​3899](https://togithub.com/mermaid-js/mermaid/issues/3899)) [@​weedySeaDragon](https://togithub.com/weedySeaDragon) - docs: refactor Theming doc ([#​3889](https://togithub.com/mermaid-js/mermaid/issues/3889)) [@​huynhicode](https://togithub.com/huynhicode) - feat: Redirect old documentation links. ([#​3797](https://togithub.com/mermaid-js/mermaid/issues/3797)) [@​sidharthv96](https://togithub.com/sidharthv96) - feat: Title support via front matter for ER, state, class, git, and graph diagrams ([#​3706](https://togithub.com/mermaid-js/mermaid/issues/3706)) [@​MasonM](https://togithub.com/MasonM) - fix(deps): update all non-major dependencies (patch) ([#​3790](https://togithub.com/mermaid-js/mermaid/issues/3790)) [@​renovate](https://togithub.com/renovate) - fix(deps): update dependency rollup to v3 ([#​3674](https://togithub.com/mermaid-js/mermaid/issues/3674)) [@​renovate](https://togithub.com/renovate) - fix: LintStaged ([#​3844](https://togithub.com/mermaid-js/mermaid/issues/3844)) [@​sidharthv96](https://togithub.com/sidharthv96) 🎉 **Thanks to all contributors helping with this release!** 🎉 #### What's Changed - chore(deps): update actions/checkout action to v3 by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3645](https://togithub.com/mermaid-js/mermaid/pull/3645) - chore(deps): update actions/setup-node action to v3 by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3646](https://togithub.com/mermaid-js/mermaid/pull/3646) - Remove inconsistent and deprecated semicolons by [@​revolter](https://togithub.com/revolter) in [https://github.com/mermaid-js/mermaid/pull/3657](https://togithub.com/mermaid-js/mermaid/pull/3657) - Fix windows paths for `docs:build` by [@​arpansaha13](https://togithub.com/arpansaha13) in [https://github.com/mermaid-js/mermaid/pull/3605](https://togithub.com/mermaid-js/mermaid/pull/3605) - feat: make `parseError` function more type-safe by [@​Some-Dood](https://togithub.com/Some-Dood) in [https://github.com/mermaid-js/mermaid/pull/3643](https://togithub.com/mermaid-js/mermaid/pull/3643) - chore(deps): update all non-major dependencies (minor) by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3632](https://togithub.com/mermaid-js/mermaid/pull/3632) - chore(deps): update all non-major dependencies (patch) by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3671](https://togithub.com/mermaid-js/mermaid/pull/3671) - chore(deps): pin dependencies by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3685](https://togithub.com/mermaid-js/mermaid/pull/3685) - Added Open Graph meta tags by [@​danangtomo](https://togithub.com/danangtomo) in [https://github.com/mermaid-js/mermaid/pull/3679](https://togithub.com/mermaid-js/mermaid/pull/3679) - add eslint-plugin-no-only-tests plugin by [@​DKurilo](https://togithub.com/DKurilo) in [https://github.com/mermaid-js/mermaid/pull/3690](https://togithub.com/mermaid-js/mermaid/pull/3690) - Added and configured cspell plugin to eslint by [@​devcer](https://togithub.com/devcer) in [https://github.com/mermaid-js/mermaid/pull/3604](https://togithub.com/mermaid-js/mermaid/pull/3604) - fix: gantt demo diagrams ([#​3655](https://togithub.com/mermaid-js/mermaid/issues/3655)) by [@​isinek](https://togithub.com/isinek) in [https://github.com/mermaid-js/mermaid/pull/3688](https://togithub.com/mermaid-js/mermaid/pull/3688) - Chore/3697 eslint curly by [@​jeroenekkelkamp](https://togithub.com/jeroenekkelkamp) in [https://github.com/mermaid-js/mermaid/pull/3698](https://togithub.com/mermaid-js/mermaid/pull/3698) - Update sequenceDiagram.md by [@​imgss](https://togithub.com/imgss) in [https://github.com/mermaid-js/mermaid/pull/3707](https://togithub.com/mermaid-js/mermaid/pull/3707) - Use `eslint-plugin-tsdoc` for TypeScript files instead of `eslint-plugin-jsdoc` by [@​aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3708](https://togithub.com/mermaid-js/mermaid/pull/3708) - chore(deps): pin dependencies by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3713](https://togithub.com/mermaid-js/mermaid/pull/3713) - chore(deps): update all non-major dependencies (patch) by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3714](https://togithub.com/mermaid-js/mermaid/pull/3714) - Order pie chart slices clockwise by order of entries by [@​jasmaa](https://togithub.com/jasmaa) in [https://github.com/mermaid-js/mermaid/pull/3609](https://togithub.com/mermaid-js/mermaid/pull/3609) - fix: border attribute does not work in a certain writing style by [@​maiermic](https://togithub.com/maiermic) in [https://github.com/mermaid-js/mermaid/pull/3636](https://togithub.com/mermaid-js/mermaid/pull/3636) - add the way to add notes to class diagram by [@​DKurilo](https://togithub.com/DKurilo) in [https://github.com/mermaid-js/mermaid/pull/3647](https://togithub.com/mermaid-js/mermaid/pull/3647) - add statement aliases for ER diagram by [@​DKurilo](https://togithub.com/DKurilo) in [https://github.com/mermaid-js/mermaid/pull/3649](https://togithub.com/mermaid-js/mermaid/pull/3649) - fix: Fix useMaxWidth option for git graph by [@​uttk](https://togithub.com/uttk) in [https://github.com/mermaid-js/mermaid/pull/3652](https://togithub.com/mermaid-js/mermaid/pull/3652) - [#​3659](https://togithub.com/mermaid-js/mermaid/issues/3659) Adding height when not using maxWidth by [@​knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3668](https://togithub.com/mermaid-js/mermaid/pull/3668) - Change fill attribute to style by [@​CalebUsadi](https://togithub.com/CalebUsadi) in [https://github.com/mermaid-js/mermaid/pull/3719](https://togithub.com/mermaid-js/mermaid/pull/3719) - feat: \[State diagram] Add classDefs and classes to states by [@​weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3644](https://togithub.com/mermaid-js/mermaid/pull/3644) - Fill inheritance arrow with background color by [@​vallsv](https://togithub.com/vallsv) in [https://github.com/mermaid-js/mermaid/pull/3543](https://togithub.com/mermaid-js/mermaid/pull/3543) - Ensure example code and rendered output are synced by [@​marcjansen](https://togithub.com/marcjansen) in [https://github.com/mermaid-js/mermaid/pull/3721](https://togithub.com/mermaid-js/mermaid/pull/3721) - fix(git): Support quoted branch names by [@​gibson042](https://togithub.com/gibson042) in [https://github.com/mermaid-js/mermaid/pull/3726](https://togithub.com/mermaid-js/mermaid/pull/3726) - docs: Add link to docs source by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3612](https://togithub.com/mermaid-js/mermaid/pull/3612) - chore(deps): update all non-major dependencies (patch) by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3736](https://togithub.com/mermaid-js/mermaid/pull/3736) - chore(deps): update all non-major dependencies (minor) by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3737](https://togithub.com/mermaid-js/mermaid/pull/3737) - feat(gantt): Add option 'tickInterval' for custom tick interval by [@​DarkNami](https://togithub.com/DarkNami) in [https://github.com/mermaid-js/mermaid/pull/3729](https://togithub.com/mermaid-js/mermaid/pull/3729) - Fix/convert attr to style in er graph by [@​CalebUsadi](https://togithub.com/CalebUsadi) in [https://github.com/mermaid-js/mermaid/pull/3722](https://togithub.com/mermaid-js/mermaid/pull/3722) - update user story link for [#​3740](https://togithub.com/mermaid-js/mermaid/issues/3740) by [@​6footGeek](https://togithub.com/6footGeek) in [https://github.com/mermaid-js/mermaid/pull/3741](https://togithub.com/mermaid-js/mermaid/pull/3741) - Improved New Documentation by [@​emersonbottero](https://togithub.com/emersonbottero) in [https://github.com/mermaid-js/mermaid/pull/3678](https://togithub.com/mermaid-js/mermaid/pull/3678) - chore: fix cSpell word entry misspelling "mermiad" -> "mermaid" by [@​weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3751](https://togithub.com/mermaid-js/mermaid/pull/3751) - Fix link to CSS classes by [@​hugovk](https://togithub.com/hugovk) in [https://github.com/mermaid-js/mermaid/pull/3752](https://togithub.com/mermaid-js/mermaid/pull/3752) - docs: Update references to default config in directives page by [@​raptor0929](https://togithub.com/raptor0929) in [https://github.com/mermaid-js/mermaid/pull/3738](https://togithub.com/mermaid-js/mermaid/pull/3738) - Fix link relative links to documentation files by [@​spier](https://togithub.com/spier) in [https://github.com/mermaid-js/mermaid/pull/3760](https://togithub.com/mermaid-js/mermaid/pull/3760) - chore(deps): update all non-major dependencies (patch) by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3769](https://togithub.com/mermaid-js/mermaid/pull/3769) - chore(deps): update all non-major dependencies (minor) by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3770](https://togithub.com/mermaid-js/mermaid/pull/3770) - Fix CSpell by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3753](https://togithub.com/mermaid-js/mermaid/pull/3753) - Live edits for Docs by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3755](https://togithub.com/mermaid-js/mermaid/pull/3755) - Switch CDN to unpkg.com by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3777](https://togithub.com/mermaid-js/mermaid/pull/3777) - chore: Housekeeping by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3783](https://togithub.com/mermaid-js/mermaid/pull/3783) - Pnpm issue reproduction by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3784](https://togithub.com/mermaid-js/mermaid/pull/3784) - fix(deps): update all non-major dependencies (patch) by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3790](https://togithub.com/mermaid-js/mermaid/pull/3790) - chore: clean up code in mermaidAPI render() and write specs/tests by [@​weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3684](https://togithub.com/mermaid-js/mermaid/pull/3684) - chore(deps): update all non-major dependencies (minor) by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3791](https://togithub.com/mermaid-js/mermaid/pull/3791) - fix(deps): update dependency rollup to v3 by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3674](https://togithub.com/mermaid-js/mermaid/pull/3674) - Add GHA that will check links + Fix broken links by [@​spier](https://togithub.com/spier) in [https://github.com/mermaid-js/mermaid/pull/3765](https://togithub.com/mermaid-js/mermaid/pull/3765) - chore: Merge master to develop by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3780](https://togithub.com/mermaid-js/mermaid/pull/3780) - bug: change shiki getHighlighter import by [@​weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3804](https://togithub.com/mermaid-js/mermaid/pull/3804) - Fix [#​3799](https://togithub.com/mermaid-js/mermaid/issues/3799): Remove `type` from package.json by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3802](https://togithub.com/mermaid-js/mermaid/pull/3802) - CI: disable pinning dependencies by [@​aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3735](https://togithub.com/mermaid-js/mermaid/pull/3735) - bug: State diagram fix classes type by [@​weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3798](https://togithub.com/mermaid-js/mermaid/pull/3798) - Remove extra arrow and adjust cross position by [@​ishuen](https://togithub.com/ishuen) in [https://github.com/mermaid-js/mermaid/pull/3641](https://togithub.com/mermaid-js/mermaid/pull/3641) - comments in states are skipped now by [@​avijit1258](https://togithub.com/avijit1258) in [https://github.com/mermaid-js/mermaid/pull/3762](https://togithub.com/mermaid-js/mermaid/pull/3762) - feat: Redirect old documentation links. by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3797](https://togithub.com/mermaid-js/mermaid/pull/3797) - Mindmap integration docs by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3810](https://togithub.com/mermaid-js/mermaid/pull/3810) - Use `github-dark` to highlight fence blocks in vitepress docs by [@​aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3807](https://togithub.com/mermaid-js/mermaid/pull/3807) - chore(deps): update lycheeverse/lychee-action action to v1.5.4 by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3827](https://togithub.com/mermaid-js/mermaid/pull/3827) - chore(deps): update pnpm to v7.17.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3828](https://togithub.com/mermaid-js/mermaid/pull/3828) - feat: Title support via front matter for ER, state, class, git, and graph diagrams by [@​MasonM](https://togithub.com/MasonM) in [https://github.com/mermaid-js/mermaid/pull/3706](https://togithub.com/mermaid-js/mermaid/pull/3706) - Replace `dagre`/`dagre-d3` with `dagre-d3-es` by [@​aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3809](https://togithub.com/mermaid-js/mermaid/pull/3809) - Add package visualizations by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3823](https://togithub.com/mermaid-js/mermaid/pull/3823) - [#​3882](https://togithub.com/mermaid-js/mermaid/issues/3882) fix for issues with mindmaps with only a single node by [@​knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3833](https://togithub.com/mermaid-js/mermaid/pull/3833) - [#​3778](https://togithub.com/mermaid-js/mermaid/issues/3778) Adding a hexgon shape by [@​knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3834](https://togithub.com/mermaid-js/mermaid/pull/3834) - Fix for [#​3835](https://togithub.com/mermaid-js/mermaid/issues/3835), makes it possible to style path elements by [@​knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3836](https://togithub.com/mermaid-js/mermaid/pull/3836) - [#​3831](https://togithub.com/mermaid-js/mermaid/issues/3831) Re-enabling themes for er diagrams by [@​knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3837](https://togithub.com/mermaid-js/mermaid/pull/3837) - (chore) remove console stmt in pieDetector by [@​weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3840](https://togithub.com/mermaid-js/mermaid/pull/3840) - Revert "Added pie" by [@​pbrolin47](https://togithub.com/pbrolin47) in [https://github.com/mermaid-js/mermaid/pull/3842](https://togithub.com/mermaid-js/mermaid/pull/3842) - Fix typos by [@​endolith](https://togithub.com/endolith) in [https://github.com/mermaid-js/mermaid/pull/3820](https://togithub.com/mermaid-js/mermaid/pull/3820) - (feat) state classDef documentation by [@​weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3841](https://togithub.com/mermaid-js/mermaid/pull/3841) - Integrations added - Visual Studio Code \[Polyglot Interactive Notebooks] by [@​dfinke](https://togithub.com/dfinke) in [https://github.com/mermaid-js/mermaid/pull/3821](https://togithub.com/mermaid-js/mermaid/pull/3821) - Reduce mermaid size by 31% by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3825](https://togithub.com/mermaid-js/mermaid/pull/3825) - fix: LintStaged by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3844](https://togithub.com/mermaid-js/mermaid/pull/3844) - Add official vim plugin to list in integrations by [@​craigmac](https://togithub.com/craigmac) in [https://github.com/mermaid-js/mermaid/pull/3847](https://togithub.com/mermaid-js/mermaid/pull/3847) - chore(deps): remove dependency on `graphlib` by [@​aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3861](https://togithub.com/mermaid-js/mermaid/pull/3861) - chore(deps): update pnpm to v7.17.1 by [@​renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/3862](https://togithub.com/mermaid-js/mermaid/pull/3862) - Make gitgraph snapshots consistent in E2E tests by [@​aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/3860](https://togithub.com/mermaid-js/mermaid/pull/3860) - Use stylis to prepend idSelector by [@​DanInProgress](https://togithub.com/DanInProgress) in [https://github.com/mermaid-js/mermaid/pull/3829](https://togithub.com/mermaid-js/mermaid/pull/3829) - Use current mermaid version in docs. by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3846](https://togithub.com/mermaid-js/mermaid/pull/3846) - Add support for [@​include](https://togithub.com/include) in docs by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3863](https://togithub.com/mermaid-js/mermaid/pull/3863) - Housekeeping with eslint-unicorn by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3845](https://togithub.com/mermaid-js/mermaid/pull/3845) - chore: delete functions not used in diagrams/c4 code (dead code) by [@​weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3871](https://togithub.com/mermaid-js/mermaid/pull/3871) - Switch back to jsdelivr by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3873](https://togithub.com/mermaid-js/mermaid/pull/3873) - 3882 edge labels by [@​knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3883](https://togithub.com/mermaid-js/mermaid/pull/3883) - Small fix for issue [#​3881](https://togithub.com/mermaid-js/mermaid/issues/3881) by [@​knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/3884](https://togithub.com/mermaid-js/mermaid/pull/3884) - Defects/issue 3878 by [@​MrCoder](https://togithub.com/MrCoder) in [https://github.com/mermaid-js/mermaid/pull/3880](https://togithub.com/mermaid-js/mermaid/pull/3880) - chore(docs): Auto build docs by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3547](https://togithub.com/mermaid-js/mermaid/pull/3547) - docs: refactor Theming doc by [@​huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/3889](https://togithub.com/mermaid-js/mermaid/pull/3889) - Feat: Add aria-describedby, aria-roledescription by [@​weedySeaDragon](https://togithub.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3808](https://togithub.com/mermaid-js/mermaid/pull/3808) - Release/9.3.0 by [@​sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/3911](https://togithub.com/mermaid-js/mermaid/pull/3911) #### New Contributors - [@​revolter](https://togithub.com/revolter) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3657](https://togithub.com/mermaid-js/mermaid/pull/3657) - [@​Some-Dood](https://togithub.com/Some-Dood) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3643](https://togithub.com/mermaid-js/mermaid/pull/3643) - [@​danangtomo](https://togithub.com/danangtomo) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3679](https://togithub.com/mermaid-js/mermaid/pull/3679) - [@​DKurilo](https://togithub.com/DKurilo) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3690](https://togithub.com/mermaid-js/mermaid/pull/3690) - [@​devcer](https://togithub.com/devcer) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3604](https://togithub.com/mermaid-js/mermaid/pull/3604) - [@​isinek](https://togithub.com/isinek) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3688](https://togithub.com/mermaid-js/mermaid/pull/3688) - [@​jeroenekkelkamp](https://togithub.com/jeroenekkelkamp) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3698](https://togithub.com/mermaid-js/mermaid/pull/3698) - [@​imgss](https://togithub.com/imgss) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3707](https://togithub.com/mermaid-js/mermaid/pull/3707) - [@​jasmaa](https://togithub.com/jasmaa) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3609](https://togithub.com/mermaid-js/mermaid/pull/3609) - [@​uttk](https://togithub.com/uttk) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3652](https://togithub.com/mermaid-js/mermaid/pull/3652) - [@​CalebUsadi](https://togithub.com/CalebUsadi) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3719](https://togithub.com/mermaid-js/mermaid/pull/3719) - [@​marcjansen](https://togithub.com/marcjansen) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3721](https://togithub.com/mermaid-js/mermaid/pull/3721) - [@​DarkNami](https://togithub.com/DarkNami) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3729](https://togithub.com/mermaid-js/mermaid/pull/3729) - [@​6footGeek](https://togithub.com/6footGeek) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3741](https://togithub.com/mermaid-js/mermaid/pull/3741) - [@​hugovk](https://togithub.com/hugovk) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3752](https://togithub.com/mermaid-js/mermaid/pull/3752) - [@​raptor0929](https://togithub.com/raptor0929) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3738](https://togithub.com/mermaid-js/mermaid/pull/3738) - [@​spier](https://togithub.com/spier) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3760](https://togithub.com/mermaid-js/mermaid/pull/3760) - [@​ishuen](https://togithub.com/ishuen) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3641](https://togithub.com/mermaid-js/mermaid/pull/3641) - [@​avijit1258](https://togithub.com/avijit1258) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3762](https://togithub.com/mermaid-js/mermaid/pull/3762) - [@​MasonM](https://togithub.com/MasonM) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3706](https://togithub.com/mermaid-js/mermaid/pull/3706) - [@​endolith](https://togithub.com/endolith) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3820](https://togithub.com/mermaid-js/mermaid/pull/3820) - [@​dfinke](https://togithub.com/dfinke) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3821](https://togithub.com/mermaid-js/mermaid/pull/3821) - [@​craigmac](https://togithub.com/craigmac) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3847](https://togithub.com/mermaid-js/mermaid/pull/3847) - [@​DanInProgress](https://togithub.com/DanInProgress) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3829](https://togithub.com/mermaid-js/mermaid/pull/3829) - [@​MrCoder](https://togithub.com/MrCoder) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3880](https://togithub.com/mermaid-js/mermaid/pull/3880) - [@​huynhicode](https://togithub.com/huynhicode) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/3889](https://togithub.com/mermaid-js/mermaid/pull/3889) **Full Changelog**: mermaid-js/mermaid@v9.2.2...v9.3.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/BirthdayResearch/contented). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC41NC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNjIuMSJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
📑 Summary
Adds a GitHub Action (GHA) that check links in documentation files using lychee.
The markdown files that are checked so far are:
packages/mermaid/src/docs/**/*.md README.md README.zh-CN.md
This is based on a conversation from a previous PR:
#3760 (comment)
📏 Design Decisions
../config/configuration
that did not contain the.md
extension. Therefore lychee reported these links as broken. I have added the.md
extension for these casesOpen Questions
/packages/mermaid/src/docs/config/setup/README
, which does not exist any more. Where was that content moved? => answer: auto-generated viapnpm docs:code
https://github.com/mermaid-js/mermaid/edit/develop/src/docs/_sidebar.md
does not exist any more. Should we link topackages/mermaid/src/docs/.vitepress/config.ts
instead?📋 Tasks
Make sure you
develop
branch