File tree Expand file tree Collapse file tree
Mathlib/Geometry/Manifold/MFDeriv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -417,21 +417,12 @@ namespace Manifold
417417open scoped Bundle Manifold ContDiff
418418open Lean Meta Elab Tactic Doc
419419
420- @[doc_command] meta def appendDocstringOf (n : Ident) : DocM <| Block ElabInline ElabBlock := do
421- let doc ← realizeGlobalConstNoOverloadWithInfo n
422- let some docStr ← findDocString? (← getEnv) doc
423- | throwError "No doc-string for `{.ofConstName doc}`"
424- -- Future: once there is a better auto-converter between markdown and verso doc-strings,
425- -- rewrite this code accordingly!
426- -- Perhaps, it could be nice to write .verso here.
427- return .para #[.text docStr]
428-
429420set_option doc.verso true in
430421set_option doc.verso.suggestions false in
431422/-- `d% f x` (scoped to the `Manifold` namespace) elaborates to `mvfderiv I J f x`,
432423trying to determine `I` and `J` from the local context.
433424
434- {appendDocstringOf mvfderiv} -/
425+ {insertDocstringOf mvfderiv} -/
435426-- goal: now insert the doc-string of mvfderiv
436427scoped elab :max "d%" ppSpace t:term:arg : term => do
437428 let e ← ensureIsFunction <| ← Term.elabTerm t none
You can’t perform that action at this time.
0 commit comments