diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 2f87cd60c4..bd9cfb2536 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -17,6 +17,9 @@ body: - Use a clear and concise title - Fill out the text fields with as much detail as possible. - Never be shy to give us screenshots and/or code samples. It will help! + + There is a chance that the bug is already fixed in the git `develop` branch, but is not released yet. + So please check in [Live Editor - Develop](https://develop.git.mermaid.live) before raising an issue. - type: textarea attributes: label: Description @@ -43,7 +46,7 @@ body: attributes: label: Code Sample description: |- - If applicable, add the code sample or a link to the [Live Editor](https://mermaid.live). + If applicable, add the code sample or a link to the [Live Editor - Develop](https://develop.git.mermaid.live). Any text pasted here will be rendered as a Code block. render: text - type: textarea diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 44b16532c9..7e0c78ff1e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -7,8 +7,14 @@ contact_links: url: https://join.slack.com/t/mermaid-talk/shared_invite/enQtNzc4NDIyNzk4OTAyLWVhYjQxOTI2OTg4YmE1ZmJkY2Y4MTU3ODliYmIwOTY3NDJlYjA0YjIyZTdkMDMyZTUwOGI0NjEzYmEwODcwOTE about: Join our Community on Slack for Help and a casual chat. - name: Documentation - url: https://mermaid-js.github.io + url: https://mermaid.js.org about: Read our documentation for all that Mermaid.js can offer. - name: Live Editor url: https://mermaid.live about: Try the live editor to preview graphs in no time. + - name: Live Editor - Develop + url: https://develop.git.mermaid.live + about: Try unreleased changes in the develop branch. + - name: Live Editor - Next + url: https://next.git.mermaid.live + about: Try unreleased changes in the next branch. diff --git a/README.md b/README.md index f844e2cb92..99e3b29c22 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ Generate diagrams from markdown-like text.

简体中文

+

+Try Live Editor previews of future releases: Develop | Next +



diff --git a/README.zh-CN.md b/README.zh-CN.md index 80e7155090..31eb5b1cae 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -12,7 +12,7 @@ Mermaid

-Live Editor! +实时编辑器!

📖 文档 | 🚀 入门 | 🌐 CDN | 🙌 加入我们 @@ -21,6 +21,10 @@ Mermaid English

+

+尝试未来版本的实时编辑器预览: Develop | Next +

+

diff --git a/scripts/editor.bash b/scripts/editor.bash index 3ae51ed335..8c1d4e2c6e 100755 --- a/scripts/editor.bash +++ b/scripts/editor.bash @@ -1,7 +1,16 @@ #!/usr/bin/env bash set -euxo pipefail -pnpm build + +pushd packages/mermaid +# Append commit hash to version +jq ".version = .version + \"+${COMMIT_REF:0:7}\"" package.json > package.tmp.json +mv package.tmp.json package.json +popd + +pnpm run -r clean +pnpm build:types +pnpm build:mermaid # Clone the Mermaid Live Editor repository rm -rf mermaid-live-editor