💾 Archived View for code.pfad.fr › vanitydoc › pkg captured on 2023-09-08 at 15:51:37. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-07-10)
-=-=-=-=-=-=-
import "code.pfad.fr/vanitydoc/pkg"
package pkg computes and generate documentation for a given package.
func CopyAsset(dst io.Writer, name string) error
CopyAsset copy the given assets from the template folder.
func Gemtext(out io.Writer, pkg Package) error
Gemtext generates gemtext for the given Package.
func HTML(fs fs.FS, patterns ...string) func(out io.Writer, pkg Package) error
HTML creates an html-generator. The fs and patterns are not nil, they will be parsed as HTML templates to override the defaults.
type Package struct { Doc *doc.Package FileSet *token.FileSet ModulePath string VCS autodiscovery.VCS Stylesheets []string SubPackages []string Synopsis func(string) string Breadcrumbs func() []string }
Package holds the documentation data of a given package.
func NewPackage(pkgFS fs.FS, importPath string) (Package, error)
NewPackage computes Doc and FileSet fields for a package.
https://codeberg.org/pfad.fr/vanitydoc
git clone
https://codeberg.org/pfad.fr/vanitydoc.git git@codeberg.org:pfad.fr/vanitydoc.git