Equations
- DocGen4.getNLevels name levels = List.foldl (fun (x1 x2 : Lean.Name) => x1 ++ x2) Lean.Name.anonymous (List.drop (name.componentsRev.length - levels) name.componentsRev).reverse
Instances For
@[implicit_reducible]
Equations
@[reducible, inline]
Equations
- DocGen4.HierarchyMap = Lean.RBNode Lean.Name fun (x : Lean.Name) => DocGen4.Hierarchy
Instances For
Equations
- x✝.toList = Lean.RBNode.revFold (fun (ps : List (Lean.Name × DocGen4.Hierarchy)) (k : Lean.Name) (v : DocGen4.Hierarchy) => (k, v) :: ps) [] x✝
Instances For
Equations
Instances For
def
DocGen4.HierarchyMap.hForIn
{m : Type u_1 → Type u_2}
{σ : Type u_1}
[Monad m]
(t : HierarchyMap)
(init : σ)
(f : Lean.Name × Hierarchy → σ → m (ForInStep σ))
:
m σ
Equations
- t.hForIn init f = Lean.RBNode.forIn t init fun (a : Lean.Name) (b : DocGen4.Hierarchy) (acc : σ) => f (a, b) acc
Instances For
@[implicit_reducible]
instance
DocGen4.HierarchyMap.instForInProdNameHierarchyOfMonad
{m : Type u_1 → Type u_2}
[Monad m]
:
Equations
- DocGen4.HierarchyMap.instForInProdNameHierarchyOfMonad = { forIn := fun {β : Type ?u.2} => DocGen4.HierarchyMap.hForIn }
Equations
- DocGen4.Hierarchy.empty n isFile = DocGen4.Hierarchy.node n isFile Lean.RBNode.leaf
Instances For
Equations
- (DocGen4.Hierarchy.node n isFile children).getName = n
Instances For
Equations
- (DocGen4.Hierarchy.node n isFile children).getChildren = children
Instances For
Equations
- (DocGen4.Hierarchy.node n isFile children).isFile = isFile
Instances For
Equations
Instances For
Returns true if n was inserted into h as a file (i.e. was one of the
names passed to fromArray / insert!). Intermediate "container" nodes that
were synthesized to host children but never inserted as files themselves
return false.
Used by moduleNameToLink to decide local-vs-external linking: a module
present here goes through the relative URL path; anything else falls back to
the external documentation site.