Skip to content

Render godocs into Backstage TechDocs documentation.

License

Notifications You must be signed in to change notification settings

cmars/greenroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

greenroom

What is this all about now?

Rendering godocs for Backstage TechDocs documentation.

greenroom renders Godoc comments into documentation that can be consumed and rendered into Backstage using its TechDocs plugin. TechDocs expects a Mkdocs project documentation configuration and layout.

Why would I want to do that?

This makes it easy to upload your Go libraries' code documentation up into Backstage.

It's not really that useful for public Go packages; just link to pkg.go.dev for that. It'll be primarily useful for distributing internal Go packages within an organization that is using Backstage as an internal catalog of all the technical things.

How do I install it?

go install github.com/cmars/greenroom@latest

How do I run it?

In your Go module,

greenroom ./...

will create Markdown documentation for each package matching the query ./... in a docs subdirectory, and a mkdocs.yml that references all of it.

greenroom -help for more options.

How does it work?

github.com/princjef/gomarkdoc is doing almost all of the real work, by rendering all the godocs into Markdown. Other than that its just a bit of Go package introspection, YAML wrangling and shuffling files around.

About

Render godocs into Backstage TechDocs documentation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages