Fix graphql imports in reference docs generation

See gh-31809
This commit is contained in:
Brian Clozel 2022-08-01 15:27:36 +02:00
parent ed1f6ad543
commit 184945ab1e
3 changed files with 33 additions and 0 deletions

View File

@ -321,6 +321,9 @@ syncDocumentationSourceForAsciidoctor {
from("src/main/groovy") {
into "main/groovy"
}
from("src/main/resources") {
into "main/resources"
}
}
syncDocumentationSourceForAsciidoctorMultipage {

View File

@ -21,6 +21,7 @@
:docs-java: {docdir}/../main/java/org/springframework/boot/docs
:docs-kotlin: {docdir}/../main/kotlin/org/springframework/boot/docs
:docs-groovy: {docdir}/../main/groovy/org/springframework/boot/docs
:docs-resources: {docdir}/../main/resources
:spring-boot-code: https://github.com/{github-repo}/tree/{github-tag}
:spring-boot-api: https://docs.spring.io/spring-boot/docs/{spring-boot-version}/api
:spring-boot-docs: https://docs.spring.io/spring-boot/docs/{spring-boot-version}/reference

View File

@ -0,0 +1,29 @@
type Query {
greeting(name: String! = "Spring"): String!
project(slug: ID!): Project
}
""" A Project in the Spring portfolio """
type Project {
""" Unique string id used in URLs """
slug: ID!
""" Project name """
name: String!
""" URL of the git repository """
repositoryUrl: String!
""" Current support status """
status: ProjectStatus!
}
enum ProjectStatus {
""" Actively supported by the Spring team """
ACTIVE
""" Supported by the community """
COMMUNITY
""" Prototype, not officially supported yet """
INCUBATING
""" Project being retired, in maintenance mode """
ATTIC
""" End-Of-Lifed """
EOL
}