Author: Adam <git@apiote.xyz>
add README.adoc to readme search
pkg/smithy/smithy.go | 3 ++-
diff --git a/pkg/smithy/smithy.go b/pkg/smithy/smithy.go index 1fa6c8dea46fcd8aa6d1f2574e0051310b5db73a..5949523efc26a127359544946db63d56794304e5 100644 --- a/pkg/smithy/smithy.go +++ b/pkg/smithy/smithy.go @@ -150,6 +150,7 @@ func GetReadmeFromCommit(commit *object.Commit) (*object.File, error) { options := []string{ "README.asciidoc", + "README.adoc", "README.md", "README", "README.markdown", @@ -315,7 +316,7 @@ if err != nil { formattedReadme = "" } else { - if strings.Contains(readme.Name, ".asciidoc") { + if strings.Contains(readme.Name, ".asciidoc") || strings.Contains(readme.Name, ".adoc") { content := strings.NewReader(readmeContents) output := &strings.Builder{} config := configuration.NewConfiguration()