aboutsummaryrefslogtreecommitdiff
path: root/plugins/templating/src/main/kotlin/templates/ProjectNameSubstitutor.kt
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2023-08-31 16:02:13 +0200
committerGitHub <noreply@github.com>2023-08-31 16:02:13 +0200
commit6a181a7a2b03ec263788d137610e86937a57d434 (patch)
tree22368589814dad150ad6de243cc2da3cdff926a6 /plugins/templating/src/main/kotlin/templates/ProjectNameSubstitutor.kt
parentc63ea36637ce956029fb15b1482c0683ecb8a587 (diff)
downloaddokka-6a181a7a2b03ec263788d137610e86937a57d434.tar.gz
dokka-6a181a7a2b03ec263788d137610e86937a57d434.tar.bz2
dokka-6a181a7a2b03ec263788d137610e86937a57d434.zip
Update copyright (#3149)
* Add the default copyright profile and enable IDEA project settings * Add the license notice file
Diffstat (limited to 'plugins/templating/src/main/kotlin/templates/ProjectNameSubstitutor.kt')
-rw-r--r--plugins/templating/src/main/kotlin/templates/ProjectNameSubstitutor.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/templating/src/main/kotlin/templates/ProjectNameSubstitutor.kt b/plugins/templating/src/main/kotlin/templates/ProjectNameSubstitutor.kt
index 8fc12b6c..52d980fb 100644
--- a/plugins/templating/src/main/kotlin/templates/ProjectNameSubstitutor.kt
+++ b/plugins/templating/src/main/kotlin/templates/ProjectNameSubstitutor.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 templates
import org.jetbrains.dokka.base.templating.ProjectNameSubstitutionCommand
@@ -10,4 +14,4 @@ class ProjectNameSubstitutor(private val dokkaContext: DokkaContext) : Substitut
override fun trySubstitute(context: TemplatingContext<SubstitutionCommand>, match: MatchResult): String? =
dokkaContext.configuration.moduleName.takeIf { context.command is ProjectNameSubstitutionCommand }
-} \ No newline at end of file
+}