Skip to content

Commit

Permalink
Skip generated reference policies for completion
Browse files Browse the repository at this point in the history
This documentation will just pollute the completion with many items and
is less worthwhile on the command line.
  • Loading branch information
didrocks committed Nov 16, 2023
1 parent 26199a4 commit 614e190
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/adsysservice/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ func docStructure(dir embed.FS, indexFilePath, parentChapterName string) (ordere
}
p = filepath.Join(root, p) + ".md"

// Automated generated policies, ignore them.
if p == "reference/policies/index.md" {
continue
}

title, err := titleFromPage(dir, p)
if err != nil {
return nil, nil, nil, err
Expand Down

0 comments on commit 614e190

Please sign in to comment.