mkdocs-literate-nav 0.6.2
“MkDocs plugin to specify the navigation in Markdown instead of YAML”
imports urllib.parseReferences a public code-forge URL
SHA-2560a6489a26ec7598477b56fa112056a5e3a6c15729f0214bea8a4dbc55bd5f630
MaleculeH₂(CmF)
Evidence
1from __future__ import annotations
2
3import copy
4import functools
5import itertools
6import logging
7import posixpath
8import urllib.parse
9import xml.etree.ElementTree as etree
10from collections.abc import Iterator
11from typing import TYPE_CHECKING, Callable, Optional, Union, cast
12
13import markdown
14import markdown.extensions
15import markdown.postprocessors
16import markdown.preprocessors
17import markdown.treeprocessors
18import mkdocs.utils
19
20from mkdocs_literate_nav import exceptions
21
22if TYPE_CHECKING:
23 from .plugin import MkDocsGlobber
24
25
⋯5 lines
38:52… bool = True):
39 norm = posixpath.normpath(posixpath.join(*path_parts).lstrip("/"))
40 if path_parts[-1].endswith("/") and not self.trim_slash:
41 norm += "/"
42 self.value = norm
43 self.fallback = …
208:19… ntinue
209
210 any_matches = False
211 for item in self.globber.glob(entry.value.rstrip("/")):
212 any_matches = True
213 if item in self.seen_items:
214 co …
235:38…
236 if isinstance(item, dict):
237 assert len(item) == 1
238 [(key, val)] = item.items()
239 if isinstance(val, list):
240 r …
83:64… onLevel.NOT_IN_NAV
84 except AttributeError:
85 # https://github.com/mkdocs/mkdocs/blob/ff0b726056/mkdocs/structure/nav.py#L113
86 Page(None, file, {}) # type: ignore[arg-type]
87
88 t …
No evidence locations were recorded for this file. Raw result