When using Spring REST Docs, the Asciidoctor plugin for IntelliJ IDEA cannot render snippet includes by default because the `snippets` attribute is only set during a Maven or Gradle build. The fix is to add an `ifndef` directive at the top of your Asciidoc document that defines the `snippets` attribute pointing to the local generated-snippets directory (e.g., `../../../target/generated-snippets`), enabling live preview in the IDE without running a full build.
Sort: