manual

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 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 manual is bdtools' manual as web pages: the documents in docs/ (grading.md, cookbook.md) made HTML by Build, with a stylesheet and the pictures beside them. The pages are generated here (go generate) and committed, so that a checkout or GitHub serves them as they are, a release archive carries them, and the binary embeds them (Files): --manual serves or writes them, and --3d-grade's page links them.

Index

Constants

This section is empty.

Variables

View Source
var Files embed.FS

Files is the manual: index.html, a page per Pages entry, style.css, icon.svg (the command's, internal/convert's copy) and img/.

View Source
var Pages = []Page{
	{"grading.md", "How to grade a 2D-to-3D conversion by eye, with the web page or a headset: from starting the server to converting the film with what you set."},
	{"cookbook.md", "The things people most often do with bdtools, each with a complete command you can copy."},
}

Pages are the manual's pages in its order: the markdown in docs/ each is made from (its page is the same name with .html) and a word on it for the index.

Functions

func Build

func Build(docs fs.FS) (map[string][]byte, error)

Build makes the manual's generated files from docs (the docs/ directory): the pages, by name, and index.html.

func Handler

func Handler() http.Handler

Handler serves the manual: index.html at /, the pages and pictures by name.

func Names

func Names() []string

Names is Files' names, sorted, for a listing.

Types

type Page

type Page struct{ Source, About string }

A Page is a page of the manual.

Directories

Path Synopsis
Command gen writes the manual's generated pages beside it (go generate in docs/manual): the documents in docs/ made HTML by manual.Build.
Command gen writes the manual's generated pages beside it (go generate in docs/manual): the documents in docs/ made HTML by manual.Build.

Jump to

Keyboard shortcuts

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