Documentation
¶
Overview ¶
Package confluence implements DocsAdapter using the Confluence REST API v2.
Outbound: converts spec markdown to Confluence storage format (XHTML) and publishes the full page. Inserts <!-- spec-section: slug --> markers for reliable inbound re-mapping.
Inbound: fetches the Confluence page, parses XHTML storage format back to markdown sections keyed by slug. The conversion is lossy for complex formatting but faithful for the structured content in spec sections (prose paragraphs, bullet lists, tables, code blocks, headings).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements adapter.DocsAdapter using the Confluence REST API.
func NewClient ¶
NewClient creates a Confluence DocsAdapter. baseURL should include the /wiki path, e.g. "https://myorg.atlassian.net/wiki".
func (*Client) FetchSections ¶
FetchSections retrieves the spec page from Confluence and returns section content keyed by slug. Sections are identified by <!-- spec-section: slug --> markers inserted during outbound push, or by heading-based slug derivation.