Skip to content

Commit 4cef267

Browse files
edenmanmartinbonnin
authored andcommitted
Fix backtick code formatting in ApolloCompilerPlugin docs (apollographql#5849)
* Fix backtick code formatting in ApolloCompilerPlugin docs Note sure what the `<Note>` tag does but it was breaking the backtick markdown formatting * trying to fix backticks --------- Co-authored-by: Martin Bonnin <[email protected]>
1 parent 1d326f8 commit 4cef267

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/source/advanced/compiler-plugins.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ Make your plugin discoverable by [ServiceLoader](https://docs.oracle.com/javase/
6262
mypackage.MyPlugin
6363
```
6464

65-
<Note>
65+
<Note>
66+
6667
The name of the resource file is important. It must be `com.apollographql.apollo3.compiler.ApolloCompilerPlugin` and be in the `META-INF/services` folder. This is how `ServiceLoader` looks up plugins at runtime.
6768
</Note>
69+
6870
# Adding a plugin to the Apollo compiler classpath
6971

7072
Use the `Service.plugin()` Gradle method to add the plugin to the Apollo compiler classpath:
@@ -121,4 +123,4 @@ Because codegen is run in a separate classloader when using compiler plugins, it
121123

122124
For other plugin APIs like layout, IR, JavaPoet and KotlinPoet transforms, check out the [ApolloCompilerPlugin API docs](https://www.apollographql.com/docs/kotlin/kdoc/apollo-compiler/com.apollographql.apollo3.compiler/-apollocompilerplugin/index.html)
123125

124-
For more examples, check out the [integration-tests](https://github.com/apollographql/apollo-kotlin/tree/main/tests/compiler-plugins).
126+
For more examples, check out the [integration-tests](https://github.com/apollographql/apollo-kotlin/tree/main/tests/compiler-plugins).

0 commit comments

Comments
 (0)