Skip to content

Commit

Permalink
色の説明に改行追加
Browse files Browse the repository at this point in the history
  • Loading branch information
mazrean committed Nov 23, 2023
1 parent 83e2574 commit 61e61e9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
45 changes: 23 additions & 22 deletions docs/sample/dbdoc.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
# DB Graph
node: ![](https://via.placeholder.com/16/795548/FFFFFF/?text=%20) `table` ![](https://via.placeholder.com/16/1976D2/FFFFFF/?text=%20) `func`

edge: ![](https://via.placeholder.com/16/CDDC39/FFFFFF/?text=%20) `INSERT` ![](https://via.placeholder.com/16/FF9800/FFFFFF/?text=%20) `UPDATE` ![](https://via.placeholder.com/16/F44336/FFFFFF/?text=%20) `DELETE` ![](https://via.placeholder.com/16/78909C/FFFFFF/?text=%20) `SELECT` ![](https://via.placeholder.com/16/BBDEFB/FFFFFF/?text=%20) `関数呼び出し`
```mermaid
graph LR
classDef table fill:#795548,fill-opacity:0.5
classDef func fill:#1976D2,fill-opacity:0.5
func:github.com/catatsuy/private-isu/webapp/golang.makePosts[makePosts]:::func --> table:comments[comments]:::table
func:github.com/catatsuy/private-isu/webapp/golang.makePosts[makePosts]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postComment[postComment]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.postComment[postComment]:::func --> table:comments[comments]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getAccountName[getAccountName]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getAccountName[getAccountName]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.makePosts[makePosts]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getAccountName[getAccountName]:::func --> table:comments[comments]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getAccountName[getAccountName]:::func --> table:posts[posts]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getAccountName[getAccountName]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getAdminBanned[getAdminBanned]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getAdminBanned[getAdminBanned]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postIndex[postIndex]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.postIndex[postIndex]:::func --> table:posts[posts]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getPostsID[getPostsID]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getPostsID[getPostsID]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.makePosts[makePosts]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getPostsID[getPostsID]:::func --> table:posts[posts]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postComment[postComment]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.postComment[postComment]:::func --> table:comments[comments]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postRegister[postRegister]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.postRegister[postRegister]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postRegister[postRegister]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postAdminBanned[postAdminBanned]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.postAdminBanned[postAdminBanned]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getLogin[getLogin]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getImage[getImage]:::func --> table:posts[posts]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getIndex[getIndex]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getIndex[getIndex]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.makePosts[makePosts]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getIndex[getIndex]:::func --> table:posts[posts]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postLogin[postLogin]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.postLogin[postLogin]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.tryLogin[tryLogin]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getRegister[getRegister]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.tryLogin[tryLogin]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postIndex[postIndex]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.postIndex[postIndex]:::func --> table:posts[posts]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getPosts[getPosts]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.makePosts[makePosts]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getPosts[getPosts]:::func --> table:posts[posts]:::table
linkStyle 0,1,4,5,6,8,9,14,19,23,26,30,32 stroke:#78909C,stroke-width:2px
linkStyle 2,3,7,10,12,13,15,17,20,22,24,25,27,28,29,31 stroke:#BBDEFB,stroke-width:2px
linkStyle 11,16,18 stroke:#CDDC39,stroke-width:2px
linkStyle 21 stroke:#FF9800,stroke-width:2px
func:github.com/catatsuy/private-isu/webapp/golang.getAdminBanned[getAdminBanned]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getAdminBanned[getAdminBanned]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getIndex[getIndex]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getIndex[getIndex]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.makePosts[makePosts]:::func
func:github.com/catatsuy/private-isu/webapp/golang.getIndex[getIndex]:::func --> table:posts[posts]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postRegister[postRegister]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.postRegister[postRegister]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.postRegister[postRegister]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getImage[getImage]:::func --> table:posts[posts]:::table
func:github.com/catatsuy/private-isu/webapp/golang.tryLogin[tryLogin]:::func --> table:users[users]:::table
func:github.com/catatsuy/private-isu/webapp/golang.getLogin[getLogin]:::func --> func:github.com/catatsuy/private-isu/webapp/golang.getSessionUser[getSessionUser]:::func
func:github.com/catatsuy/private-isu/webapp/golang.makePosts[makePosts]:::func --> table:comments[comments]:::table
func:github.com/catatsuy/private-isu/webapp/golang.makePosts[makePosts]:::func --> table:users[users]:::table
linkStyle 2,17,26 stroke:#CDDC39,stroke-width:2px
linkStyle 12 stroke:#FF9800,stroke-width:2px
linkStyle 0,5,6,7,10,19,21,24,27,28,29,31,32 stroke:#78909C,stroke-width:2px
linkStyle 1,3,4,8,9,11,13,14,15,16,18,20,22,23,25,30 stroke:#BBDEFB,stroke-width:2px
```
2 changes: 1 addition & 1 deletion internal/isucrud/mermaid.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func writeMermaid(w io.StringWriter, nodes []*node) error {
}
}

_, err = w.WriteString("\n")
_, err = w.WriteString("\n\n")
if err != nil {
return fmt.Errorf("failed to write node description end: %w", err)
}
Expand Down

0 comments on commit 61e61e9

Please sign in to comment.