diff --git a/github-actions/src/main/scala/com/thoughtworks/sbtBestPractice/githubActions/GithubActionsUnidoc.scala b/github-actions/src/main/scala/com/thoughtworks/sbtBestPractice/githubActions/GithubActionsUnidoc.scala deleted file mode 100644 index 46e909e..0000000 --- a/github-actions/src/main/scala/com/thoughtworks/sbtBestPractice/githubActions/GithubActionsUnidoc.scala +++ /dev/null @@ -1,33 +0,0 @@ -package com.thoughtworks.sbtBestPractice.githubActions - -import sbt.plugins.JvmPlugin -import sbt._ -import Keys._ -import sbtunidoc.{ScalaUnidocPlugin, UnidocKeys} - -/** - * @author 杨博 (Yang Bo) <pop.atry@gmail.com> - */ -object GithubActionsUnidoc extends AutoPlugin with UnidocKeys { - override def requires: Plugins = GithubActionsEnvironmentVariables && JvmPlugin && ScalaUnidocPlugin - - override def trigger: PluginTrigger = allRequirements - - override def projectSettings = Seq( - scalacOptions in Compile in doc := { - val originalScalacOptions = (scalacOptions in Compile in doc).value - GithubActionsEnvironmentVariables.githubRepository.?.value match { - case Some(slug) => - originalScalacOptions.indexOf("-doc-title") match { - case -1 => - originalScalacOptions ++ Seq("-doc-title", slug) - case i => - originalScalacOptions.updated(i + 1, slug) - } - case None => - originalScalacOptions - } - } - ) - -}