We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cee59ba commit 6fa934aCopy full SHA for 6fa934a
1 file changed
docs/make.jl
@@ -1,5 +1,18 @@
1
using Documenter, PythonCall, Markdown
2
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
+# ```
16
struct CustomCat{cat} end
17
Documenter.Utilities.doccat(::Base.Docs.Binding, ::Type{CustomCat{cat}}) where {cat} = string(cat)
18
struct CustomDocBlocks <: Documenter.Expanders.ExpanderPipeline end
0 commit comments