Help us shape the future of Go! Take the 2026 Go Developer Survey

docs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package docs renders a protocol.ProviderSchema into human-readable Markdown. The layout is fixed — there are no templates — so any provider, builtin or external, can produce identical-looking docs from its schema alone.

Narrative content (prose intros, notes, worked examples) lives in the schema itself: description fields accept Markdown, and example blocks carry HCL snippets with optional captions. This is the trade-off for template-free generation: provider authors put more into their schema, and tooling picks up the rest automatically.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(schema protocol.ProviderSchema, source string) string

Render returns the Markdown documentation page for schema. The source string is the provider source the user would put in their scenario (e.g. "builtin/postgres" or "exec:./bin/my-provider"); it appears in the "Source" line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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