Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Improve Doc Generation #294

Merged
merged 8 commits into from
Nov 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ import (
)

func main() {
err := docs.GenerateDocs(resources.Provider(), "./docs")
outputPath := "./docs"
err := os.RemoveAll(outputPath)
if err != nil {
fmt.Printf("%+v", err)
bbernays marked this conversation as resolved.
Show resolved Hide resolved
}

err = docs.GenerateDocs(resources.Provider(), outputPath)
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to generate docs: %s\n", err)
}
bbernays marked this conversation as resolved.
Show resolved Hide resolved
Expand Down