@@ -49,7 +49,7 @@ class DottyDokkaPlugin extends DokkaJavaPlugin:
4949 // Just turn off another translator since multiple overrides does not work
5050 val disableDescriptorTranslator = extend(
5151 _.extensionPoint(CoreExtensions .INSTANCE .getSourceToDocumentableTranslator)
52- .fromRecipe { case ctx as given DokkaContext => new ScalaModuleProvider }
52+ .fromRecipe { case ctx @ given DokkaContext => new ScalaModuleProvider }
5353 .overrideExtension(dokkaBase.getDescriptorToDocumentableTranslator)
5454 .name(" disableDescriptorTranslator" )
5555 )
@@ -63,14 +63,14 @@ class DottyDokkaPlugin extends DokkaJavaPlugin:
6363
6464 val ourSignatureProvider = extend(
6565 _.extensionPoint(dokkaBase.getSignatureProvider)
66- .fromRecipe{ case ctx as given DokkaContext =>
66+ .fromRecipe{ case ctx @ given DokkaContext =>
6767 new ScalaSignatureProvider (ctx.single(dokkaBase.getCommentsToContentConverter))
6868 }.overrideExtension(dokkaBase.getKotlinSignatureProvider)
6969 )
7070
7171 val scalaResourceInstaller = extend(
7272 _.extensionPoint(dokkaBase.getHtmlPreprocessors)
73- .fromRecipe{ case ctx as given DokkaContext => new ScalaResourceInstaller }
73+ .fromRecipe{ case ctx @ given DokkaContext => new ScalaResourceInstaller }
7474 .after(dokkaBase.getCustomResourceInstaller)
7575 )
7676
@@ -83,7 +83,7 @@ class DottyDokkaPlugin extends DokkaJavaPlugin:
8383
8484 val scalaDocumentableToPageTranslator = extend(
8585 _.extensionPoint(CoreExtensions .INSTANCE .getDocumentableToPageTranslator)
86- .fromRecipe { case ctx as given DokkaContext =>
86+ .fromRecipe { case ctx @ given DokkaContext =>
8787 new DocumentableToPageTranslator {
8888 override def invoke (module : DModule ): ModulePageNode = ScalaPageCreator (
8989 ctx.single(dokkaBase.getCommentsToContentConverter),
@@ -108,7 +108,7 @@ class DottyDokkaPlugin extends DokkaJavaPlugin:
108108
109109 val ourRenderer = extend(
110110 _.extensionPoint(CoreExtensions .INSTANCE .getRenderer)
111- .fromRecipe { case ctx as given DokkaContext => new ScalaHtmlRenderer }
111+ .fromRecipe { case ctx @ given DokkaContext => new ScalaHtmlRenderer }
112112 .overrideExtension(dokkaBase.getHtmlRenderer)
113113 )
114114
@@ -126,7 +126,7 @@ class DottyDokkaPlugin extends DokkaJavaPlugin:
126126
127127 val customDocumentationProvider = extend(
128128 _.extensionPoint(dokkaBase.getHtmlPreprocessors)
129- .fromRecipe{ case c as given DokkaContext => new SitePagesCreator }
129+ .fromRecipe{ case c @ given DokkaContext => new SitePagesCreator }
130130 .name(" customDocumentationProvider" )
131131 .ordered(
132132 before = Seq (
@@ -141,7 +141,7 @@ class DottyDokkaPlugin extends DokkaJavaPlugin:
141141
142142 val customNavigation = extend(
143143 _.extensionPoint(dokkaBase.getHtmlPreprocessors)
144- .fromRecipe{ case c as given DokkaContext => new NavigationCreator }
144+ .fromRecipe{ case c @ given DokkaContext => new NavigationCreator }
145145 .name(" customNavigation" )
146146 .ordered(
147147 before = Seq (
@@ -155,7 +155,7 @@ class DottyDokkaPlugin extends DokkaJavaPlugin:
155155
156156 val customDocumentationResources = extend(
157157 _.extensionPoint(dokkaBase.getHtmlPreprocessors)
158- .fromRecipe{ case c as given DokkaContext => new SiteResourceManager }
158+ .fromRecipe{ case c @ given DokkaContext => new SiteResourceManager }
159159 .name(" customDocumentationResources" )
160160 .after(
161161 scalaEmbeddedResourceAppender.getValue,
@@ -165,7 +165,7 @@ class DottyDokkaPlugin extends DokkaJavaPlugin:
165165
166166 val locationProvider = extend(
167167 _.extensionPoint(dokkaBase.getLocationProviderFactory)
168- .fromRecipe { case c as given DokkaContext => new StaticSiteLocationProviderFactory }
168+ .fromRecipe { case c @ given DokkaContext => new StaticSiteLocationProviderFactory }
169169 .overrideExtension(dokkaBase.getLocationProvider)
170170 )
171171
0 commit comments