#2623 - Adding a @github@ substitution for links to github, as well as adding a pointer as to where to find the example code for the docs.
This commit is contained in:
parent
b52a082279
commit
e6d54b59ac
10 changed files with 29 additions and 30 deletions
|
|
@ -533,6 +533,7 @@ object AkkaBuild extends Build {
|
|||
// customization of sphinx @<key>@ replacements, add to all sphinx-using projects
|
||||
// add additional replacements here
|
||||
preprocessVars <<= (scalaVersion, version) { (s, v) =>
|
||||
val isSnapshot = v.endsWith("SNAPSHOT")
|
||||
val BinVer = """(\d+\.\d+)\.\d+""".r
|
||||
Map(
|
||||
"version" -> v,
|
||||
|
|
@ -548,7 +549,8 @@ object AkkaBuild extends Build {
|
|||
"binVersion" -> (s match {
|
||||
case BinVer(bv) => bv
|
||||
case _ => s
|
||||
})
|
||||
}),
|
||||
"github" -> "http://github.com/akka/akka/tree/%s".format((if (isSnapshot) "master" else "v" + v))
|
||||
)
|
||||
},
|
||||
preprocess <<= (sourceDirectory, target in preprocess, cacheDirectory, preprocessExts, preprocessVars, streams) map {
|
||||
|
|
|
|||
|
|
@ -203,12 +203,6 @@ try git checkout -b ${release_branch}
|
|||
# find and replace the version
|
||||
try ${script_dir}/find-replace ${current_version} ${version}
|
||||
|
||||
#find and replace github links
|
||||
try ${script_dir}/find-replace http://github.com/akka/akka/tree/master http://github.com/akka/akka/tree/v${version}
|
||||
try ${script_dir}/find-replace https://github.com/akka/akka/tree/master http://github.com/akka/akka/tree/v${version}
|
||||
try ${script_dir}/find-replace http://github.com/akka/akka/blob/master http://github.com/akka/akka/tree/v${version}
|
||||
try ${script_dir}/find-replace https://github.com/akka/akka/blob/master http://github.com/akka/akka/tree/v${version}
|
||||
|
||||
# start clean
|
||||
try sbt clean
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue