Documentation ¶
Index ¶
- Variables
- func CanonicalPath(name string) string
- func ConvertImageMap(context *Context, dec *xml.Decoder, start xml.StartElement) error
- func EmptyLinkSets(links []Links) bool
- func ExtractTitle(data []byte, selector string) (title string, err error)
- func HandleSettings(context *Context, dec *xml.Decoder, start xml.StartElement) error
- func HandleSimpleTable(context *Context, dec *xml.Decoder, start xml.StartElement) error
- func HandleTable(context *Context, dec *xml.Decoder, start xml.StartElement) error
- func InterLinkEntries(A, B []*Entry)
- func IsBodyTag(tag string) bool
- func IsConref(token xml.Token) bool
- func SameRootElement(a, b string) bool
- func SortLinks(links []*Link)
- func SplitLink(link string) (name, selector string)
- func TODO(context *Context, dec *xml.Decoder, start xml.StartElement) error
- func WalkNodePath(dec *xml.Decoder, selector string) (xml.StartElement, error)
- type Context
- func (context *Context) EmitWithChildren(dec *xml.Decoder, start xml.StartElement) error
- func (context *Context) Handle(dec *xml.Decoder, token xml.Token) error
- func (context *Context) HandleConref(dec *xml.Decoder, start xml.StartElement) error
- func (context *Context) InlinedImageURL(href string) string
- func (context *Context) Parse(data string) error
- func (context *Context) Recurse(dec *xml.Decoder) error
- func (context *Context) RecurseChildCount(dec *xml.Decoder) (error, int)
- func (context *Context) ResolveKeyRef(keyref string) (abspath, itempath string)
- func (context *Context) ResolveLinkInfo(url string) (href, title, synopsis string, internal bool)
- func (context *Context) Run() error
- func (context *Context) ShouldSkip(token xml.Token) bool
- func (context *Context) ShouldUnwrap(token xml.Token) bool
- type Dir
- type Entry
- type FileSystem
- type Index
- type Link
- type Links
- type Map
- type MapContext
- func (context MapContext) AddFamilyLinks(entries []*Entry)
- func (context MapContext) CreateRelatedLinks(a *Entry)
- func (context MapContext) LoadMap(filename string) []*Entry
- func (context MapContext) LoadTopic(filename string) *Topic
- func (context MapContext) ProcessNode(node *dita.MapNode) []*Entry
- func (context MapContext) ProcessRelRow(node *dita.MapNode)
- type Renaming
- type Rules
- type TokenProcessor
- type Topic
- type VFS
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSkip = errors.New("")
Functions ¶
func CanonicalPath ¶
func ConvertImageMap ¶
func EmptyLinkSets ¶
func HandleSettings ¶
<settings>
<settinghead> <settingnamehd>Setting name</settingnamehd> <settingdefaulthd>Default value</settingdefaulthd> <settingdeschd>Description</settingdeschd> <settingsamplehd>Example</settingsamplehd> <settinglevelshd>Levels where it can be defined</settinglevelshd> </settinghead> <setting id="ConfRefreshInterval"> <settingname>ConfRefreshInterval</settingname> <settingdefault>30</settingdefault> <settingdesc>Interval in minutes, during which the agent does not have to <xref href="../CheckPluginChanges.dita">update the plugin configuration</xref>. After the interval, the agent compares the file system state against the database state to see if the EMR plugin configuration is up to date and runs the update, if necessary.</settingdesc> <settingsample> <codeblock>[Plugins]
ConfRefreshInterval=60</codeblock>
</settingsample> <settinglevels>user, database, scriptpath, homedir</settinglevels> </setting> <setting id="SuppressDuplicateActivePluginsWarning"> <settingname>SuppressDuplicateActivePluginsWarning</settingname> <settingdefault>N</settingdefault> <settingdesc>Option to switch off the duplicate active plugins warning. This warning message is displayed if there are 2 or more active plugins that use RTM files with matching names. The message is displayed after logging in and selecting a database, and it is only displayed to the Raintree Tech Support user "GO".</settingdesc> <settingsample> <codeblock>[Plugins]
SuppressDuplicateActivePluginsWarning=Y</codeblock>
</settingsample> <settinglevels>user, database, scriptpath, homedir</settinglevels> </setting>
</settings>
func HandleSimpleTable ¶
<simpletable>
<sthead> <stentry>Type style</stentry> <stentry>Elements used</stentry> </sthead> <strow deliveryTarget="F1 PDF"> <stentry>Bold</stentry> <stentry>b</stentry> </strow> <strow> <stentry>Italic</stentry> <stentry>i</stentry> </strow> <strow> <stentry>Underlined</stentry> <stentry>u</stentry> </strow>
</simpletable>
func HandleTable ¶
func InterLinkEntries ¶
func InterLinkEntries(A, B []*Entry)
func SameRootElement ¶
func WalkNodePath ¶
Types ¶
type Context ¶
type Context struct { Index *Index Topic *Topic Rules *Rules Encoder *html.Encoder Output *bytes.Buffer DecodingPath string Errors []error }
func NewConversion ¶
func (*Context) EmitWithChildren ¶
func (*Context) HandleConref ¶
func (*Context) InlinedImageURL ¶
func (*Context) RecurseChildCount ¶
func (*Context) ResolveKeyRef ¶
func (*Context) ResolveLinkInfo ¶
type FileSystem ¶
type Index ¶
type Index struct { FileSystem KeyDef map[string]string // cpath(path) --> topic Topics map[string]*Topic Maps map[string]*Map Errors []error }
func NewIndex ¶
func NewIndex(fs FileSystem) *Index
type Link ¶
func (*Link) FinalTitle ¶
type Links ¶
type MapContext ¶
type MapContext struct { *Index Dir string Entry *Entry CollType dita.CollectionType Linking dita.Linking TOC bool }
func (MapContext) AddFamilyLinks ¶
func (context MapContext) AddFamilyLinks(entries []*Entry)
func (MapContext) CreateRelatedLinks ¶
func (context MapContext) CreateRelatedLinks(a *Entry)
func (MapContext) LoadMap ¶
func (context MapContext) LoadMap(filename string) []*Entry
func (MapContext) LoadTopic ¶
func (context MapContext) LoadTopic(filename string) *Topic
func (MapContext) ProcessNode ¶
func (context MapContext) ProcessNode(node *dita.MapNode) []*Entry
func (MapContext) ProcessRelRow ¶
func (context MapContext) ProcessRelRow(node *dita.MapNode)
type Rules ¶
type Rules struct { CustomResolveLink func(url string) (href, title, synopsis string, internal bool) Rename map[string]Renaming Skip map[string]bool Unwrap map[string]bool Custom map[string]TokenProcessor }
func NewDefaultRules ¶
func NewDefaultRules() *Rules
type TokenProcessor ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.