Update doc generator to ignore tests directory
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
parent
c99e39ec9c
commit
51fe199a39
@ -337,6 +337,11 @@ func walkStdlib(ctx context.Context, output, format string) {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore tests directories
|
||||||
|
if strings.Contains(p, "tests") {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
pkgName := fmt.Sprintf("alpha.dagger.io/%s", p)
|
pkgName := fmt.Sprintf("alpha.dagger.io/%s", p)
|
||||||
lg.Info().Str("package", pkgName).Str("format", format).Msg("generating doc")
|
lg.Info().Str("package", pkgName).Str("format", format).Msg("generating doc")
|
||||||
val, err := loadCode(pkgName)
|
val, err := loadCode(pkgName)
|
||||||
|
Reference in New Issue
Block a user