#22903 Fix code snippeds

* move scala and java sources out of paradox sources
* replace relative paths with $code$ and $akka$
* fix broken includes
This commit is contained in:
Martynas Mickevičius 2017-05-11 11:59:28 +03:00
parent 7bee495749
commit 81df4ff417
384 changed files with 1609 additions and 1602 deletions

View file

@ -8,7 +8,7 @@ Formatting.docFormatSettings
Dependencies.docs
unmanagedSourceDirectories in ScalariformKeys.format in Test <<= unmanagedSourceDirectories in Test
//TODO: additionalTasks in ValidatePR += paradox in Paradox
additionalTasks in ValidatePR += paradox
enablePlugins(ScaladocNoVerificationOfDiagrams)
disablePlugins(MimaPlugin)
@ -17,7 +17,9 @@ enablePlugins(ParadoxPlugin)
paradoxProperties ++= Map(
"extref.wikipedia.base_url" -> "https://en.wikipedia.org/wiki/%s",
"scala.version" -> scalaVersion.value,
"akka.version" -> version.value
"akka.version" -> version.value,
"snip.code.base_dir" -> (sourceDirectory in Compile).value.getAbsolutePath,
"snip.akka.base_dir" -> ((baseDirectory in Compile).value / "..").getAbsolutePath
)
paradoxTheme := Some("com.lightbend.akka" % "paradox-theme-akka" % "0.1.0-SNAPSHOT")
paradoxNavigationDepth := 1

View file

@ -1,7 +1,7 @@
/**
* Copyright (C) 2009-2017 Lightbend Inc. <http://www.lightbend.com>
*/
package docs.circuitbreaker;
package jdocs.circuitbreaker;
//#imports1

View file

@ -1,4 +1,4 @@
package docs.circuitbreaker;
package jdocs.circuitbreaker;
import akka.actor.AbstractActor;
import akka.pattern.CircuitBreaker;

View file

@ -1,7 +1,7 @@
/**
* Copyright (C) 2009-2017 Lightbend Inc. <http://www.lightbend.com>
*/
package docs.circuitbreaker;
package jdocs.circuitbreaker;
import akka.actor.ActorRef;
import akka.actor.ReceiveTimeout;

View file

@ -1,7 +1,7 @@
/**
* Copyright (C) 2009-2017 Lightbend Inc. <http://www.lightbend.com>
*/
package docs.config;
package jdocs.config;
import akka.actor.ActorSystem;
import com.typesafe.config.*;

View file

@ -2,7 +2,7 @@
* Copyright (C) 2013-2017 Lightbend Inc. <http://www.lightbend.com>
*/
package docs.duration;
package jdocs.duration;
//#import
import scala.concurrent.duration.Duration;

Some files were not shown because too many files have changed in this diff Show more