Skip to content

Commit 8212ec9

Browse files
committed
Generate CNAME file on docs generation
1 parent 9ca016e commit 8212ec9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ object Build {
369369
val majorVersion = baseVersion.take(baseVersion.lastIndexOf('.'))
370370
IO.write(file("./docs/_site/versions/latest-nightly-base"), majorVersion)
371371

372+
// This file is used by GitHub Pages when the page is available in a custom domain
373+
IO.write(file("./docs/_site/CNAME"), "dotty.epfl.ch")
374+
372375
val sources = unmanagedSources.in(mode match {
373376
case NonBootstrapped => `dotty-library`
374377
case Bootstrapped => `dotty-library-bootstrapped`

0 commit comments

Comments
 (0)