-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add init support of orgmode document type on file view and readme #2525
Conversation
CI failed seems unrelated. |
13a84bc
to
8403f68
Compare
Codecov Report
@@ Coverage Diff @@
## master #2525 +/- ##
=========================================
Coverage ? 27.07%
=========================================
Files ? 86
Lines ? 17119
Branches ? 0
=========================================
Hits ? 4635
Misses ? 11809
Partials ? 675
Continue to review full report at Codecov.
|
) | ||
|
||
const AppURL = "http://localhost:3000/" | ||
const Repo = "gogits/gogs" |
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.
Why gogits/gogs
?
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.
No reason. Just copied from markdown test.
main.go
Outdated
@@ -14,6 +14,10 @@ import ( | |||
"code.gitea.io/gitea/modules/log" | |||
"code.gitea.io/gitea/modules/setting" | |||
"github.com/urfave/cli" | |||
|
|||
// register supported doc types | |||
_ "code.gitea.io/gitea/modules/markup/markdown" |
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.
Import order
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.
done.
43f9aac
to
a3566aa
Compare
LGTM |
LGTM |
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.
LGTM, just two nits
|
||
test := func(input, expected string) { | ||
buffer := RenderString(input, setting.AppSubURL, nil, false) | ||
assert.Equal(t, strings.TrimSpace(expected), strings.TrimSpace(string(buffer))) |
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.
nit: unnecessary cast of buffer
|
||
test := func(input, expected string) { | ||
buffer := RenderString(input, setting.AppSubURL, nil, false) | ||
assert.Equal(t, strings.TrimSpace(expected), strings.TrimSpace(string(buffer))) |
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.
nit: unnecessary cast of buffer
aea4190
to
f2eac3d
Compare
@ethantkoenig done. |
will be part of #374 and replace #1527