aboutsummaryrefslogtreecommitdiff
path: root/plugins/templating/src/main/kotlin/templates/PathToRootSubstitutor.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/templating/src/main/kotlin/templates/PathToRootSubstitutor.kt')
-rw-r--r--plugins/templating/src/main/kotlin/templates/PathToRootSubstitutor.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/templating/src/main/kotlin/templates/PathToRootSubstitutor.kt b/plugins/templating/src/main/kotlin/templates/PathToRootSubstitutor.kt
index da81432e..883568ef 100644
--- a/plugins/templating/src/main/kotlin/templates/PathToRootSubstitutor.kt
+++ b/plugins/templating/src/main/kotlin/templates/PathToRootSubstitutor.kt
@@ -1,3 +1,7 @@
+/*
+ * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
+ */
+
package org.jetbrains.dokka.templates
import org.jetbrains.dokka.base.templating.PathToRootSubstitutionCommand
@@ -11,4 +15,4 @@ class PathToRootSubstitutor(private val dokkaContext: DokkaContext) : Substituto
if (context.command is PathToRootSubstitutionCommand) {
context.output.toPath().parent.relativize(dokkaContext.configuration.outputDir.toPath()).toString().split(File.separator).joinToString(separator = "/", postfix = "/") { it }
} else null
-} \ No newline at end of file
+}