What style of code comments are required for daml damlc docs?
- WallaceKellyOP
Running
daml damlc docson the following does not copy the comments to the generated docs:-- an asset is a thing that can be owned by a user template Asset with -- the issuer of the asset issuer : Party owner : Party name : TextWhat comment style is expected by the
daml damlc docs(aka, “damldocs”) command? - WallaceKelly 1
The
daml damlc docscommand is looking for Haddock-style annotations. However, see this caveat.For the following:
-- | an asset is a thing that can be owned by a user template Asset with issuer : Party -- ^ the issuer of the asset owner : Party name : TextThe command:
daml damlc docs -o docs --doc-ext md daml/Main.damlGenerates:
You can see examples in the Daml Standard Library and the Splice code base.
