Nim idx file format related definitions.
IndexEntry = object kind*: IndexEntryKind ## 0. keyword*: string ## 1. link*: string ## 2. linkTitle*: string ## 3. contains a prettier text for the href linkDesc*: string ## 4. the title attribute of the final href line*: int ## 5. module*: string ## origin file, NOT a field in ``.idx`` file aux*: string ## auxuliary field, NOT a field in ``.idx`` file
IndexEntryKind = enum
ieMarkupTitle = "markupTitle", ## RST/Markdown title, text in `keyword` +
## HTML text in `linkTitle`
ieNimTitle = "nimTitle", ## Nim title
ieHeading = "heading", ## RST/Markdown markup heading, escaped
ieIdxRole = "idx", ## RST :idx: definition, escaped
ieNim = "nim", ## Nim symbol, unescaped
ieNimGroup = "nimgrp" ## Nim overload group, unescapedproc isDocumentationTitle(hyperlink: string): bool {....raises: [], tags: [],
forbids: [].}Returns true if the hyperlink is actually a documentation title.
Documentation titles lack the hash. See mergeIndexes() for a more detailed explanation.
Source Edit
© 2006–2024 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/rstidx.html