Thanks to visit codestin.com
Credit goes to github.com

Skip to content

s-elo/online-mermaid

Repository files navigation

Online Mermaid

Use github issue to store mermaid charts with organized structure.

Quick start

Fork this repo

Fork this repo so that you can setup your own online-mermaid tool.

Create a repo

Create a repo to store the mermaid charts as issues, then provide the owner and repo name in /src/config.json

{
  "owner": "you",
  "repo": "your mermaid repo"
}

you can make it private if you want.

Setup github ci

  • Go to the repo's settings->pages: enable the Build and deployment source from Github Actions.
  • Go to the repo's settings->Secrets and variables->Actions: add MY_API_TOKEN and MY_PASSWORD as secret keys
    • MY_API_TOKEN: your personal github api access token
    • MY_PASSWORD: the password to verify

To protect the github token at the pure front-end, we firstly symmetricly encrypt the token using the password

After you setup the github ci and run the action, you can visit it at https://<owner>.github.io/online-mermaid/

Develop

set password

before start this project, you need to generate the encrypted key to auth.

$ pnpm encrypt [token] [password]

start dev server

$ pnpm dev

build

$ pnpm build

About

Use Github issue to store mermaids

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published