cli, docs: Add a docs command for doc generation
This took a lot longer than it looks to get right. It's not perfect, but it now reliably generates documentation which we can put into gohugo.
This commit is contained in:
@@ -33,6 +33,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
docsUtil "github.com/purpleidea/mgmt/docs/util"
|
||||
"github.com/purpleidea/mgmt/lang/interfaces"
|
||||
"github.com/purpleidea/mgmt/lang/types"
|
||||
)
|
||||
@@ -40,6 +41,8 @@ import (
|
||||
// FactFunc is a wrapper for the fact interface. It implements the fact
|
||||
// interface in terms of Func to reduce the two down to a single mechanism.
|
||||
type FactFunc struct { // implements `interfaces.Func`
|
||||
*docsUtil.Metadata
|
||||
|
||||
Fact Fact
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user