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

fix: api docs build failure #751

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

peterhaochen47
Copy link
Member

@peterhaochen47 peterhaochen47 commented Jun 18, 2024

  • 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.

[#187494474]

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@peterhaochen47 peterhaochen47 changed the title fix: api docs build failure [WIP - do not merge] fix: api docs build failure Jun 18, 2024
@peterhaochen47 peterhaochen47 changed the title [WIP - do not merge] fix: api docs build failure [WIP - do not merge or review] fix: api docs build failure Jun 18, 2024
- 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]
@peterhaochen47 peterhaochen47 force-pushed the pr/main/fix-asciidoctor-build branch from cc8114d to 269a2b9 Compare June 18, 2024 23:52
@peterhaochen47 peterhaochen47 changed the title [WIP - do not merge or review] fix: api docs build failure fix: api docs build failure Jun 18, 2024
@coolgang123
Copy link
Contributor

Looks good to me. I don't have privilege to approve it.

@peterhaochen47 peterhaochen47 merged commit 4eff805 into main Jun 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants