From f7833f8ddef60598d4312ca8c949b65b67ea9a37 Mon Sep 17 00:00:00 2001 From: mappu Date: Mon, 12 Apr 2021 13:33:59 +1200 Subject: [PATCH] also search the root directory for repo images --- api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.go b/api.go index 9cd36d1..ade0606 100644 --- a/api.go +++ b/api.go @@ -273,12 +273,12 @@ func (this *Application) filesInDirectory(ctx context.Context, repo, dir string) } // imageFilesForRepo finds documentation images for the repository. -// It searches the dist/ and doc/ subdirectories. +// It searches the top-level directory and the dist/ and doc/ subdirectories. func (this *Application) imageFilesForRepo(ctx context.Context, repo string) ([]ReaddirEntry, error) { ret := []ReaddirEntry{} - for _, dirName := range []string{`dist`, `doc`} { + for _, dirName := range []string{``, `dist`, `doc`} { files, err := this.filesInDirectory(ctx, repo, dirName) if err != nil {