From 83e86b3427b017a6d83689f3d3e1bd4b635ce09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A1ndor=20Holozsny=C3=A1k?= Date: Mon, 24 Apr 2023 23:25:06 +0200 Subject: [PATCH] docs(core): Custom files per alias entries about their usage #9 - Fix for GitHub AsciiDoc - [skip ci] --- README.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.adoc b/README.adoc index bedf698..4fee4c0 100644 --- a/README.adoc +++ b/README.adoc @@ -309,7 +309,14 @@ This is a usage file, that will be rendered below the `hello` alias entry. ==== Result in AsciiDoc +ifndef::env-github[] include::example$document-with-usage.adoc[] +endif::[] +ifdef::env-github[] +image::docs/modules/ROOT/examples/document-with-usage.adoc[] +endif::[] + + It can put behind a collapsible section with the `-cus` (`--collapsible-usage-section`) flag.