-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Improve docs generation for cli.Authors #900
Conversation
Codecov Report
@@ Coverage Diff @@
## master #900 +/- ##
=======================================
Coverage 72.89% 72.89%
=======================================
Files 32 32
Lines 2439 2439
=======================================
Hits 1778 1778
Misses 550 550
Partials 111 111 Continue to review full report at Codecov.
|
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.
👍👍👍
% {{ .App.Author }} | ||
var MarkdownDocTemplate = `% {{ .App.Name }}(8){{ if .App.Description }} {{ .App.Description }}{{ end }} | ||
{{ range $a := .App.Authors }} | ||
% {{ $a }}{{ end }} |
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.
Whst if authors is not set just author, that would be confusing as it would not work.
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.
I thought this will catch it, doesn't it?
Lines 142 to 144 in 63cd2e3
if a.Author != "" || a.Email != "" { | |
a.Authors = append(a.Authors, Author{Name: a.Author, Email: a.Email}) | |
} |
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.
Ah yes.
@AudriusButkevicius may I ping you to merge this or review it again please? =) |
PR has merge conflicts now! |
c0d01ac
to
995604f
Compare
This allows specifying multiple authors, whereas no available authors will be formatted correctly now. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
995604f
to
2cb62f5
Compare
Rebased on top of the master branch, please take a look 🙏 |
This allows specifying multiple authors, whereas no available authors
will be formatted correctly now.