greenroom

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL