modeldoc

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package modeldoc renders a workspace's document definitions, so the workspace model itself never links the document evaluator or the runtime it reads objects from.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DocumentFiles

func DocumentFiles(names []string, extension string) (map[string]string, error)

DocumentFiles plans the file each named document is written to when the documents are rendered as a set in the form of extension: its stem cut to fit, and tagged with a hash of the whole where two would meet letter case aside. Every renderer links documents to one another by this plan, so a document rendered on its own links to the files a set writes. Two documents of one name cannot be told apart.

func RenderDocumentMarkdown

func RenderDocumentMarkdown(ws *model.Workspace, fqn string, opts docrender.MarkdownOptions) (string, error)

RenderDocumentMarkdown compiles the named document definition, evaluates its queries against the workspace model, and renders the result as Markdown, linking the other documents by the files a Markdown set writes them to.

Types

This section is empty.

Jump to

Keyboard shortcuts

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