-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
chore: revise Contributing documentation #3814
chore: revise Contributing documentation #3814
Conversation
@DanielOaks @qurm You both chimed in with #2910 so I'm pinging you to ask for your review. My eyes and brain are saturated and I really need some feedback. :-) Now that @emersonbottero and @sidharthv96 have done the hard work of converting things to vitepress, I think we should begin to really revise the documentation. This is my first step. |
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.
This is really great work!
I wonder if we should leave just the bare minimum commands to get it running inside Contributing.md?
CONTRIBUTING.md
Outdated
[Join our slack community if you want closer contact!](https://join.slack.com/t/mermaid-talk/shared_invite/enQtNzc4NDIyNzk4OTAyLWVhYjQxOTI2OTg4YmE1ZmJkY2Y4MTU3ODliYmIwOTY3NDJlYjA0YjIyZTdkMDMyZTUwOGI0NjEzYmEwODcwOTE) | ||
|
||
![A superhero wishing you good luck](https://media.giphy.com/media/l49JHz7kJvl6MCj3G/giphy.gif) | ||
[Please read about how to contribute documentation and code on the Mermaid documentation site.](https://mermaid-js.github.io/mermaid/#/development) |
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.
Note that this link will change once this is merged to master.
The current link is to the old version.
|
||
**Another example:** | ||
Once development is done we branch a `release` branch from `develop` for testing. |
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.
release/vX.X.X
branch.
|
||
`bug/123_nasty_bug_branch` | ||
Once the release happens we merge the `release` branch with `master` and delete the `release` branch. The live product and on-line documentation are what is in the `master` branch. |
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.
We also tag the release. Release branch is not deleted now.
|
||
The contents of [https://mermaid-js.github.io/mermaid/](https://mermaid-js.github.io/mermaid/) are based on the docs from the `master` branch. Updates committed to the `master` branch are reflected in the [Mermaid Docs](https://mermaid-js.github.io/mermaid/) once released. | ||
```text | ||
[feature | bug | chore | docs]/[issue number]_[short description using dashes ('-') or underscores ('_') instead of spaces] |
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.
feature -> feat
?
|
||
### How to Contribute to Documentation | ||
|
||
We are a little less strict here, it is OK to commit directly in the `develop` branch if you are a collaborator. |
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.
Only if it's a minor change(?)
5. Submit your changes by clicking the button **Propose file change** at the bottom (by automatic creation of a fork and a new branch). | ||
6. Create a Pull Request of your newly forked branch by clicking the green **Create Pull Request** button. | ||
1. Login to [GitHub.com](https://www.github.com). | ||
2. Navigate to [mermaid-js/mermaid/src/docs](https://github.com/mermaid-js/mermaid/tree/develop/src/docs). |
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.
Fix path.
We also need to complete #3547 to auto build the docs.
@sidharthv96 wrote:
I'm conflicted about this because it will mean 2 places that we need to keep that documentation up to date (obv). If there's any way to include the same source in both documentation (.md) files, that'd be super and I'd be all for it. (Then I'd learn how to do that and we could surely take advantage of using includes in many other places in the documentation.) |
Co-authored-by: Sidharth Vinod <[email protected]>
Co-authored-by: Sidharth Vinod <[email protected]>
…' into docs/3682-developer-contributing # Conflicts: # packages/mermaid/src/docs/community/development.md
Well.......... We are doing pre-processing for docs, so theoretically we could support md file injection 😅, but just because we can doesn't mean we should 😂 How much of an impact would such a feature make? |
Totally agree that just because we can doesn't mean we should :-D I think it's something to keep in mind. Consider all of the common features of the different diagrams: diagram direction (TB, LR etc) , notes, classDefs, styling, interaction, etc. I suspect (without considering it deeply) that if we can refactor/DRY the parsing, then at that point we should also consider refactoring the documentation (exploring whether we can include .md files). |
@sidharthv96 FYI: Good news! Vitpress supports Vitepress: Markdown File Inclusion I wondered if they'd have that feature since so many must need it. Obv it doesn't help with duplicated info in CONTRIBUTING.md since that's not published by vitepress. But for so much other stuff in the documentation, it'll be great. |
@sidharthv96 - can you look at the link checker? It's failing with "too many network requests". |
@weedySeaDragon, they use caching, so the 429 error is fixed after a rerun.
|
Co-authored-by: Sidharth Vinod <[email protected]>
@weedySeaDragon you can use the include syntax in docs. |
Hello, really great work on this PR! I was wondering if we may add some explicit instructions on how to contribute to Mermaid so that new contributors can get up and running quickly. To contribute:
To contribute to the documentation:
To contribute to the core code:
(e.g. to update the flowchart found at To add E2E Tests:
To submit a Pull Request:
|
Also, it may be helpful to have instructions on how to get up and running in the Slack workspace as well. |
@weedySeaDragon hope you're doing well. |
* develop: (815 commits) Move filetype Recommendations to the top Update docs Update integrations.md per review Disable coveralls Update coveralls Ignore bundlephobia Update docs strawman extension and mime type docs Update docs Rename info to note Rename "info" to "note" Update all patch dependencies Fix Directives Documentation Run docs:build Update tutorial link Run build Fix link to Tutorials from n00b-overview page Correct timeline spelling UPdated version to 10.2.3 Remove old changelog ...
* develop: Rerun Support for development in Docker
@weedySeaDragon, Thank you for the contribution! |
[![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://github.com/mermaid-js/mermaid) | [`10.2.3` -> `10.2.4`](https://renovatebot.com/diffs/npm/mermaid/10.2.3/10.2.4) | [![age](https://badges.renovateapi.com/packages/npm/mermaid/10.2.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/mermaid/10.2.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/mermaid/10.2.4/compatibility-slim/10.2.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/mermaid/10.2.4/confidence-slim/10.2.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>mermaid-js/mermaid (mermaid)</summary> ### [`v10.2.4`](https://github.com/mermaid-js/mermaid/releases/tag/v10.2.4): 10.2.4 [Compare Source](https://github.com/mermaid-js/mermaid/compare/v10.2.3...v10.2.4) #### Features - Add Plausible analytics to mermaid.js.org by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4473](https://github.com/mermaid-js/mermaid/pull/4473) - Support for development in Docker by [@​nirname](https://github.com/nirname) in [https://github.com/mermaid-js/mermaid/pull/4478](https://github.com/mermaid-js/mermaid/pull/4478) - standardize info diagram definitions by [@​Yokozuna59](https://github.com/Yokozuna59) in [https://github.com/mermaid-js/mermaid/pull/4486](https://github.com/mermaid-js/mermaid/pull/4486) - Change C4 stereotype braces from ASCII <\</>> to Unicode «/» by [@​jonathan-r-young](https://github.com/jonathan-r-young) in [https://github.com/mermaid-js/mermaid/pull/4460](https://github.com/mermaid-js/mermaid/pull/4460) - Add coverage for E2E tests by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4498](https://github.com/mermaid-js/mermaid/pull/4498) - set normal mode for vitest coverage by [@​Yokozuna59](https://github.com/Yokozuna59) in [https://github.com/mermaid-js/mermaid/pull/4505](https://github.com/mermaid-js/mermaid/pull/4505) - Use v8 coverage in vitest by [@​sidharthv96](https://github.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4560](https://github.com/mermaid-js/mermaid/pull/4560) - feat(flowchart): add classDef style group definition by [@​tomperr](https://github.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/3923](https://github.com/mermaid-js/mermaid/pull/3923) - add cypress coverage clean by [@​Yokozuna59](https://github.com/Yokozuna59) in [https://github.com/mermaid-js/mermaid/pull/4556](https://github.com/mermaid-js/mermaid/pull/4556) - fix(class): keep members in namespace classes by [@​tomperr](https://github.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/4532](https://github.com/mermaid-js/mermaid/pull/4532) #### Bugfixes - Add hint on "flowchart" and "graph" by [@​koppor](https://github.com/koppor) in [https://github.com/mermaid-js/mermaid/pull/4096](https://github.com/mermaid-js/mermaid/pull/4096) - fix(flowchart): apply style on doublecircle by [@​tomperr](https://github.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/4540](https://github.com/mermaid-js/mermaid/pull/4540) - fix not rendered style when style is optional by [@​Yokozuna59](https://github.com/Yokozuna59) in [https://github.com/mermaid-js/mermaid/pull/4528](https://github.com/mermaid-js/mermaid/pull/4528) - fix(flowchart): allow multiple vertices with style by [@​tomperr](https://github.com/tomperr) in [https://github.com/mermaid-js/mermaid/pull/4553](https://github.com/mermaid-js/mermaid/pull/4553) #### Documentation - change REAMDME.md coverage from coveralls into codecov by [@​Yokozuna59](https://github.com/Yokozuna59) in [https://github.com/mermaid-js/mermaid/pull/4507](https://github.com/mermaid-js/mermaid/pull/4507) - Update latest news section by [@​huynhicode](https://github.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/4468](https://github.com/mermaid-js/mermaid/pull/4468) - Fix link to Tutorials from n00b-overview page by [@​Spiderpig86](https://github.com/Spiderpig86) in [https://github.com/mermaid-js/mermaid/pull/4472](https://github.com/mermaid-js/mermaid/pull/4472) - Fix Directives Documentation by [@​adamazing](https://github.com/adamazing) in [https://github.com/mermaid-js/mermaid/pull/4475](https://github.com/mermaid-js/mermaid/pull/4475) - Correct "Bronze" spelling in timeline docs by [@​adamazing](https://github.com/adamazing) in [https://github.com/mermaid-js/mermaid/pull/4467](https://github.com/mermaid-js/mermaid/pull/4467) - Document recommended file extension and MIME type docs by [@​bollwyvl](https://github.com/bollwyvl) in [https://github.com/mermaid-js/mermaid/pull/4485](https://github.com/mermaid-js/mermaid/pull/4485) - Fix typo in quadrant chart documentation by [@​tobie](https://github.com/tobie) in [https://github.com/mermaid-js/mermaid/pull/4512](https://github.com/mermaid-js/mermaid/pull/4512) - fix cspell issues in \*.md files by [@​Yokozuna59](https://github.com/Yokozuna59) in [https://github.com/mermaid-js/mermaid/pull/4531](https://github.com/mermaid-js/mermaid/pull/4531) - docs: Howto on foreground color on timelines by [@​mcbeelen](https://github.com/mcbeelen) in [https://github.com/mermaid-js/mermaid/pull/4524](https://github.com/mermaid-js/mermaid/pull/4524) - Add citation.cff file by [@​schackartk](https://github.com/schackartk) in [https://github.com/mermaid-js/mermaid/pull/4521](https://github.com/mermaid-js/mermaid/pull/4521) - Update Tutorials.md by [@​ellenealds](https://github.com/ellenealds) in [https://github.com/mermaid-js/mermaid/pull/4539](https://github.com/mermaid-js/mermaid/pull/4539) - Add Standard Notes extension in integrations page by [@​nienow](https://github.com/nienow) in [https://github.com/mermaid-js/mermaid/pull/4557](https://github.com/mermaid-js/mermaid/pull/4557) - Fix up Gantt Chart demo by [@​AlexMooney](https://github.com/AlexMooney) in [https://github.com/mermaid-js/mermaid/pull/4561](https://github.com/mermaid-js/mermaid/pull/4561) #### Chore - Update all patch dependencies (patch) by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4482](https://github.com/mermaid-js/mermaid/pull/4482) - chore: revise Contributing documentation by [@​weedySeaDragon](https://github.com/weedySeaDragon) in [https://github.com/mermaid-js/mermaid/pull/3814](https://github.com/mermaid-js/mermaid/pull/3814) - chore(deps): update all minor dependencies (minor) by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4435](https://github.com/mermaid-js/mermaid/pull/4435) - fix(deps): update all patch dependencies (patch) by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4510](https://github.com/mermaid-js/mermaid/pull/4510) - fix(deps): update all patch dependencies (patch) by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4535](https://github.com/mermaid-js/mermaid/pull/4535) - chore(deps): update dependency eslint-plugin-jsdoc to v46 by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4544](https://github.com/mermaid-js/mermaid/pull/4544) - chore(deps): update dependency jsdom to v22 by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4546](https://github.com/mermaid-js/mermaid/pull/4546) - chore(deps): update dependency eslint-plugin-unicorn to v47 by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4545](https://github.com/mermaid-js/mermaid/pull/4545) - chore(deps): update dependency workbox-window to v7 by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4547](https://github.com/mermaid-js/mermaid/pull/4547) - chore(deps): update node.js to v20 by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4548](https://github.com/mermaid-js/mermaid/pull/4548) - fix(deps): update all patch dependencies (patch) by [@​renovate](https://github.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4543](https://github.com/mermaid-js/mermaid/pull/4543) - add `Suggested Solutions` field in `bug_report.yml` by [@​Yokozuna59](https://github.com/Yokozuna59) in [https://github.com/mermaid-js/mermaid/pull/4541](https://github.com/mermaid-js/mermaid/pull/4541) #### New Contributors - [@​Spiderpig86](https://github.com/Spiderpig86) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4472](https://github.com/mermaid-js/mermaid/pull/4472) - [@​adamazing](https://github.com/adamazing) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4475](https://github.com/mermaid-js/mermaid/pull/4475) - [@​koppor](https://github.com/koppor) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4096](https://github.com/mermaid-js/mermaid/pull/4096) - [@​nirname](https://github.com/nirname) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4478](https://github.com/mermaid-js/mermaid/pull/4478) - [@​Yokozuna59](https://github.com/Yokozuna59) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4486](https://github.com/mermaid-js/mermaid/pull/4486) - [@​jonathan-r-young](https://github.com/jonathan-r-young) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4460](https://github.com/mermaid-js/mermaid/pull/4460) - [@​tobie](https://github.com/tobie) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4512](https://github.com/mermaid-js/mermaid/pull/4512) - [@​schackartk](https://github.com/schackartk) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4521](https://github.com/mermaid-js/mermaid/pull/4521) - [@​mcbeelen](https://github.com/mcbeelen) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4524](https://github.com/mermaid-js/mermaid/pull/4524) - [@​ellenealds](https://github.com/ellenealds) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4539](https://github.com/mermaid-js/mermaid/pull/4539) - [@​nienow](https://github.com/nienow) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4557](https://github.com/mermaid-js/mermaid/pull/4557) - [@​AlexMooney](https://github.com/AlexMooney) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4561](https://github.com/mermaid-js/mermaid/pull/4561) **Full Changelog**: mermaid-js/mermaid@v10.2.3...v10.2.4 </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://developer.mend.io/github/levaintech/contented). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMiIsInVwZGF0ZWRJblZlciI6IjM1LjE0NC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
📑 Summary
Resolves #3682
Revise the 'Contributing' documentation, including changing CONTRIBUTING.md to just point to docs/community/developer.md
Note: This is still a WIP. I want to get feedback before going any further.
I've made some bold assumptions and statements in here. Do the project maintainers agree?
📏 Design Decisions
I find the gifs quite distracting. The Captain America one at the bottom cannot be resized and is too big. If there really needs to be a gif at the bottom, is there a smaller on
📋 Tasks
Make sure you
develop
branch