diff options
Diffstat (limited to 'core/src/main/kotlin/plugability')
-rw-r--r-- | core/src/main/kotlin/plugability/DokkaContext.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/kotlin/plugability/DokkaContext.kt b/core/src/main/kotlin/plugability/DokkaContext.kt index e6286f0b..6a8ac4a3 100644 --- a/core/src/main/kotlin/plugability/DokkaContext.kt +++ b/core/src/main/kotlin/plugability/DokkaContext.kt @@ -25,7 +25,8 @@ interface DokkaContext { fun create( configuration: DokkaConfiguration, logger: DokkaLogger, - platforms: Map<PlatformData, EnvironmentAndFacade> + platforms: Map<PlatformData, EnvironmentAndFacade>, + pluginOverrides: List<DokkaPlugin> ): DokkaContext = DokkaContextConfigurationImpl(logger, configuration, platforms).apply { configuration.pluginsClasspath.map { it.relativeTo(File(".").absoluteFile).toURI().toURL() } @@ -33,6 +34,7 @@ interface DokkaContext { .let { URLClassLoader(it, this.javaClass.classLoader) } .also { checkClasspath(it) } .let { ServiceLoader.load(DokkaPlugin::class.java, it) } + .let { it + pluginOverrides } .forEach { install(it) } applyExtensions() }.also { it.logInitialisationInfo() } |