From 0940494d46ad414fd106d843188a936ddc222f06 Mon Sep 17 00:00:00 2001 From: Julius Krumbiegel Date: Thu, 16 May 2024 14:00:43 +0200 Subject: [PATCH] fix bug and logic --- docs/shortdocs_block.jl | 7 ++++++- docs/src/reference/plots/ecdf.md | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/shortdocs_block.jl b/docs/shortdocs_block.jl index 74ac56a6860..5e94c054f5d 100644 --- a/docs/shortdocs_block.jl +++ b/docs/shortdocs_block.jl @@ -20,7 +20,12 @@ function Documenter.Selectors.runner(::Type{ShortDocsBlocks}, node, page, doc) el.info = replace(el.info, "@shortdocs" => "@docs") Documenter.Selectors.runner(Documenter.Expanders.DocsBlocks, node, page, doc) - mdasts = first(node.children).element.mdasts + docsnode = first(node.children).element + if !(docsnode isa Documenter.DocsNode) + error("docs node conversion failed for $el") + end + + mdasts = docsnode.mdasts ast_to_look_for = MarkdownAST.@ast MarkdownAST.Paragraph() do MarkdownAST.Strong() do diff --git a/docs/src/reference/plots/ecdf.md b/docs/src/reference/plots/ecdf.md index f23e3840b2b..75f07787e32 100644 --- a/docs/src/reference/plots/ecdf.md +++ b/docs/src/reference/plots/ecdf.md @@ -1,7 +1,7 @@ # ecdfplot ```@shortdocs -ecdf +ecdfplot ```