Zulip Chat Archive

Stream: lean4

Topic: Add position info to module doc


Xubai Wang (Feb 15 2022 at 14:20):

Lean support multiple module doc like this. But the current module doc implementation is

private builtin_initialize moduleDocExt : SimplePersistentEnvExtension String (Std.PersistentArray String)  registerSimplePersistentEnvExtension {
  name          := `moduleDocExt
  addImportedFn := fun _ => {}
  addEntryFn    := fun s e => s.push e
  toArrayFn     := fun es => es.toArray
}

which ignores the position info, and we cannot get the module docs to the right place.

Xubai Wang (Feb 15 2022 at 18:31):

I made a few modifications to Lean 4 docstring modules in this commit, in order to support positioned mod doc.

May I open a pull request directly? Or is there any other prerequisites?


Last updated: Dec 20 2023 at 11:08 UTC