Skip to content

Commit 184945a

Browse files
committed
Fix graphql imports in reference docs generation
See gh-31809
1 parent ed1f6ad commit 184945a

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ syncDocumentationSourceForAsciidoctor {
321321
from("src/main/groovy") {
322322
into "main/groovy"
323323
}
324+
from("src/main/resources") {
325+
into "main/resources"
326+
}
324327
}
325328

326329
syncDocumentationSourceForAsciidoctorMultipage {

spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
:docs-java: {docdir}/../main/java/org/springframework/boot/docs
2222
:docs-kotlin: {docdir}/../main/kotlin/org/springframework/boot/docs
2323
:docs-groovy: {docdir}/../main/groovy/org/springframework/boot/docs
24+
:docs-resources: {docdir}/../main/resources
2425
:spring-boot-code: https://github.com/{github-repo}/tree/{github-tag}
2526
:spring-boot-api: https://docs.spring.io/spring-boot/docs/{spring-boot-version}/api
2627
:spring-boot-docs: https://docs.spring.io/spring-boot/docs/{spring-boot-version}/reference
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
type Query {
2+
greeting(name: String! = "Spring"): String!
3+
project(slug: ID!): Project
4+
}
5+
6+
""" A Project in the Spring portfolio """
7+
type Project {
8+
""" Unique string id used in URLs """
9+
slug: ID!
10+
""" Project name """
11+
name: String!
12+
""" URL of the git repository """
13+
repositoryUrl: String!
14+
""" Current support status """
15+
status: ProjectStatus!
16+
}
17+
18+
enum ProjectStatus {
19+
""" Actively supported by the Spring team """
20+
ACTIVE
21+
""" Supported by the community """
22+
COMMUNITY
23+
""" Prototype, not officially supported yet """
24+
INCUBATING
25+
""" Project being retired, in maintenance mode """
26+
ATTIC
27+
""" End-Of-Lifed """
28+
EOL
29+
}

0 commit comments

Comments
 (0)