docs

package module
v0.0.0-...-a925bf1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectBrowser

func DetectBrowser() string

DetectBrowser is exported for testing

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client manages MkDocs container operations

func NewClient

func NewClient() (*Client, error)

NewClient creates a new docs client

func (*Client) Close

func (c *Client) Close()

Close closes the Docker client connection

func (*Client) IsRunning

func (c *Client) IsRunning() (bool, *ContainerInfo, error)

IsRunning checks if the MkDocs container is already running

func (*Client) OpenBrowser

func (c *Client) OpenBrowser(url string) error

OpenBrowser opens the default web browser to the given URL

func (*Client) StartContainer

func (c *Client) StartContainer(port int) (*ContainerInfo, error)

StartContainer starts the MkDocs container

func (*Client) StopContainer

func (c *Client) StopContainer() error

StopContainer stops the MkDocs container

func (*Client) StreamLogs

func (c *Client) StreamLogs() error

StreamLogs streams container logs to stdout

type ContainerInfo

type ContainerInfo struct {
	Name string
	URL  string
	Port int
}

ContainerInfo contains information about the running MkDocs container

Jump to

Keyboard shortcuts

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