Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel de la Peña <[email protected]>
  • Loading branch information
mmorel-35 and mdelapenya committed Aug 23, 2023
1 parent a3c7d77 commit ac34ba2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modulegen/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (ctx *Context) getModulesByBaseDir(baseDir string) ([]string, error) {
return dirs, nil
}

func (ctx *Context) getMardownsByBaseDir(baseDir string) ([]string, error) {
func (ctx *Context) getMarkdownsFromDir(baseDir string) ([]string, error) {
dir := filepath.Join(ctx.DocsDir(), baseDir)

allFiles, err := os.ReadDir(dir)
Expand Down Expand Up @@ -73,11 +73,11 @@ func (ctx *Context) GetModules() ([]string, error) {
}

func (ctx *Context) GetExamplesDocs() ([]string, error) {
return ctx.getMardownsByBaseDir("examples")
return ctx.getMarkdownsFromDir("examples")
}

func (ctx *Context) GetModulesDocs() ([]string, error) {
return ctx.getMardownsByBaseDir("modules")
return ctx.getMarkdownsFromDir("modules")
}

func (ctx *Context) MkdocsConfigFile() string {
Expand Down

0 comments on commit ac34ba2

Please sign in to comment.