-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- problem: script `/scripts/generate_documentation_snippets.sh` fails with: ``` In plugin 'org.asciidoctor.convert' type 'org.asciidoctor.gradle.AsciidoctorTask' property 'logDocuments' is annotated with @optional but that is not allowed for 'Console' properties. ``` - It looks like our asciidoctor lib is out of date and not compatible with the new gradle. Hence, taking advice from asciidoctor/asciidoctor-gradle-plugin#600, migrate to a supported lib instead (`org.asciidoctor.jvm.convert`); and use the latest version of that. - The changes in this commit follows this sample app: https://github.com/spring-projects/spring-restdocs-samples/blob/c98c705ad9043aa19db96ce29160e0fbdfeaf8bc/restful-notes-spring-hateoas/build.gradle - note: The directory changes in `credhub/backends/credhub/src/docs/asciidoc/index.adoc` is required as part of this migration/upgrade; without these changes, the rendered doc html will not correctly import those "snippets". The new lib also seems to output the resulting html to a different dir, so update tasks and readme to reflect that. [#187494474]
- Loading branch information
1 parent
1dbeab8
commit 269a2b9
Showing
5 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ test { | |
} | ||
|
||
asciidoctor { | ||
configurations "asciidoctorExtensions" | ||
inputs.dir snippetsDir | ||
dependsOn test | ||
} |