package dochtml

Import Path
	golang.org/x/pkgsite/internal/godoc/dochtml (on go.dev)

Dependency Relation
	imports 21 packages, and imported by 3 packages

Involved Source Files Package dochtml renders Go package documentation into HTML. This package and its API are under development (see golang.org/issue/39883). The plan is to iterate on the development internally for x/pkgsite needs first, before factoring it out somewhere non-internal where its API can no longer be easily modified. io.go symbol.go template.go
Package-Level Type Names (total 9, in which 3 are exported)
/* sort exporteds by: | */
ModuleInfo contains all the information a package needs about the module it belongs to in order to render its documentation. ModulePackages is the set of all full package paths in the module. ModulePath string ResolvedVersion string func golang.org/x/pkgsite/internal/godoc.(*Package).DocInfo(ctx context.Context, innerPath string, sourceInfo *source.Info, modInfo *godoc.ModuleInfo) (synopsis string, imports []string, api []*internal.Symbol, err error) func golang.org/x/pkgsite/internal/godoc.(*Package).Render(ctx context.Context, innerPath string, sourceInfo *source.Info, modInfo *godoc.ModuleInfo, nameToVersion map[string]string) (_ *Parts, err error)
Parts contains HTML for each part of the documentation. // main body of doc // "Links" section of package doc // outline for mobile // outline for large screens func Render(ctx context.Context, fset *token.FileSet, p *doc.Package, opt RenderOptions) (_ *Parts, err error) func golang.org/x/pkgsite/internal/godoc.RenderFromUnit(ctx context.Context, u *internal.Unit) (_ *Parts, err error) func golang.org/x/pkgsite/internal/godoc.(*Package).Render(ctx context.Context, innerPath string, sourceInfo *source.Info, modInfo *godoc.ModuleInfo, nameToVersion map[string]string) (_ *Parts, err error)
RenderOptions are options for Render. FileLinkFunc optionally specifies a function that returns a URL where file should be linked to. file is the name component of a .go file in the package, including the .go qualifier. As a special case, FileLinkFunc may return the empty string to indicate that a given file should not be linked. // If zero, a default limit of 10 megabytes is used. ModInfo optionally specifies information about the module the package belongs to in order to render module-related documentation. SinceVersionFunc func(name string) string SourceLinkFunc func(ast.Node) string func Render(ctx context.Context, fset *token.FileSet, p *doc.Package, opt RenderOptions) (_ *Parts, err error)
Package-Level Functions (total 26, in which 4 are exported)
GetSymbols renders package documentation HTML for the provided file set and package, in separate parts. If any of the rendered documentation part HTML sizes exceeds the specified limit, an error with ErrTooLarge in its chain will be returned.
LoadTemplates reads and parses the templates used to generate documentation.
Render renders package documentation HTML for the provided file set and package, in separate parts. If any of the rendered documentation part HTML sizes exceeds the specified limit, an error with ErrTooLarge in its chain will be returned.
WalkExamples calls fn for each Example in p, setting id to the name of the parent structure.
Package-Level Variables (total 6, in which 1 are exported)
ErrTooLarge represents an error where the rendered documentation HTML size exceeded the specified limit. See the RenderOptions.Limit field.