Documentation
¶
Overview ¶
Package doctree defines the document tree produced by the reST parser, modeled on docutils.nodes (Body, Structural, Inline element categories).
Index ¶
Constants ¶
View Source
const ( TagDocument = "document" TagSection = "section" TagTitle = "title" TagParagraph = "paragraph" TagBulletList = "bullet_list" TagEnumeratedList = "enumerated_list" TagListItem = "list_item" TagBlockQuote = "block_quote" TagAttribution = "attribution" TagTransition = "transition" TagEmphasis = "emphasis" TagStrong = "strong" TagLiteral = "literal" TagReference = "reference" TagTarget = "target" TagSubstitutionRef = "substitution_reference" TagProblematic = "problematic" TagSystemMessage = "system_message" TagComment = "comment" TagDirective = "directive" TagRaw = "raw" TagLiteralBlock = "literal_block" TagFieldList = "field_list" TagField = "field" TagFieldName = "field_name" TagFieldBody = "field_body" TagDefinitionList = "definition_list" TagDefinitionListItem = "definition_list_item" TagTerm = "term" TagClassifier = "classifier" TagDefinition = "definition" TagLineBlock = "line_block" TagLine = "line" TagDoctestBlock = "doctest_block" TagFootnote = "footnote" TagCitation = "citation" TagLabel = "label" TagFootnoteReference = "footnote_reference" TagCitationReference = "citation_reference" TagSubstitutionDef = "substitution_definition" TagTitleReference = "title_reference" TagSubscript = "subscript" TagSuperscript = "superscript" TagAbbreviation = "abbreviation" TagAcronym = "acronym" TagInline = "inline" TagTable = "table" TagTgroup = "tgroup" TagColspec = "colspec" TagThead = "thead" TagTbody = "tbody" TagRow = "row" TagEntry = "entry" TagOptionList = "option_list" TagOptionListItem = "option_list_item" TagOptionGroup = "option_group" TagOption = "option" TagOptionString = "option_string" TagOptionArgument = "option_argument" TagDescription = "description" TagMath = "math" TagMathBlock = "math_block" // TagPending is docutils' placeholder for a directive whose real work // happens in a later TRANSFORM (".. class::", ".. sectnum::", // ".. target-notes::"). This package has no transform system; the node // records what the transform WOULD do, which is all a parse tree holds. TagPending = "pending" TagDocinfo = "docinfo" TagAuthor = "author" TagAuthors = "authors" TagOrganization = "organization" TagAddress = "address" TagContact = "contact" TagVersion = "version" TagRevision = "revision" TagStatus = "status" TagDate = "date" TagCopyright = "copyright" TagTopic = "topic" TagAdmonition = "admonition" TagAttention = "attention" TagCaution = "caution" TagDanger = "danger" TagErrorAdmonition = "error" TagHint = "hint" TagImportant = "important" TagNote = "note" TagTip = "tip" TagWarningAdmonition = "warning" TagSidebar = "sidebar" TagSubtitle = "subtitle" TagImage = "image" TagFigure = "figure" TagCaption = "caption" TagLegend = "legend" TagMeta = "meta" TagContainer = "container" TagCompound = "compound" TagRubric = "rubric" TagDecoration = "decoration" TagHeader = "header" )
Element tag names, mirroring the docutils.nodes class names used by the pseudoxml writer (kept as plain strings rather than a Go type per tag: docutils itself treats them as an open, extensible set via directives/roles, so a closed enum would fight the model).
Variables ¶
This section is empty.
Functions ¶
func AsText ¶
AsText concatenates all Text descendants, mirroring docutils Element.astext() (used for title-derived id/name generation).
Types ¶
Click to show internal directories.
Click to hide internal directories.