Skip to content

Commit 29fb329

Browse files
rwinchrstoyanchev
authored andcommitted
Fix include-code macro
1 parent 9a4b729 commit 29fb329

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

spring-graphql-docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ asciidoc:
1616
attribute-missing: 'warn'
1717
chomp: 'all'
1818
docs-site: https://docs.spring.io
19-
import-java: 'example$docs-src/main/java/org/springframework/graphql/docs'
19+
include-java: 'example$docs-src/main/java/org/springframework/graphql/docs'
2020
github-tag: main
2121
github-repo: spring-projects/spring-graphql
2222
github-raw: https://raw.githubusercontent.com/{github-repo}/{github-tag}

spring-graphql-docs/modules/ROOT/pages/graalvm-native.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This is all done automatically for you if you are building a Spring Boot applica
3737
If your application is "manually" registering data fetchers, some types are not discoverable as a result.
3838
You should then register them with Spring Framework's `@RegisterReflectionForBinding`:
3939

40-
include-code:GraphQlConfiguration[]
40+
include-code::GraphQlConfiguration[]
4141
<1> This application declares a `RuntimeWiringConfigurer` that "manually" adds a `DataFetcher`
4242
<2> Through this `DataFetcher`, the `BookRepository` will expose a `Book` type
4343
<3> `@RegisterReflectionForBinding` will register the relevant hints for the `Book` type and all types exposed as fields
@@ -50,7 +50,7 @@ The `AotProcessor` strategy described in the section above cannot be used as a r
5050
For client support, Spring for GraphQL embeds the {github-main-branch}/spring-graphql/src/main/resources/META-INF/native-image/org.springframework.graphql/spring-graphql[relevant reachability metadata for the client infrastructure].
5151
When it comes to Java types used by the application, applications should use a similar strategy as "manual" data fetchers using `@RegisterReflectionForBinding`:
5252

53-
include-code:ProjectService[]
53+
include-code::ProjectService[]
5454
<1> In a Native image, we need to ensure that reflection can be performed on `Project` at runtime
5555
<2> `@RegisterReflectionForBinding` will register the relevant hints for the `Project` type and all types exposed as fields
5656

spring-graphql-docs/modules/ROOT/pages/graphiql.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Alternatively, you can integrate the JavaScript build in your project as a separ
2929

3030
Once a GraphiQL build is available on the classpath, you can expose it as an endpoint with the {spring-framework-ref-docs}/web/webmvc-functional.html#webmvc-fn-router-functions[functional web frameworks].
3131

32-
include-code:GraphiQlConfiguration[]
32+
include-code::GraphiQlConfiguration[]
3333
<1> Load the GraphiQL page from the classpath (here, we are using the version shipped with Spring for GraphQL)
3434
<2> Configure a web handler for processing HTTP requests; you can implement a custom `HandlerFunction` depending on your use case
3535
<3> Finally, map the handler to a specific HTTP endpoint

spring-graphql-docs/modules/ROOT/pages/transports.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ handled as `request-stream`.
105105
`GraphQlRSocketHandler` can be used a delegate from an `@Controller` that is mapped to
106106
the route for GraphQL requests. For example:
107107

108-
include-code:GraphQlRSocketController[]
108+
include-code::GraphQlRSocketController[]
109109

110110

111111

@@ -132,21 +132,21 @@ incoming requests and do one of the following:
132132

133133
For example, an interceptor can pass an HTTP request header to a `DataFetcher`:
134134

135-
include-code:RequestHeaderInterceptor[]
135+
include-code::RequestHeaderInterceptor[]
136136
<1> Interceptor adds HTTP request header value into GraphQLContext
137137
<2> Data controller method accesses the value
138138

139139
Reversely, an interceptor can access values added to the `GraphQLContext` by a controller:
140140

141-
include-code:ResponseHeaderInterceptor[]
141+
include-code::ResponseHeaderInterceptor[]
142142
<1> Controller adds value to the `GraphQLContext`
143143
<2> Interceptor uses the value to add an HTTP response header
144144

145145
`WebGraphQlHandler` can modify the `ExecutionResult`, for example, to inspect and modify
146146
request validation errors that are raised before execution begins and which cannot be
147147
handled with a `DataFetcherExceptionResolver`:
148148

149-
include-code:RequestErrorInterceptor[]
149+
include-code::RequestErrorInterceptor[]
150150
<1> Return the same if `ExecutionResult` has a "data" key with non-null value
151151
<2> Check and transform the GraphQL errors
152152
<3> Update the `ExecutionResult` with the modified errors

0 commit comments

Comments
 (0)