Saurabh Kohade
Saurabh Kohade

Reputation: 55

How to convert generated-snippets .adoc files to html in src/docs/asciidoc using gradle project

I am facing the issue while working with the asciidoc for my spring rest docs implemetation my adoc files as per my test cases is created in build/generated-snippets. I am having issue with creating html where to create src/docs/asciidoc folder? and which gradle task to run for that to build the html file if anyone knows anything about this isssue please reply as possible comments.

My project explore looks like

Upvotes: 0

Views: 676

Answers (1)

Wiktor Szymański
Wiktor Szymański

Reputation: 61

If I understand you corectly, you could write another task that copies you docs to any folder you want.

task copyDoc(type: Copy) {
  dependsOn *test that creates docs*
  from *location of where docs are generated*
  into *where you want them to be*
}

Upvotes: 0

Related Questions