File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 11using Documenter, PythonCall, Markdown
22
3+ # This is a bit of a hack to let us insert documentation blocks with custom content.
4+ # It means we can document Python things directly in the documentation source, and they
5+ # are searchable.
6+ #
7+ # It's a hack because of the `doccat` overload, requiring a special kind of "signature"
8+ # to embed the information we want.
9+ #
10+ # The first line is of the form "name - category", the rest is Markdown documentation.
11+ # For example:
12+ # ```@customdoc
13+ # foo - Function
14+ # Documentation for `foo`.
15+ # ```
316struct CustomCat{cat} end
417Documenter. Utilities. doccat (:: Base.Docs.Binding , :: Type{CustomCat{cat}} ) where {cat} = string (cat)
518struct CustomDocBlocks <: Documenter.Expanders.ExpanderPipeline end
You can’t perform that action at this time.
0 commit comments