packages/docutils/rstidx
Source EditNim idx файл формата определения.
Импорты
- strutils, syncio, hashes, os
Типы
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
- Source Edit
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, unescaped- тег-дискриминатор Source Edit
Процедуры
proc isDocumentationTitle(hyperlink: string): bool {....raises: [], tags: [], forbids: [].}-
Возвращает true, если гиперссылка фактически является заголовком документации.
У заголовков документации отсутствует хеш. См. mergeIndexes() для более подробного объяснения.
Source Edit
© 2006–2024 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/rstidx.html