mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-08 06:28:48 +00:00
Use docusaurus warning/note syntax instead markdown
This commit is contained in:
@@ -58,7 +58,7 @@ Since Golang doesn't support import cycles, we have to decide the package depend
|
||||
|
||||
From left to right, left packages could depend on right packages, but right packages MUST not depend on left packages. The sub packages on the same level could depend on according this level's rules.
|
||||
|
||||
**NOTICE**
|
||||
:::warning
|
||||
|
||||
Why do we need database transactions outside of `models`? And how?
|
||||
Some actions should allow for rollback when database record insertion/update/deletion failed.
|
||||
@@ -91,6 +91,8 @@ func UpdateIssue(ctx context.Context, repoID int64) error {
|
||||
}
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
### Package Name
|
||||
|
||||
For the top level package, use a plural as package name, i.e. `services`, `models`, for sub packages, use singular,
|
||||
|
||||
Reference in New Issue
Block a user