mkdocs

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package mkdocs generates MkDocs-compatible markdown files for visionspec projects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateProjectIndex

func GenerateProjectIndex(w io.Writer, report *status.Report, opts ProjectIndexOptions) error

GenerateProjectIndex generates index.md for a single project.

func GenerateSpecsLanding

func GenerateSpecsLanding(w io.Writer, projects []ProjectSummary, opts SpecsLandingOptions) error

GenerateSpecsLanding generates the main docs/specs/index.md file.

func WriteProjectIndex

func WriteProjectIndex(projectPath string, report *status.Report, opts ProjectIndexOptions) error

WriteProjectIndex writes index.md for a project.

func WriteSpecsLanding

func WriteSpecsLanding(specsDir string, opts SpecsLandingOptions) error

WriteSpecsLanding writes the main specs/index.md file.

Types

type ProjectIndexOptions

type ProjectIndexOptions struct {
	// IncludeGraphLink adds a link to the graph visualization if available.
	IncludeGraphLink bool
	// GraphPath is the relative path to the graph HTML file.
	GraphPath string
}

ProjectIndexOptions configures project index generation.

type ProjectSummary

type ProjectSummary struct {
	Name          string
	Path          string
	Status        string // ready, in_progress, not_ready
	StatusEmoji   string
	Progress      int // Percentage
	LastUpdated   time.Time
	SpecCount     int
	EvalCount     int
	ApprovalCount int
}

ProjectSummary contains summary information for the specs landing page.

func ScanProjects

func ScanProjects(specsDir string) ([]ProjectSummary, error)

ScanProjects scans a specs directory and returns summaries for all projects.

type SpecsLandingOptions

type SpecsLandingOptions struct {
	// IncludeConstitution adds a link to CONSTITUTION.md if it exists.
	IncludeConstitution bool
	// IncludeRoadmap adds a link to ROADMAP.md if it exists.
	IncludeRoadmap bool
	// ConstitutionPath is the relative path to CONSTITUTION.md.
	ConstitutionPath string
	// RoadmapPath is the relative path to ROADMAP.md.
	RoadmapPath string
}

SpecsLandingOptions configures the specs landing page generation.

Jump to

Keyboard shortcuts

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