Skip to content

Commit

Permalink
debug: move SetViewpointsToTables to ModifySchema
Browse files Browse the repository at this point in the history
  • Loading branch information
majimaccho committed Nov 3, 2023
1 parent 4c6808a commit 0bf7cbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,11 @@ func (c *Config) ModifySchema(s *schema.Schema) error {
}
}

_, err := s.SetViewpointsToTables()
if err != nil {
return errors.WithStack(err)
}

return nil
}

Expand Down
5 changes: 0 additions & 5 deletions output/md/md.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@ func (m *Md) OutputViewpoint(wr io.Writer, i int, v *schema.Viewpoint) error {

// Output generate markdown files.
func Output(s *schema.Schema, c *config.Config, force bool) (e error) {
s, err := s.SetViewpointsToTables()
if err != nil {
return errors.WithStack(err)
}

docPath := c.DocPath

fullPath, err := filepath.Abs(docPath)
Expand Down

0 comments on commit 0bf7cbc

Please sign in to comment.