From 38e5fa04d08bda6cc05f76ad9bcbedbdf24ffa08 Mon Sep 17 00:00:00 2001 From: Silas Davis <silas@erisindustries.com> Date: Tue, 27 Sep 2016 19:22:22 +0100 Subject: [PATCH] fix integration of of docs generator --- docs/build.sh | 4 ++-- docs/generator.go | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/build.sh b/docs/build.sh index 9433af84..5894ad34 100755 --- a/docs/build.sh +++ b/docs/build.sh @@ -3,11 +3,11 @@ # ------------------------------------------------------------------- # Set vars (change if used in another repo) -base_name=eris-pm +base_name=eris-db user_name=eris-ltd docs_site=monax.io docs_name=./docs/documentation -slim_name=pm +slim_name=db # ------------------------------------------------------------------- # Set vars (usually shouldn't be changed) diff --git a/docs/generator.go b/docs/generator.go index 6f3e88e1..901256d4 100644 --- a/docs/generator.go +++ b/docs/generator.go @@ -14,7 +14,7 @@ import ( ) // Repository maintainers should customize the next two lines. -var Description = "Blockchain Client" // should match the docs site name +var Description = "Blockchain Client" // should match the docs site name var RenderDir = fmt.Sprintf("./docs/documentation/db/%s/", version.VERSION) // should be the "shortversion..." // The below variables should be updated only if necessary. @@ -78,9 +78,10 @@ func RenderFiles(cmdRaw *cobra.Command, tmpl *template.Template) error { func main() { // Repository maintainers should populate the top level command object. - // pm := commands.EPMCmd - // commands.InitEPM() - // commands.AddGlobalFlags() + erisDbCommand := commands.ErisDbCmd + commands.InitErisDbCli() + commands.AddCommands() + commands.AddGlobalFlags() // Make the proper directory. var err error @@ -108,7 +109,7 @@ func main() { } // Render the templates. - if err = RenderFiles(commands.ErisDbCmd, tmpl); err != nil { + if err = RenderFiles(erisDbCommand, tmpl); err != nil { panic(err) } } -- GitLab