Documentation

Lean.DocString.Add

def Lean.validateDocComment {m : TypeType} [Monad m] [MonadLog m] [AddMessageContext m] [MonadOptions m] [MonadLiftT IO m] (docstring : TSyntax `Lean.Parser.Command.docComment) :

Validates all links to the Lean reference manual in docstring.

This is intended to be used before saving a docstring that is later subject to rewriting with rewriteManualLinks.

Equations
  • One or more equations did not get rendered due to their size.
def Lean.addDocString {m : TypeType} [Monad m] [MonadError m] [MonadEnv m] [MonadLog m] [AddMessageContext m] [MonadOptions m] [MonadLiftT IO m] (declName : Name) (docComment : TSyntax `Lean.Parser.Command.docComment) :

Adds a docstring to the environment, validating documentation links.

Equations
  • One or more equations did not get rendered due to their size.
def Lean.addDocString' {m : TypeType} [Monad m] [MonadError m] [MonadEnv m] [MonadLog m] [AddMessageContext m] [MonadOptions m] [MonadLiftT IO m] (declName : Name) (docString? : Option (TSyntax `Lean.Parser.Command.docComment)) :

Adds a docstring to the environment, validating documentation links.

Equations