paulk-asert opened a new issue, #221: URL: https://github.com/apache/groovy-geb/issues/221
The `snippets-dir` asciidoc attribute is set when generating the docs but in the IDE isn't set which means you can't see the correct sources in the IDE. We can make that work with a little trick using asciidoc's `ifndef` directive. It does mean using one of several alternative references. It basically means adding the above into the top of each asciidoc file referencing snippets (you need only bring in the attributes you use): ``` ifndef::snippets-dir[] :snippets-dir: ../../../../manual-snippets/src/test/groovy :rb-snippets-dir: ../../../../manual-snippets/real-browser/src/test/groovy :cm-snippets-dir: ../../../../../module/geb-core/src/main/groovy :ct-snippets-dir: ../../../../../module/geb-core/src/test/groovy endif::[] ``` Snippets from the main snippets folder will then work. You may instead need to use the `rb-snippets-dir` attribute if referencing a snippet from the `real-browser` source folders. All those attributes are set to the normal aggregated snippets directory during the build. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
