Kindsys: update generated doc and add check in CI (#71871)

* clean up docs

* fix Windows path issue

* add verify-gen-cue to doc pipeline

* fix linting error
This commit is contained in:
Agnès Toulet
2023-07-20 11:48:12 +02:00
committed by GitHub
parent 8dd3eb856d
commit ac445a25d5
83 changed files with 257 additions and 3017 deletions

View File

@@ -24,9 +24,9 @@ import (
)
var skipPlugins = map[string]bool{
"influxdb": true, // plugin.json fails validation (defaultMatchFormat)
"mixed": true, // plugin.json fails validation (mixed)
"opentsdb": true, // plugin.json fails validation (defaultMatchFormat)
"influxdb": true, // plugin.json fails validation (defaultMatchFormat)
"mixed": true, // plugin.json fails validation (mixed)
"opentsdb": true, // plugin.json fails validation (defaultMatchFormat)
}
const sep = string(filepath.Separator)
@@ -110,9 +110,10 @@ func splitSchiffer(names []string) codejen.FileMapper {
}
return func(f codejen.File) (codejen.File, error) {
// TODO it's terrible that this has to exist, CODEJEN NEEDS TO BE BETTER
path := filepath.ToSlash(f.RelativePath)
for _, name := range names {
if idx := strings.Index(f.RelativePath, name); idx != -1 {
f.RelativePath = fmt.Sprintf("%s/%s", f.RelativePath[:idx], f.RelativePath[idx:])
if idx := strings.Index(path, name); idx != -1 {
f.RelativePath = fmt.Sprintf("%s/%s", path[:idx], path[idx:])
break
}
}