Skip to content

Commit

Permalink
fix bug and logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed May 16, 2024
1 parent 986b7ab commit 0940494
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/shortdocs_block.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/src/reference/plots/ecdf.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ecdfplot

```@shortdocs
ecdf
ecdfplot
```


Expand Down

0 comments on commit 0940494

Please sign in to comment.