pagesroll

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: BSD-3-Clause Imports: 7 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 pagesroll inserts the pagesbuild step into a docs repository's .github/workflows/docs.yml, exactly as go-redfish/docs#11 did, and refuses a workflow whose deploy job does not have the shape that change was proven on.

Index

Constants

View Source
const DefaultVersion = "v0.80.0"

DefaultVersion is the fleettools release the reference change pinned.

View Source
const Workflow = ".github/workflows/docs.yml"

Workflow is the path of the file, relative to a docs checkout.

Variables

View Source
var ErrAlready = errors.New("already has pagesbuild")

ErrAlready: the workflow already runs pagesbuild.

View Source
var ErrRefused = errors.New("refused")

ErrRefused wraps every refusal: the workflow is not the known shape.

Functions

func Apply

func Apply(src, version string) (string, error)

Apply returns src with the change made. It returns ErrAlready (and src) when pagesbuild is there, and an ErrRefused when the deploy job is not the known shape; it never returns a half-edited text.

func Edit

func Edit(dir, version, actionlint string) (string, error)

Edit applies the change to dir's docs.yml and lints the result. The file is restored to what it was if the edit introduces an actionlint finding the original did not have.

func Lint

func Lint(actionlint, file string) (string, error)

Lint runs actionlint on file and returns its report ("" when clean). An empty binary skips the check and says so by returning ("", nil).

Types

This section is empty.

Jump to

Keyboard shortcuts

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