starlight

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 15 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Src is a local Starlight project root, an http(s) URL of a tarball,
	// or a GitHub repository URL. A GitHub URL downloads the repository
	// archive and finds the Starlight project (REQ-CNT-13).
	Src string
	// Out is the Gx content directory.
	Out string
	// GitHubBase overrides https://codeload.github.com for tests.
	GitHubBase string
	// Client is the HTTP client of a remote import.
	Client *http.Client
	// Log receives progress lines. Defaults to io.Discard.
	Log io.Writer
}

Options configure one import.

type Report

type Report struct {
	// Converted counts the written pages.
	Converted int
	// Notes lists what a human must fix, in file order.
	Notes []string
}

Report lists what the import did and what it could not convert.

func Convert

func Convert(opt Options) (Report, error)

Convert imports a Starlight project into a Gx content directory.

Jump to

Keyboard shortcuts

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