-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Implement .org file rendering in Wiki #36018
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
base: main
Are you sure you want to change the base?
Changes from all commits
30254b9
cb93344
cb38c04
51b7680
3931b8f
36c23b8
3ae4823
676a785
83353a8
e2812ca
3268f6f
997ce9f
f0c005b
a4ccf65
884a1ed
535a377
914926f
4778511
1707118
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,7 @@ var ( | |
| DisableMigrations bool | ||
| DisableStars bool `ini:"DISABLE_STARS"` | ||
| DefaultBranch string | ||
| DefaultWikiFormat string | ||
| AllowAdoptionOfUnadoptedRepositories bool | ||
| AllowDeleteOfUnadoptedRepositories bool | ||
| DisableDownloadSourceArchives bool | ||
|
|
@@ -172,6 +173,7 @@ var ( | |
| DisableMigrations: false, | ||
| DisableStars: false, | ||
| DefaultBranch: "main", | ||
| DefaultWikiFormat: "markdown", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need a global configuration?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It could be useful to have it for cases where you want every repo globally to support both or either upon creation while still leaving the repo owners the freedom to change it. |
||
| AllowForkWithoutMaximumLimit: true, | ||
| StreamArchives: true, | ||
|
|
||
|
|
@@ -284,6 +286,7 @@ func loadRepositoryFrom(rootCfg ConfigProvider) { | |
| Repository.GoGetCloneURLProtocol = sec.Key("GO_GET_CLONE_URL_PROTOCOL").MustString("https") | ||
| Repository.MaxCreationLimit = sec.Key("MAX_CREATION_LIMIT").MustInt(-1) | ||
| Repository.DefaultBranch = sec.Key("DEFAULT_BRANCH").MustString(Repository.DefaultBranch) | ||
| Repository.DefaultWikiFormat = sec.Key("WIKI_FORMAT").MustString(Repository.DefaultWikiFormat) | ||
| RepoRootPath = sec.Key("ROOT").MustString(filepath.Join(AppDataPath, "gitea-repositories")) | ||
| if !filepath.IsAbs(RepoRootPath) { | ||
| RepoRootPath = filepath.Join(AppWorkPath, RepoRootPath) | ||
|
|
||
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.
Please use
RepoUnitto store the per repository configuration.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.
Alright I'll make the changes needed still getting familiar with the codebase apologies.