Documentation
¶
Index ¶
- func MakeURL(baseURL, revision, path string) string
- type Config
- type DocumentURL
- type Source
- func (s Source) ChangesSince(ctx context.Context, revision string) (iter.Seq[Update], string, func() error)
- func (s Source) Get(ctx context.Context, path, revision string) (string, error)
- func (s Source) Suggest(ctx context.Context, path, revision, content string) (string, error)
- func (s Source) URL() string
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Sources []Source `yaml:"sources" validate:"required,dive"`
}
func LoadConfig ¶
type DocumentURL ¶ added in v0.0.23
type DocumentURL struct {
BaseURL string // e.g., "https://github.com/owner/repo"
Revision string // e.g., "main"
Path string // e.g., "docs/README.md"
}
DocumentURL represents the parts of a document URL
func ParseURL ¶ added in v0.0.23
func ParseURL(url string) (*DocumentURL, error)
ParseURL parses a document URL into its component parts
Click to show internal directories.
Click to hide internal directories.