Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven documentation does not include how to set the snippets directory. #1002

Closed
sasconsul opened this issue Mar 26, 2021 · 1 comment
Closed

Comments

@sasconsul
Copy link

I think we need document and examples for defining the snippets directory. Here is what figured out that could be done to set the snippets directory. [I took me some time to guess it from a build.gradle file I found.]

<plugin> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctor-maven-plugin</artifactId> <version>1.5.8</version> <executions> <execution> <id>output-html</id> <phase>prepare-package</phase> <goals> <goal>process-asciidoc</goal> </goals> <configuration> <sourceHighlighter>coderay</sourceHighlighter> <backend>html</backend> <attributes> <toc/> <linkcss>false</linkcss> <snippets> ${project.build.directory}/generated-snippets </snippets> </attributes> </configuration> </execution> </executions> </plugin>

@sasconsul
Copy link
Author

Sorry, folks. I just found the documentation in the restdoc manual from Spring.io in the "Using the Snippets" section of https://spring.io/guides/gs/testing-restdocs/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant